/* ===== Aim Corporate Site — Light Blue Theme ===== */
:root {
  --navy: #0F2444;
  --navy-2: #1B2A4A;
  --blue: #2E7BD6;
  --blue-light: #6FB7F2;
  --sky: #E6F2FB;
  --sky-2: #F4FAFE;
  --white: #ffffff;
  --text: #1f2a44;
  --text-muted: #5b6b85;
  --line: #d8e6f3;
  --shadow: 0 6px 24px rgba(28, 62, 110, .08);
  --radius: 12px;
  --max: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Yu Gothic", "游ゴシック", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo img { height: 38px; }
.global-nav > .header-inner > ul,
.global-nav > ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 32px; align-items: center;
}
.global-nav ul {
  list-style: none; margin: 0; padding: 0;
}
.global-nav a {
  color: var(--navy); font-weight: 600; font-size: 15px;
  padding: 8px 0; position: relative;
}
.global-nav a:hover { color: var(--blue); }
.global-nav .nav-cta {
  background: var(--blue); color: #fff !important; padding: 10px 20px;
  border-radius: 999px; font-size: 14px;
}
.global-nav .nav-cta:hover { background: var(--navy); }
.has-dropdown { position: relative; }
.has-dropdown > a { cursor: pointer; }
.has-dropdown > a::after {
  content: "▾"; font-size: 10px; margin-left: 4px; opacity: .6;
}
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: #fff; box-shadow: var(--shadow);
  border: 1px solid var(--line); border-radius: 8px;
  min-width: 220px; padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s;
  display: block; flex-direction: column; gap: 0;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu li { display: block; }
.dropdown-menu a {
  display: block; padding: 10px 18px; font-size: 14px;
}
.dropdown-menu a:hover { background: var(--sky); }
.hamburger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 36px; height: 36px; padding: 6px;
}
.hamburger span {
  display: block; width: 100%; height: 2px; background: var(--navy);
  margin: 5px 0; transition: transform .2s, opacity .2s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--sky-2) 0%, var(--sky) 50%, #d6ebfa 100%);
  padding: 96px 0 88px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 80% 20%, rgba(46,123,214,.18), transparent 60%),
              radial-gradient(600px 320px at 10% 80%, rgba(111,183,242,.22), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 46px); line-height: 1.3;
  color: var(--navy); margin: 0 0 20px; font-weight: 700;
  letter-spacing: .02em;
}
.hero h1 .accent { color: var(--blue); }
.hero p.lead {
  font-size: 17px; color: var(--text); margin: 0 0 32px; max-width: 480px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual img {
  border-radius: 16px; box-shadow: 0 20px 60px rgba(28,62,110,.18);
  width: 100%;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 14px 28px;
  border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all .2s;
  text-align: center;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* ===== Section base ===== */
section { padding: 88px 0; }
.section-eyebrow {
  display: inline-block; color: var(--blue); font-weight: 700;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 3vw, 34px); color: var(--navy);
  margin: 0 0 16px; font-weight: 700; line-height: 1.4;
}
.section-lead {
  color: var(--text-muted); font-size: 16px; max-width: 720px; margin: 0 auto 48px;
}
.section-head { text-align: center; margin-bottom: 56px; }

/* ===== Values ===== */
.values { background: var(--sky-2); }
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; text-align: center; transition: transform .25s, box-shadow .25s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px; font-weight: 700;
}
.value-card h3 { color: var(--navy); margin: 0 0 12px; font-size: 18px; }
.value-card p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ===== Services ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.service-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .thumb {
  aspect-ratio: 16/10; background: var(--sky); overflow: hidden;
}
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-card .body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 {
  color: var(--navy); font-size: 19px; margin: 0 0 10px;
}
.service-card p { color: var(--text-muted); font-size: 14px; margin: 0 0 18px; flex: 1; }
.service-card .more {
  color: var(--blue); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card .more::after { content: "→"; transition: transform .2s; }
.service-card:hover .more::after { transform: translateX(4px); }

/* ===== Cases ===== */
.cases { background: linear-gradient(180deg, #fff 0%, var(--sky-2) 100%); }
.cases-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.case-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: grid; grid-template-columns: 1fr 1.2fr;
}
.case-card .thumb { aspect-ratio: auto; }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-card .body { padding: 24px; }
.case-tag {
  display: inline-block; background: var(--sky); color: var(--blue);
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  margin-bottom: 10px;
}
.case-card h3 { color: var(--navy); font-size: 18px; margin: 0 0 10px; }
.case-card p { color: var(--text-muted); font-size: 14px; margin: 0 0 14px; }
.case-card .metrics {
  display: flex; gap: 16px; padding-top: 12px; border-top: 1px dashed var(--line);
}
.case-card .metric strong {
  display: block; color: var(--blue); font-size: 22px; font-weight: 700;
}
.case-card .metric span { font-size: 11px; color: var(--text-muted); }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, #1c3a6e 60%, var(--blue) 100%);
  color: #fff; padding: 64px 0;
}
.cta-band .container {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 26px; }
.cta-band p { margin: 0; opacity: .85; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-primary:hover { background: var(--sky); color: var(--navy); }

/* ===== Page hero (sub pages) ===== */
.page-hero {
  position: relative; padding: 80px 0 64px;
  background: linear-gradient(120deg, var(--sky-2) 0%, var(--sky) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(28px, 3.6vw, 40px); color: var(--navy);
  margin: 0 0 8px; font-weight: 700;
}
.page-hero p.lead { color: var(--text-muted); margin: 0; font-size: 16px; }
.breadcrumb {
  font-size: 13px; color: var(--text-muted); margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ===== Company / table ===== */
.info-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.info-table th, .info-table td {
  padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line);
  font-size: 15px; vertical-align: top;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th {
  background: var(--sky-2); color: var(--navy); font-weight: 600;
  width: 200px;
}

/* ===== Contact form ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.contact-info { background: var(--sky-2); border-radius: var(--radius); padding: 32px; }
.contact-info h3 { color: var(--navy); margin: 0 0 16px; font-size: 18px; }
.contact-info p { color: var(--text-muted); font-size: 14px; margin: 0 0 18px; }
.contact-info .info-row { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14px; }
.contact-info .info-row strong { min-width: 70px; color: var(--navy); }

.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: 14px; font-weight: 600; color: var(--navy); }
.form-row label .req { color: #e25757; margin-left: 4px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 15px; font-family: inherit;
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(46,123,214,.12);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* ===== Service detail blocks ===== */
.feature-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px;
}
.feature-list .item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center;
}
.feature-list .num {
  display: inline-block; font-family: Georgia, serif; font-size: 28px;
  color: var(--blue); font-weight: 700; margin-bottom: 8px;
}
.feature-list h3 { color: var(--navy); margin: 0 0 8px; font-size: 17px; }
.feature-list p { color: var(--text-muted); font-size: 14px; margin: 0; }

.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px;
}
.price-card-item {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; transition: all .25s;
}
.price-card-item.featured { border-color: var(--blue); position: relative; }
.price-card-item.featured::before {
  content: "おすすめ"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; padding: 4px 16px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.price-card-item h3 { color: var(--navy); margin: 0 0 12px; font-size: 19px; }
.price-amt { font-size: 32px; color: var(--blue); font-weight: 700; margin: 16px 0 6px; }
.price-amt small { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.price-card-item ul {
  list-style: none; padding: 16px 0 0; margin: 16px 0 0;
  border-top: 1px solid var(--line); text-align: left;
}
.price-card-item li {
  padding: 8px 0; font-size: 14px; color: var(--text); padding-left: 24px; position: relative;
}
.price-card-item li::before {
  content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700;
}

.tools-band { background: var(--sky-2); padding: 56px 0; }
.tools-band h3 { text-align: center; color: var(--navy); margin: 0 0 24px; font-size: 18px; }
.tools-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 40px;
  color: var(--text-muted); font-weight: 600;
}
.tools-logos span {
  padding: 10px 18px; background: #fff; border-radius: 999px;
  border: 1px solid var(--line); font-size: 14px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy); color: #d8e6f3; padding: 56px 0 24px; margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px;
}
.footer-brand img {
  height: 36px; margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.footer-brand p { font-size: 13px; opacity: .75; margin: 0 0 10px; line-height: 1.8; }
.footer-col h4 {
  color: #fff; font-size: 14px; margin: 0 0 16px;
  letter-spacing: .1em; text-transform: uppercase;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #c5d6e9; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px;
  text-align: center; font-size: 12px; opacity: .6;
}
.map-embed {
  border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.1);
  margin-top: 12px;
}
.map-embed iframe { display: block; width: 100%; height: 180px; border: 0; }

/* ===== Animations ===== */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero { padding: 64px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .values-grid, .services-grid, .feature-list, .price-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hamburger { display: block; }
  .global-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; padding: 20px;
    border-bottom: 1px solid var(--line);
    display: none;
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 4px; align-items: stretch; }
  .global-nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0;
  }
  .values-grid, .services-grid, .feature-list, .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .info-table th { width: 110px; padding: 14px 12px; font-size: 13px; }
  .info-table td { padding: 14px 12px; font-size: 14px; }
  .cta-band .container { flex-direction: column; text-align: center; }
}

/* ============================================================
   Aqua Intelligence Layer — Background refresh (additive)
   Sources: M01〜M12 + Canvas particles
   ============================================================ */

/* Body-wide subtle noise (4–6%) */
body { position: relative; }
body::before {
  content: "";
  position: fixed; inset: 0;
  background: url("../images/bg/M09_subtle_noise_texture.png") repeat;
  background-size: 280px 280px;
  opacity: .05;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}
/* Keep app content above noise */
.site-header, section, footer { position: relative; z-index: 1; }

/* ===== Hero ===== */
.hero { isolation: isolate; overflow: hidden; }
.hero::before {
  /* Mesh background (M01) */
  content: "";
  position: absolute; inset: -6%;
  background: url("../images/bg/M01_hero_mesh_lightblue.webp") center/cover no-repeat;
  z-index: -3;
  animation: heroMeshDrift 24s ease-in-out infinite alternate;
  will-change: transform;
}
.hero::after {
  /* Tech lines + diagonal accent + glow (right side) */
  content: "";
  position: absolute; inset: 0;
  background:
    url("../images/bg/M12_logo_inspired_diagonal_accent.svg") top right / 420px auto no-repeat,
    url("../images/bg/M10_hero_tech_lines.svg") right center / 60% 100% no-repeat,
    radial-gradient(420px 320px at 78% 30%, rgba(111,183,242,.28), transparent 70%);
  z-index: -2;
  opacity: .9;
  pointer-events: none;
}
.hero .bg-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}
@keyframes heroMeshDrift {
  0%   { transform: translate3d(0,0,0) scale(1.00); }
  100% { transform: translate3d(-1.4%,-0.8%,0) scale(1.04); }
}

/* ===== Values — dot grid + soft glow ===== */
.values { position: relative; overflow: hidden; }
.values::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../images/bg/M05_values_dot_grid.svg") repeat;
  background-size: 32px 32px;
  opacity: .08;
  pointer-events: none;
  z-index: 0;
}
.values::after {
  content: "";
  position: absolute; top: -120px; right: -80px;
  width: 520px; height: 520px;
  background: url("../images/bg/M07_soft_cyan_glow.png") center/contain no-repeat;
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}
.values .container { position: relative; z-index: 1; }

/* ===== Services — thin diagonal lines + soft layer ===== */
.services { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #F7FBFF 100%); }
.services::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 120px,
      rgba(46,123,214,.05) 120px 121px,
      transparent 121px 240px
    );
  pointer-events: none;
  z-index: 0;
}
.services::after {
  content: "";
  position: absolute; bottom: -180px; left: -120px;
  width: 480px; height: 480px;
  background: url("../images/bg/M07_soft_cyan_glow.png") center/contain no-repeat;
  opacity: .25;
  pointer-events: none;
  z-index: 0;
}
.services .container { position: relative; z-index: 1; }

/* ===== Cases — structural thin lines ===== */
.cases { position: relative; overflow: hidden; }
.cases::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../images/bg/M06_cases_structural_lines.svg") center/cover no-repeat;
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}
.cases .container { position: relative; z-index: 1; }

/* ===== CTA band — Navy Tech Contrast ===== */
.cta-band {
  position: relative;
  isolation: isolate;
  background: #0F2444;
  color: #fff;
  overflow: hidden;
}
.cta-band::before {
  /* Navy mesh + glow base */
  content: "";
  position: absolute; inset: -8%;
  background: url("../images/bg/M03_cta_navy_cyan_glow.webp") center/cover no-repeat;
  z-index: -3;
  filter: saturate(1.05);
  animation: ctaMeshBreathe 14s ease-in-out infinite alternate;
  will-change: transform;
}
.cta-band::after {
  /* Right-back cyan glow */
  content: "";
  position: absolute; right: -180px; top: -120px;
  width: 720px; height: 720px;
  background: url("../images/bg/M07_soft_cyan_glow.png") center/contain no-repeat;
  opacity: .55;
  mix-blend-mode: screen;
  z-index: -2;
  animation: ctaGlowBreathe 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.cta-band .bg-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}
/* Top/bottom fade joiners */
.cta-band {
  margin-top: 0;
}
.cta-band::before { box-shadow: none; }
.cta-band .fade-top, .cta-band .fade-bot {
  content: "";
  position: absolute; left: 0; right: 0; height: 80px; z-index: 0;
  pointer-events: none;
}
.cta-band .fade-top { top: 0; background: linear-gradient(180deg, rgba(15,36,68,1) 0%, rgba(15,36,68,0) 100%); display: none; }
.cta-band .fade-bot { bottom: 0; background: linear-gradient(0deg, rgba(15,36,68,1) 0%, rgba(15,36,68,0) 100%); display: none; }

.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.78); }

/* Smooth join above CTA */
.cta-band-join-top {
  height: 64px;
  background: linear-gradient(180deg, var(--white) 0%, var(--sky-2) 60%, #0F2444 100%);
  margin: 0;
}
.cta-band-join-bot {
  height: 48px;
  background: linear-gradient(180deg, #0F2444 0%, var(--navy) 100%);
  margin: 0;
}

@keyframes ctaMeshBreathe {
  0%   { transform: translate3d(0,0,0) scale(1.00); }
  100% { transform: translate3d(1.5%,1%,0) scale(1.05); }
}
@keyframes ctaGlowBreathe {
  0%   { transform: scale(1.00); opacity: .45; }
  100% { transform: scale(1.06); opacity: .62; }
}

/* ===== Page-Hero (sub pages) ===== */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../images/bg/M02_pagehero_mesh_pale.webp") center/cover no-repeat;
  z-index: -2;
  animation: heroMeshDrift 28s ease-in-out infinite alternate;
}
.page-hero::after {
  content: "";
  position: absolute; top: -40px; right: -40px;
  width: 360px; height: 360px;
  background: url("../images/bg/M12_logo_inspired_diagonal_accent.svg") center/contain no-repeat;
  opacity: .7;
  pointer-events: none;
  z-index: -1;
}

/* ===== Footer accent line ===== */
.site-footer { position: relative; isolation: isolate; }
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 24px;
  background: url("../images/bg/M11_footer_cyan_line.svg") center top / 100% 100% no-repeat;
  opacity: .9;
  pointer-events: none;
  z-index: 1;
}

/* ===== Reduced motion: freeze ===== */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .cta-band::before,
  .cta-band::after,
  .page-hero::before { animation: none !important; }
  .hero .bg-canvas, .cta-band .bg-canvas { display: none; }
}

/* ===== Mobile: simplify ===== */
@media (max-width: 640px) {
  .hero::after { background-size: 80% auto, 90% 100%, 100% 100%; opacity: .75; }
  .values::after, .services::after { width: 320px; height: 320px; opacity: .2; }
  .cta-band::after { width: 480px; height: 480px; right: -120px; top: -80px; }
  body::before { opacity: .03; }
}
