/* ==========================================================================
   Keisei Inc. — careerkeisei.com redesign
   Design system: modern, premium, responsive. Brand teal #0A7E73 retained
   from the original site, accent orange #F4742E retained from original CTAs.
   ========================================================================== */

:root {
  /* Brand */
  --teal-950: #03312d;
  --teal-900: #06443e;
  --teal-800: #07564e;
  --teal-700: #0a7e73; /* primary (original brand color) */
  --teal-600: #0c978a; /* original hover color */
  --teal-500: #14ab9c;
  --teal-100: #d4ece9;
  --teal-50:  #eaf5f3;
  --orange-600: #f4742e; /* original CTA color */
  --orange-500: #f68b37;
  --orange-50:  #fef1e7;

  /* Neutrals */
  --ink: #122624;
  --ink-soft: #33504c;
  --muted: #5d7572;
  --line: #dfeae8;
  --bg: #f6faf9;
  --surface: #ffffff;

  /* Type */
  --font-sans: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1160px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(7, 64, 58, .06), 0 2px 8px rgba(7, 64, 58, .06);
  --shadow-md: 0 2px 6px rgba(7, 64, 58, .07), 0 12px 32px rgba(7, 64, 58, .10);
  --shadow-lg: 0 4px 10px rgba(7, 64, 58, .08), 0 24px 60px rgba(7, 64, 58, .16);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-600); }
ul, ol { padding-left: 1.3em; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { overflow-wrap: normal; word-break: auto-phrase; text-wrap: balance; }

/* ---------- Language toggle mechanics ----------
   Visibility is driven by data-lang (not the lang attribute, which browser
   translate features and extensions may rewrite). Default is "ja"; CSS alone
   hides the inactive language, so the page renders correctly without JS. */
html:not([data-lang="en"]) .en { display: none !important; }
html[data-lang="en"] .jp { display: none !important; }
html[data-lang="en"] body { line-height: 1.65; }

/* ---------- Utilities ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange-500); border-radius: 2px; }
.section { padding-block: clamp(56px, 9vw, 110px); }
.section--tint { background: linear-gradient(180deg, var(--teal-50), var(--bg)); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.35; letter-spacing: .01em;
  font-weight: 800; color: var(--ink); margin-top: 14px;
}
.section-head p { margin-top: 14px; color: var(--muted); font-size: clamp(15px, 1.6vw, 17px); }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }
.center .eyebrow::before { display: none; }
.center .eyebrow::after { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; font-weight: 700; font-size: 15.5px;
  line-height: 1.4; border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-align: center;
}
.btn svg { flex: none; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--orange-600); color: #fff; box-shadow: 0 10px 24px rgba(244, 116, 46, .32); }
.btn-primary:hover { background: var(--orange-500); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(244, 116, 46, .4); }
.btn-teal { background: var(--teal-700); color: #fff; box-shadow: 0 10px 24px rgba(10, 126, 115, .3); }
.btn-teal:hover { background: var(--teal-600); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: var(--teal-100); color: var(--teal-800); background: var(--surface); }
.btn-ghost:hover { border-color: var(--teal-600); color: var(--teal-700); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--teal-800); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--teal-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 234, 232, .8);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(7, 64, 58, .08); }
.header-inner {
  display: flex; align-items: center; gap: 18px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 19px; letter-spacing: 0;
  box-shadow: 0 6px 14px rgba(10, 126, 115, .35);
}
.brand-text { line-height: 1.25; }
.brand-text .brand-name { font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: .02em; }
.brand-text .brand-tag { font-size: 10.5px; color: var(--muted); letter-spacing: .08em; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; margin: 0; }
.main-nav a.nav-link, .main-nav button.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 13px; border-radius: 9px; font-size: 14.5px; font-weight: 600;
  color: var(--ink-soft); background: none; border: 0; cursor: pointer; font-family: inherit;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.main-nav a.nav-link:hover, .main-nav button.nav-link:hover { background: var(--teal-50); color: var(--teal-800); }
.main-nav a.nav-link.is-active { color: var(--teal-700); background: var(--teal-50); }

.has-dropdown { position: relative; }
.has-dropdown .caret { transition: transform .2s ease; }
.has-dropdown.open .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 250px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dropdown.open .dropdown, .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
}
.dropdown a:hover { background: var(--teal-50); color: var(--teal-800); }
.dropdown a.is-active { color: var(--teal-700); }

/* Language switch */
.lang-switch {
  display: inline-flex; align-items: center; padding: 4px; border-radius: 999px;
  background: var(--teal-50); border: 1px solid var(--teal-100); flex: none;
}
.lang-switch button {
  border: 0; background: none; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 800; letter-spacing: .06em;
  padding: 6px 14px; border-radius: 999px; color: #4e6360;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--teal-700); color: #fff; box-shadow: 0 4px 10px rgba(10, 126, 115, .35);
}

.header-cta { flex: none; }
.header-cta .btn { padding: 11px 22px; font-size: 14px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer; border-radius: 10px;
}
.nav-toggle span { display: block; height: 2.5px; border-radius: 2px; background: var(--teal-800); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(20, 171, 156, .16), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(244, 116, 46, .10), transparent 60%),
    linear-gradient(180deg, #edf7f5, var(--bg));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 126, 115, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 126, 115, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(75% 80% at 50% 20%, #000 30%, transparent 100%);
          mask-image: radial-gradient(75% 80% at 50% 20%, #000 30%, transparent 100%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 72px); align-items: center;
  padding-block: clamp(56px, 8vw, 110px);
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.3; letter-spacing: .01em;
  font-weight: 900; color: var(--ink); margin-top: 18px;
}
.hero h1 .hl { color: var(--teal-700); white-space: nowrap; }
.hero .lede { margin-top: 20px; font-size: clamp(15.5px, 1.8vw, 17.5px); color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding: 0; list-style: none; }
.hero-stats li {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 12px 18px; box-shadow: var(--shadow-sm); backdrop-filter: blur(6px);
}
.hero-stats .num { font-size: 22px; font-weight: 800; color: var(--teal-700); line-height: 1.2; }
.hero-stats .lbl { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }

.hero-visual { position: relative; }
.hero-visual .photo-card {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 6px solid #fff; transform: rotate(1.2deg);
  position: relative;
}
.hero-visual .photo-card img { width: 100%; object-fit: cover; }
.hero-visual::after {
  content: ""; position: absolute; z-index: -1; inset: 12% -6% -8% 10%;
  background: linear-gradient(135deg, var(--teal-100), transparent 70%);
  border-radius: var(--radius-lg); transform: rotate(-2deg);
}
.hero-badge {
  position: absolute; left: -14px; bottom: 22px; z-index: 2;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 12px 18px; display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line);
}
.hero-badge .dot {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center;
}
.hero-badge strong { display: block; font-size: 14px; line-height: 1.35; }
.hero-badge span.sub { font-size: 12px; color: var(--muted); }

/* Page hero (subpages) */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(800px 400px at 85% -20%, rgba(20, 171, 156, .5), transparent 60%),
    radial-gradient(600px 300px at 0% 120%, rgba(244, 116, 46, .25), transparent 55%),
    linear-gradient(120deg, var(--teal-900), var(--teal-700));
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  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: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 90% at 50% 10%, #000 20%, transparent 100%);
          mask-image: radial-gradient(80% 90% at 50% 10%, #000 20%, transparent 100%);
}
.page-hero .container { position: relative; padding-block: clamp(48px, 7vw, 90px); }
.page-hero .crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; font-size: 13px; color: rgba(255, 255, 255, .75); }
.page-hero .crumbs a { color: rgba(255, 255, 255, .9); }
.page-hero .crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .55; }
.page-hero h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 900; line-height: 1.3; margin-top: 14px; }
.page-hero .lede { margin-top: 14px; max-width: 70ch; color: rgba(255, 255, 255, .88); font-size: clamp(15px, 1.7vw, 17px); }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.page-hero-grid .photo-card {
  border-radius: var(--radius-lg); overflow: hidden; border: 5px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-lg); transform: rotate(1.5deg);
}
.page-hero-grid .photo-card img { width: 100%; }

/* ---------- News strip (home) ---------- */
.news-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.news-strip .inner { display: flex; align-items: center; gap: 16px; padding-block: 14px; }
.news-strip .tag {
  flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: var(--orange-50); color: #c2410c; padding: 6px 12px; border-radius: 999px;
}
.news-strip a.news-link { color: var(--ink-soft); font-size: 14.5px; font-weight: 600; }
.news-strip a.news-link:hover { color: var(--teal-700); }
.news-strip .more { margin-left: auto; flex: none; font-size: 13.5px; font-weight: 700; color: var(--teal-700); white-space: nowrap; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-pad { padding: clamp(22px, 3vw, 32px); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.icon-chip {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-700); margin-bottom: 18px;
}
.icon-chip.orange { background: var(--orange-50); color: var(--orange-600); }
.card h3 { font-size: 18.5px; font-weight: 800; line-height: 1.45; }
.card p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.card .link-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 14px; }

/* ---------- Feature rows (image + text) ---------- */
.feature-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-block: clamp(36px, 5vw, 56px);
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-row.flip .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-media .photo-card {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  border: 5px solid #fff; background: #fff;
}
.feature-media .photo-card img { width: 100%; }
.feature-media .photo-stack { display: grid; gap: 14px; }
.feature-media .photo-stack .photo-card:nth-child(2) { margin-left: 9%; transform: rotate(.8deg); }
.feature-media .photo-stack .photo-card:nth-child(3) { margin-right: 9%; transform: rotate(-.8deg); }
.feature-media::before {
  content: ""; position: absolute; z-index: -1; inset: -16px -16px 30% auto; width: 45%;
  background: radial-gradient(circle at 30% 30%, var(--teal-100), transparent 70%);
  border-radius: 50%;
}
/* Small original photos (140px sources) shown as intentional snapshot clusters */
.photo-cluster { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; padding-block: 10px; }
.photo-cluster .photo-card { width: clamp(118px, 13vw, 164px); aspect-ratio: 1; transform: rotate(-1.5deg); }
.photo-cluster .photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-cluster .photo-card:nth-child(2) { transform: rotate(2deg) translateY(16px); }
.photo-cluster .photo-card:nth-child(3) { transform: rotate(-2.5deg) translateY(-4px); }
.photo-solo { display: grid; place-items: center; position: relative; padding: clamp(16px, 3vw, 36px); }
.photo-solo .photo-card { width: min(210px, 70%); aspect-ratio: 1; transform: rotate(-1.5deg); position: relative; z-index: 1; }
.photo-solo .photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-solo::after {
  content: ""; position: absolute; width: min(290px, 88%); aspect-ratio: 1; border-radius: 50%;
  border: 2px dashed var(--teal-100);
  background: radial-gradient(circle at 30% 25%, var(--teal-50), transparent 75%);
}
.photo-solo .photo-card + .photo-card { position: absolute; width: min(120px, 36%); right: 8%; bottom: 4%; transform: rotate(3deg); z-index: 2; }

.step-num {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #c2410c;
}
.step-num::before { content: ""; width: 22px; height: 2px; background: var(--orange-500); }
.feature-row h3 { font-size: clamp(21px, 2.6vw, 28px); font-weight: 800; line-height: 1.4; margin-top: 12px; }
.feature-row h4 { font-size: 16.5px; font-weight: 700; color: var(--teal-800); margin-top: 18px; }
.feature-row p { color: var(--ink-soft); margin-top: 12px; font-size: 15.5px; }
.feature-row .cta-line { margin-top: 24px; }

/* Check list */
.check-list { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink-soft); font-size: 15px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--teal-700);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 100% no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 100% no-repeat;
}

/* ---------- Stage pills (lifecycle nav) ---------- */
.stage-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: stage; }
.stage-rail a {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 18px 18px 16px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stage-rail a:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.stage-rail a::before {
  counter-increment: stage; content: "0" counter(stage);
  font-size: 12px; font-weight: 800; letter-spacing: .1em; color: #c2410c;
}
.stage-rail strong { font-size: 15px; color: var(--ink); line-height: 1.45; }
.stage-rail span.sub { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.spec-table th, .spec-table td { padding: 18px 22px; text-align: left; vertical-align: top; font-size: 15px; }
.spec-table tr + tr { border-top: 1px solid var(--line); }
.spec-table th { width: 200px; background: var(--teal-50); color: var(--teal-900); font-weight: 700; white-space: nowrap; }
.spec-table td { color: var(--ink-soft); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; position: relative; display: grid; gap: 0; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--teal-100), var(--teal-600), var(--teal-100));
}
.timeline li { position: relative; padding: 14px 0 14px 40px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 24px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 4px solid var(--teal-600); box-shadow: 0 0 0 4px var(--teal-50);
}
.timeline .t-date { font-size: 13px; font-weight: 800; color: var(--teal-700); letter-spacing: .06em; }
.timeline .t-body { color: var(--ink-soft); font-size: 15px; margin-top: 2px; }
.timeline .t-body a { font-weight: 700; }

/* ---------- Testimonials ---------- */
.testimonial { display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: start; }
.testimonial .avatar {
  width: 132px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 4px solid #fff; outline: 1px solid var(--line);
}
.testimonial .avatar img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; }
.testimonial h3 { font-size: 18px; }
.testimonial h3 .latin { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 8px; }
.testimonial .meta { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.testimonial .quote { margin-top: 14px; color: var(--ink-soft); font-size: 14.8px; position: relative; }
.testimonial .quote p + p { margin-top: 10px; }
.t-chip { display: inline-block; font-size: 11.5px; font-weight: 800; color: var(--teal-700); background: var(--teal-50); border-radius: 999px; padding: 4px 12px; letter-spacing: .05em; margin-top: 10px; }

/* ---------- Embed frames (calendar / maps / facebook) ---------- */
.embed-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.embed-card iframe { width: 100%; border: 0; }
.embed-card .embed-head { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.embed-card .embed-head h3 { font-size: 16px; font-weight: 800; }
.embed-card .embed-head .icon-chip { width: 38px; height: 38px; border-radius: 10px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 90% -20%, rgba(20, 171, 156, .55), transparent 60%),
    radial-gradient(500px 320px at 5% 120%, rgba(244, 116, 46, .3), transparent 55%),
    linear-gradient(120deg, var(--teal-900), var(--teal-700));
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta-band .inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(22px, 4vw, 44px); padding: clamp(28px, 4.5vw, 52px);
}
.cta-band .portrait {
  width: 124px; border-radius: var(--radius-md); overflow: hidden;
  border: 4px solid rgba(255, 255, 255, .85); box-shadow: var(--shadow-md); transform: rotate(-2deg);
}
.cta-band h2 { font-size: clamp(21px, 2.8vw, 30px); font-weight: 800; line-height: 1.45; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-top: 8px; font-size: 15px; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band .actions .btn { white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-950); color: rgba(255, 255, 255, .78); margin-top: clamp(56px, 8vw, 100px); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(44px, 6vw, 72px);
}
.site-footer h3, .site-footer h4 { color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .78); font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand-mark { box-shadow: none; }
.footer-brand .brand-line { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-name { color: #fff; font-weight: 800; font-size: 18px; }
.footer-brand .brand-tag { font-size: 12px; color: rgba(255, 255, 255, .6); }
.footer-brand p.mission { margin-top: 16px; font-size: 13.5px; line-height: 1.9; color: rgba(255, 255, 255, .65); max-width: 36ch; }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; line-height: 1.7; }
.footer-contact svg { flex: none; margin-top: 4px; opacity: .7; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(255, 255, 255, .55);
}
.footer-bottom a { font-size: 13px; color: rgba(255, 255, 255, .65); }

/* ---------- News page list ---------- */
.news-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.news-list li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 18px 24px; display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start;
  box-shadow: var(--shadow-sm);
}
.news-list .n-date { font-size: 13.5px; font-weight: 800; color: var(--teal-700); letter-spacing: .04em; padding-top: 2px; white-space: nowrap; }
.news-list .n-body { font-size: 14.8px; color: var(--ink-soft); }
.news-list .n-body a { font-weight: 700; }
.badge-free { display: inline-block; background: var(--orange-50); color: #c2410c; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 10px; margin-left: 6px; vertical-align: middle; }

/* ---------- Prose (privacy etc.) ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 20px; font-weight: 800; color: var(--teal-900); margin: 36px 0 12px; padding-left: 14px; border-left: 4px solid var(--teal-600); line-height: 1.5; }
.prose p { color: var(--ink-soft); font-size: 15px; margin-top: 10px; }
.prose ul, .prose ol { color: var(--ink-soft); font-size: 15px; margin-top: 10px; display: grid; gap: 6px; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.65,.3,1), transform .7s cubic-bezier(.2,.65,.3,1); }
  .reveal.no-anim { transition: none !important; transition-delay: 0s !important; }
  .reveal.is-visible { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: .1s; }
  .reveal[data-delay="2"] { transition-delay: .2s; }
  .reveal[data-delay="3"] { transition-delay: .3s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav a.nav-link, .main-nav button.nav-link { padding: 9px 9px; font-size: 13.5px; }
  .header-cta { display: none; }
}
@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none; padding: 12px 20px 26px;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a.nav-link, .main-nav button.nav-link { width: 100%; justify-content: space-between; padding: 13px 14px; font-size: 15.5px; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--teal-100); border-radius: 0;
    margin: 4px 0 8px 16px; padding: 0; display: none; min-width: 0;
  }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown:hover .dropdown { } /* hover dropdown disabled on mobile (click only) */
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stage-rail { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; }
  .feature-row.flip .feature-media { order: 0; }
  .feature-media { max-width: 540px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band .inner { grid-template-columns: 1fr; text-align: center; }
  .cta-band .portrait { margin-inline: auto; }
  .cta-band .actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stage-rail { grid-template-columns: 1fr; }
  .testimonial { grid-template-columns: 1fr; }
  .testimonial .avatar { width: 120px; }
  .news-list li { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .spec-table th { width: auto; display: block; padding-bottom: 4px; }
  .spec-table td { display: block; padding-top: 4px; }
  .brand-text .brand-tag { display: none; }
  .hero-badge { left: 8px; bottom: 12px; padding: 10px 14px; }
  .news-strip .more { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .news-strip, .cta-band, .nav-toggle { display: none !important; }
}
