@charset "utf-8";
/* ===================================================================
   BIZLABO AI — corporate site
   Single shared stylesheet. Mobile-first, breakpoint at 768px.
   Spacing & type scales are deliberately non-uniform (no flat 8/16/24
   rhythm) to give the layout an authored, hand-tuned feel.
   =================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* palette */
  --navy:        #1f2d4d;   /* primary headings */
  --navy-deep:   #16223d;   /* buttons, footer */
  --ink:         #28303f;   /* body copy */
  --ink-soft:    #5a6477;   /* secondary copy */
  --line:        #dde3ec;   /* hairlines */
  --line-soft:   #e8edf3;
  --bg:          #ffffff;
  --bg-mist:     #eef2f7;   /* page wash */
  --bg-cloud:    #f5f8fb;   /* alt sections */
  --accent:      #3a5bd9;   /* restrained blue accent */
  --accent-soft: #aebfe6;

  /* type */
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans:  "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;

  /* deliberately irregular spacing scale */
  --s-1: 6px;
  --s-2: 10px;
  --s-3: 18px;
  --s-4: 28px;
  --s-5: 44px;
  --s-6: 68px;
  --s-7: 104px;
  --s-8: 150px;

  --maxw: 1180px;
  --pad: clamp(22px, 5.5vw, 64px);
  --radius: 14px;
  --radius-s: 9px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 18px 48px -28px rgba(22, 34, 61, .35);
  --shadow-s: 0 8px 26px -18px rgba(22, 34, 61, .4);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* skip link */
.skip-link {
  position: absolute; left: 14px; top: -60px; z-index: 200;
  background: var(--navy-deep); color: #fff; padding: 10px 18px;
  border-radius: 0 0 8px 8px; transition: top .25s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 11vw, 132px); }
.section--mist { background: var(--bg-mist); }
.section--cloud { background: var(--bg-cloud); }

/* eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .72rem; font-weight: 600; letter-spacing: .34em;
  color: var(--accent); text-transform: uppercase; margin-bottom: var(--s-3);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--center { justify-content: center; }

/* headings */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); font-weight: 600; line-height: 1.32; letter-spacing: .01em; }
.h-section { font-size: clamp(1.65rem, 3.6vw, 2.375rem); margin-bottom: var(--s-4); }
.lead { color: var(--ink-soft); font-size: clamp(.96rem, 1.4vw, 1.06rem); max-width: 46ch; }
.text-center { text-align: center; }
.measure { max-width: 60ch; }
.mx-auto { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy-deep);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 30px; background: var(--bg); color: #fff;
  border-radius: 999px; font-size: .9rem; font-weight: 500; letter-spacing: .06em;
  box-shadow: var(--shadow-s); transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  will-change: transform;
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -22px rgba(22,34,61,.6); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: none; border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); }
.btn--light { background: #fff; color: var(--navy-deep); }

/* text link with arrow */
.tlink { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; color: var(--navy); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: gap .3s var(--ease), border-color .3s var(--ease); }
.tlink:hover { gap: 15px; border-color: var(--accent-soft); }

/* ===================================================================
   Header / Navigation
   =================================================================== */
/* NOTE: intentionally NO backdrop-filter / transform / filter here.
   Any of those would make .site-header a containing block for the
   position:fixed mobile drawer nested inside it, breaking the drawer's
   full-viewport layout. Keep the header background solid instead. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line-soft); background: #ffffff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: clamp(118px, 16vw, 150px); }

.nav { display: flex; align-items: center; }
.nav__list { display: none; }
/* CTA lives inside the off-canvas drawer on mobile (panel is hidden when
   closed via transform), so it can stay visible at all widths. */
.nav__cta { display: inline-flex; }

.nav__link {
  position: relative; font-size: .9rem; font-weight: 500; color: var(--ink);
  padding: 8px 2px; transition: color .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--navy); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--navy); }

/* hamburger */
.nav-toggle {
  position: relative; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background .3s var(--ease); z-index: 120;
}
.nav-toggle:hover { background: var(--bg-mist); }
.nav-toggle__bars { position: relative; width: 24px; height: 14px; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--navy-deep);
  transition: transform .4s var(--ease), opacity .25s var(--ease), top .3s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* mobile drawer */
.nav__panel {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px);
  background: #fff; box-shadow: -24px 0 60px -30px rgba(22,34,61,.5);
  padding: 104px var(--pad) 48px;
  transform: translateX(100%); transition: transform .46s var(--ease);
  display: flex; flex-direction: column; gap: var(--s-2); z-index: 110; overflow-y: auto;
}
.nav__panel.is-open { transform: translateX(0); }
.nav__list { display: flex; flex-direction: column; }
.nav__panel .nav__link {
  display: block; font-size: 1.12rem; font-family: var(--serif); padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
/* drawer item stagger — items are visible by DEFAULT (opacity:1) so they
   never get stuck hidden if the entrance animation is skipped; the
   animation only plays the entrance when the panel opens. */
.nav__panel .nav__list li, .nav__panel .nav__cta { opacity: 1; }
.nav__panel.is-open .nav__list li,
.nav__panel.is-open .nav__cta { animation: drawerItem .5s var(--ease) both; }
.nav__panel.is-open .nav__list li:nth-child(1) { animation-delay: .10s; }
.nav__panel.is-open .nav__list li:nth-child(2) { animation-delay: .17s; }
.nav__panel.is-open .nav__list li:nth-child(3) { animation-delay: .24s; }
.nav__panel.is-open .nav__list li:nth-child(4) { animation-delay: .31s; }
.nav__panel.is-open .nav__cta { animation-delay: .40s; }
.nav__panel .btn { margin-top: var(--s-3); justify-content: center; }
@keyframes drawerItem { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.nav__overlay {
  position: fixed; inset: 0; background: rgba(16,24,44,.5); opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
  /* MUST stay BELOW .site-header (z-index:100): the drawer panel lives inside
     the header's stacking context, so it can only out-rank this overlay if the
     overlay is below the whole header. A higher overlay would paint its tint
     ON TOP of the panel — blurred, washed-out, and intercepting taps. */
  z-index: 99;
}
.nav__overlay.is-open { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ===================================================================
   Hero (home)
   =================================================================== */
.hero { position: relative; overflow: hidden; background: var(--bg-mist); }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--hero-img, none) center right / cover no-repeat;
  opacity: .9;
}
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, #fff 18%, rgba(255,255,255,.55) 46%, rgba(255,255,255,0) 74%); }
.hero__inner { position: relative; z-index: 1; padding-block: clamp(96px, 19vw, 188px); }
.hero__eyebrow { font-size: .74rem; letter-spacing: .4em; color: var(--accent); font-weight: 600; }
.hero h1 {
  font-size: clamp(2.9rem, 8.2vw, 5.25rem); line-height: 1.06; letter-spacing: .015em;
  color: var(--navy); margin: var(--s-3) 0 var(--s-4); font-weight: 600;
}
.hero__sub { font-size: clamp(1rem, 1.7vw, 1.18rem); color: var(--ink); max-width: 30ch; line-height: 2; }
.hero__sub-line { display: inline; }
.hero__scroll { display: none; }

/* Hero light-flow — sparkles ride the background's light curve from the
   foreground (lower-left) toward the upper-right, shrinking with perspective
   so they read as flowing "into the distance". Pure CSS (offset-path), no
   images / no JS. Lives inside .hero__bg so the white side-gradient (::after)
   masks the near end over the headline. Disabled for reduced-motion. */
.hero__flow { position: absolute; top: 0; right: 0; height: 100%; width: min(860px, 82%); pointer-events: none; }
.hero__flow .p {
  position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(180,208,255,.98) 35%, rgba(255,255,255,0) 70%);
  box-shadow: 0 0 14px 3px rgba(196,216,255,.75);
  offset-path: path("M 20 470 C 250 440, 520 330, 820 70");
  offset-distance: 0%; opacity: 0; will-change: offset-distance, opacity, transform;
  animation: heroFlow var(--d, 3.2s) linear var(--delay, 0s) infinite;
}
@keyframes heroFlow {
  0%   { offset-distance: 0%;   opacity: 0; transform: scale(1); }
  12%  { opacity: 1; }
  78%  { opacity: .9; }
  100% { offset-distance: 100%; opacity: 0; transform: scale(.25); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__flow { display: none; }
}

/* ===================================================================
   About (home + page intro)
   Full-bleed split: text left / image fills right column to viewport edge
   =================================================================== */
.about { padding-block: 0; overflow: hidden; }
.about__grid { display: grid; align-items: stretch; }
.about__body {
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(56px, 11vw, 132px);
  padding-inline: var(--pad);
}
.about__media {
  min-height: 300px;
  background: var(--about-img, var(--bg-mist)) center / cover no-repeat;
}
.about h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: var(--s-4); }
.about p + p { margin-top: var(--s-3); }
.about .btn { margin-top: var(--s-5); }

/* stat strip */
.stats { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.stat__num { font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 3rem); color: var(--navy); font-weight: 600; line-height: 1; }
.stat__label { font-size: .82rem; color: var(--ink-soft); margin-top: var(--s-2); letter-spacing: .08em; }

/* ===================================================================
   Services
   =================================================================== */
.svc-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc-card {
  background: #fff; padding: clamp(28px, 4vw, 44px) clamp(24px, 3.4vw, 38px);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.svc-card:hover { background: var(--bg-cloud); }
.svc-card__icon { width: 76px; height: 76px; }
.svc-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.svc-card__no { font-size: .72rem; letter-spacing: .2em; color: var(--accent-soft); font-weight: 600; }
.svc-card h3 { font-size: 1.16rem; line-height: 1.5; }
.svc-card p { font-size: .92rem; color: var(--ink-soft); line-height: 1.9; }

/* ===================================================================
   Topics
   =================================================================== */
.topics__head { display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-5); }
.topic-list { display: flex; flex-direction: column; }
.topic-item {
  display: grid; grid-template-columns: 1fr; gap: var(--s-1);
  padding: var(--s-4) 0; border-top: 1px solid var(--line);
  transition: padding-left .4s var(--ease);
}
.topic-item:last-child { border-bottom: 1px solid var(--line); }
.topic-item:hover { padding-left: 10px; }
.topic-item__meta { display: flex; align-items: center; gap: 16px; }
.topic-item time { font-size: .82rem; color: var(--ink-soft); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.topic-tag { font-size: .68rem; letter-spacing: .12em; padding: 4px 12px; border-radius: 999px; background: var(--bg-mist); color: var(--navy); font-weight: 600; }
.topic-tag--news { background: #e6ecfb; color: var(--accent); }
.topic-tag--seminar { background: #e7f3ee; color: #2f7d5b; }
.topic-tag--media { background: #f4ece2; color: #9a6a2f; }
.topic-item h3 { font-family: var(--sans); font-weight: 500; font-size: 1.02rem; color: var(--ink); line-height: 1.7; transition: color .3s var(--ease); }
.topic-item:hover h3 { color: var(--navy); }

/* ===================================================================
   CTA banner
   =================================================================== */
.cta { padding-block: clamp(40px, 8vw, 80px); }
.cta__panel {
  position: relative; overflow: hidden; border-radius: clamp(16px, 2.4vw, 26px);
  background: linear-gradient(118deg, #0d1730 0%, #16223d 60%, #1c2c4e 100%); color: #fff;
  padding: clamp(44px, 7vw, 88px) var(--pad);
  display: flex; flex-direction: column; gap: var(--s-4); align-items: flex-start;
}
/* texture image, kept subtle and darkened so white text stays legible */
.cta__panel::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .3; mix-blend-mode: screen;
  background: var(--cta-img, none) center right / cover no-repeat;
}
.cta__panel::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(10,18,40,.55), rgba(10,18,40,.12));
}
.cta__panel > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 4.6vw, 2.9rem); }
.cta p { color: rgba(255,255,255,.8); max-width: 44ch; }

/* ===================================================================
   Footer
   =================================================================== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding-block: clamp(52px, 8vw, 84px) var(--s-5); }
.footer__top { display: grid; gap: var(--s-5); }
.footer__brand img { width: 152px; filter: brightness(0) invert(1); opacity: .95; }
.footer__tagline { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-top: var(--s-3); letter-spacing: .04em; }
.footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-3); }
.footer__col-title { color: rgba(255,255,255,.5); font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: var(--s-3); }
.footer__col a { display: inline-block; padding: 6px 0; font-size: .9rem; color: rgba(255,255,255,.78); transition: color .3s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; color: rgba(255,255,255,.55); }
.footer__bottom a:hover { color: #fff; }

/* ===================================================================
   Sub-page hero / breadcrumb
   =================================================================== */
.page-hero { position: relative; background: var(--bg-mist); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -8%; top: -40%; width: 60%; height: 180%;
  background: radial-gradient(closest-side, rgba(58,91,217,.10), transparent 70%); z-index: 0;
}
.page-hero__inner { position: relative; z-index: 1; padding-block: clamp(72px, 13vw, 132px) clamp(40px, 7vw, 70px); }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.18; margin-bottom: var(--s-3); }
.page-hero__lead { color: var(--ink-soft); max-width: 52ch; font-size: clamp(.96rem, 1.5vw, 1.05rem); }
.page-hero__en { display:block; font-family: var(--serif); font-size: .8rem; letter-spacing: .34em; color: var(--accent); text-transform: uppercase; margin-bottom: var(--s-3); }

.breadcrumb { padding-block: var(--s-3); border-bottom: 1px solid var(--line-soft); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .78rem; color: var(--ink-soft); }
.breadcrumb li { display: flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: "/"; color: var(--line); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb [aria-current="page"] { color: var(--navy); }

/* ===================================================================
   Company table (aboutus)
   =================================================================== */
.deftable { width: 100%; border-collapse: collapse; }
.deftable th, .deftable td { text-align: left; padding: var(--s-4) var(--s-2); border-bottom: 1px solid var(--line); vertical-align: top; font-size: .94rem; }
.deftable th { width: 34%; color: var(--navy); font-weight: 600; font-family: var(--sans); white-space: nowrap; }
.deftable td { color: var(--ink); }

.values { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: var(--s-5); }
.value-card { background: #fff; padding: clamp(28px,4vw,40px); }
.value-card__no { font-family: var(--serif); color: var(--accent-soft); font-size: 1.1rem; }
.value-card h3 { font-size: 1.2rem; margin: var(--s-2) 0 var(--s-2); }
.value-card p { color: var(--ink-soft); font-size: .92rem; }

/* ===================================================================
   Service detail rows (services page)
   =================================================================== */
.svc-row { display: grid; gap: var(--s-4); padding-block: clamp(40px, 6vw, 68px); border-top: 1px solid var(--line); align-items: center; scroll-margin-top: 100px; }
.svc-row:first-of-type { border-top: 0; }
.svc-row__media { background: var(--bg-cloud); border-radius: var(--radius); padding: clamp(28px,5vw,52px); display: grid; place-items: center; }
.svc-row__media img { width: min(220px, 60%); }
.svc-row__no { font-family: var(--serif); font-size: 1rem; color: var(--accent-soft); letter-spacing: .1em; }
.svc-row h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: var(--s-2) 0 var(--s-3); }
.svc-row p { color: var(--ink-soft); }
.svc-row ul.ticks { margin-top: var(--s-3); display: grid; gap: var(--s-2); }
.svc-row ul.ticks li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--ink); }
.svc-row ul.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ===================================================================
   Contact form
   =================================================================== */
.contact__grid { display: grid; gap: var(--s-6); }
.contact__aside p { color: var(--ink-soft); font-size: .94rem; }
.contact__aside dl { margin-top: var(--s-5); display: grid; gap: var(--s-4); }
.contact__aside dt { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.contact__aside dd { font-size: 1.05rem; color: var(--navy); font-family: var(--serif); margin-top: 4px; }

.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: 9px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--navy); }
.field .req { color: var(--accent); font-size: .72rem; margin-left: 8px; font-weight: 600; }
.field .opt { color: var(--ink-soft); font-size: .72rem; margin-left: 8px; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; width: 100%; padding: 14px 16px; color: var(--ink);
  background: var(--bg-cloud); border: 1px solid var(--line); border-radius: var(--radius-s);
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { min-height: 168px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(58,91,217,.10); }
.field--consent { grid-auto-flow: column; grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field--consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }
.field--consent label { font-weight: 400; font-size: .88rem; color: var(--ink); }
.form__note { font-size: .8rem; color: var(--ink-soft); }
.form__submit { justify-self: start; }
.form__status { font-size: .9rem; padding: 14px 18px; border-radius: var(--radius-s); display: none; }
.form__status.is-ok { display: block; background: #e7f3ee; color: #246b4c; }
.form__status.is-err { display: block; background: #fbeaea; color: #a4332f; }

/* ===================================================================
   Legal / prose (privacy policy)
   =================================================================== */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); margin: var(--s-6) 0 var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.prose p { margin-bottom: var(--s-3); color: var(--ink); }
.prose ul { margin: 0 0 var(--s-3) 0; display: grid; gap: var(--s-2); }
.prose ul li { position: relative; padding-left: 22px; color: var(--ink); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .82em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }
.prose .updated { color: var(--ink-soft); font-size: .84rem; margin-bottom: var(--s-5); }

/* placeholder image frame (for art to be generated later) */
.img-placeholder {
  position: relative; display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, #f1f4f9, #f1f4f9 12px, #eaeff6 12px, #eaeff6 24px);
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft);
  font-size: .76rem; letter-spacing: .08em; aspect-ratio: 16 / 10;
}
.img-placeholder span { background: rgba(255,255,255,.85); padding: 6px 14px; border-radius: 999px; }

/* ===================================================================
   Scroll reveal
   =================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
[data-reveal-group] > * { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal-group].is-visible > * { opacity: 1; transform: none; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: .08s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: .16s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: .24s; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: .32s; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: .40s; }
[data-reveal-group].is-visible > *:nth-child(7) { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, [data-reveal-group] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .nav__panel .nav__list li, .nav__panel .nav__cta { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ===================================================================
   Topic category tabs + clickable rows
   =================================================================== */
.topic-tabs { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: var(--s-5) 0 0; border-bottom: 1px solid var(--line); }
.topic-tab {
  position: relative; padding: 13px 22px; font-size: .9rem; font-weight: 600; color: var(--ink-soft);
  border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.topic-tab:hover { color: var(--navy); background: var(--bg-cloud); }
.topic-tab[aria-selected="true"] { color: var(--navy); border-color: var(--navy); }
.topic-item.is-hidden { display: none; }
.topic-empty { padding: var(--s-6) 0; color: var(--ink-soft); text-align: center; display: none; }
.topic-empty.is-shown { display: block; }
/* row as a link */
a.topic-item { color: inherit; }
.topic-item__arrow { display: none; }

/* ===================================================================
   Google Map embed
   =================================================================== */
.map-embed { position: relative; margin-top: var(--s-5); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--bg-cloud); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-note { font-size: .8rem; color: var(--ink-soft); margin-top: var(--s-2); }

/* ===================================================================
   Article detail
   =================================================================== */
.article { max-width: 760px; }
.article__meta { display: flex; align-items: center; gap: 16px; margin-bottom: var(--s-3); }
.article__body { margin-top: var(--s-5); }
.article__body h2 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); margin: var(--s-6) 0 var(--s-3); }
.article__body p { margin-bottom: var(--s-3); }
.article__body ul { margin: 0 0 var(--s-3); display: grid; gap: var(--s-2); }
.article__body ul li { position: relative; padding-left: 22px; }
.article__body ul li::before { content: ""; position: absolute; left: 4px; top: .82em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }
.article__figure { margin: var(--s-5) 0; border-radius: var(--radius); overflow: hidden; }
.article__back { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--line); }

/* ===================================================================
   Responsive — 768px breakpoint and up
   =================================================================== */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav__panel { position: static; width: auto; transform: none; box-shadow: none; padding: 0; background: none; overflow: visible; flex-direction: row; align-items: center; gap: var(--s-5); }
  .nav__list { display: flex; flex-direction: row; align-items: center; gap: clamp(20px, 3vw, 38px); }
  .nav__panel .nav__list li, .nav__panel .nav__cta { opacity: 1; transform: none; animation: none; }
  .nav__panel .nav__link { font-size: .9rem; font-family: var(--sans); padding: 8px 2px; border: 0; }
  .nav__panel .btn { margin-top: 0; }
  .nav__cta { display: inline-flex; }
  .nav__overlay { display: none; }

  .hero__scroll { display: flex; align-items: center; gap: 12px; margin-top: var(--s-6); font-size: .72rem; letter-spacing: .26em; color: var(--ink-soft); writing-mode: vertical-rl; position: absolute; right: var(--pad); bottom: clamp(40px, 8vw, 80px); }
  .hero__scroll::after { content: ""; width: 1px; height: 52px; background: linear-gradient(var(--accent), transparent); }

  /* hero subtitle: keep each sentence on its own line → exactly 2 lines */
  .hero__sub { max-width: none; }
  .hero__sub-line { display: inline-block; white-space: nowrap; }

  .about__grid { grid-template-columns: 1fr 1fr; gap: 0; min-height: 560px; }
  .about__body {
    padding-left: max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad)));
    padding-right: clamp(40px, 5vw, 88px);
  }
  .about__grid--reverse .about__media { order: -1; }
  .stats { grid-template-columns: repeat(3, 1fr); }

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

  .topic-item { grid-template-columns: 210px 1fr; align-items: baseline; gap: var(--s-5); padding: var(--s-4) var(--s-2); }
  .topic-item__meta { gap: 18px; }

  .cta__panel { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--s-6); }
  .cta__panel .cta__body { max-width: 60%; }

  .footer__top { grid-template-columns: 1fr 1.2fr; gap: var(--s-7); }
  .footer__nav { grid-template-columns: repeat(4, 1fr); }
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }

  .svc-row { grid-template-columns: 5fr 7fr; gap: var(--s-6); }
  .svc-row:nth-child(even) .svc-row__media { order: 2; }
  .values { grid-template-columns: repeat(3, 1fr); }

  .contact__grid { grid-template-columns: 4fr 6fr; gap: clamp(40px, 6vw, 92px); align-items: start; }
  .form__row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .page-hero__inner { padding-block: clamp(96px, 13vw, 156px) clamp(48px, 7vw, 78px); }
}

@media (min-width: 1080px) {
  .svc-grid--home { grid-template-columns: repeat(3, 1fr); }
}
