/* ==========================================================================
   IndigoMx — site styles
   Brand colors taken from the company profile deck:
   navy #002060 ("indigo" in the logo), purple #7030A0 ("mx" in the logo)
   Brand rules (Bloom brand skill): indigo leads on clean white; purple is used
   selectively for highlights, callouts and section dividers. Headings in
   Trebuchet MS Bold, body in Calibri (Carlito is its metric-compatible web fallback).
   Motif: the speech bubbles from the logo mark.
   ========================================================================== */

:root {
  --navy: #002060;
  --navy-900: #001437;
  --navy-700: #0b2d73;
  --purple: #7030a0;
  --purple-600: #5f2789;
  --purple-100: #f1e9f8;
  --purple-300: #c9a3e6;   /* light purple for accents on navy */
  --lavender: #eef0f8;
  --lavender-300: #d9def0;
  --ink: #18203a;
  --body: #3d4559;
  --muted: #6a7186;
  --line: #e2e5ef;
  --white: #ffffff;
  --bg: #ffffff;

  --font-head: "Trebuchet MS", "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: Calibri, Carlito, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --bubble: 22px 22px 22px 4px;        /* speech-bubble corner, from the logo mark */
  --bubble-lg: 32px 32px 32px 6px;
  --shadow-sm: 0 1px 2px rgba(0, 32, 96, 0.06), 0 2px 8px rgba(0, 32, 96, 0.05);
  --shadow: 0 2px 4px rgba(0, 32, 96, 0.05), 0 12px 32px rgba(0, 32, 96, 0.09);
  --container: 1180px;
  --gutter: 24px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--purple-600); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }

.accent { color: var(--purple); }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--lavender); }
.section--tight { padding: clamp(40px, 6vw, 64px) 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--purple); flex-shrink: 0;
}
.section-head--center .eyebrow { justify-content: center; }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.125rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(0, 32, 96, 0.22); }
.btn--primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 32, 96, 0.28); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--lavender-300); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--purple-100); color: var(--navy); transform: translateY(-1px); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--sm { min-height: 42px; padding: 8px 20px; font-size: 0.95rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  color: var(--ink); text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.nav__links a:hover { background: var(--lavender); color: var(--navy); }
.nav__links a { position: relative; }
.nav__links a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px;
  margin-left: -2.5px; border-radius: 50%; background: var(--purple);
}
@media (max-width: 920px) { .nav__links a[aria-current="page"]::after { left: 4px; top: 50%; bottom: auto; margin: -2.5px 0 0; } }
.nav .btn { margin-left: 12px; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 16px var(--gutter) 24px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links { flex-direction: column; align-items: stretch; }
  .nav__links a { padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
/* Full-bleed photo with a navy wash from the left; copy sits over the dark side. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 640px; display: flex; align-items: center;
  background: var(--navy-900); color: #fff;
}
.hero__image {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 46%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(0, 20, 55, 0.94) 0%, rgba(0, 20, 55, 0.8) 33%, rgba(0, 20, 55, 0.25) 64%, rgba(0, 20, 55, 0.06) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(112, 48, 160, 0.22), transparent 42%);
}
.hero > .container { width: 100%; }
.hero__content { max-width: 640px; padding: 64px 0 90px; }
.hero .eyebrow { color: #fff; margin-bottom: 24px; }
.hero .eyebrow::before { background: var(--purple-300); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.12; margin-bottom: 0; }
.hero h1 .accent { color: var(--purple-300); }
.hero__lead { font-size: 1.25rem; color: #e3e6f0; max-width: 470px; margin: 24px 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__index {
  position: absolute; bottom: 26px; right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: 0.76rem; letter-spacing: 0.1em; color: #e3e6f0;
}
.hero__index span { width: 48px; height: 1px; background: rgba(255, 255, 255, 0.45); }

@media (max-width: 780px) {
  .hero { min-height: 620px; align-items: flex-end; }
  .hero__image { object-position: 65% 40%; }
  .hero::before { background: linear-gradient(0deg, rgba(0, 20, 55, 0.95), rgba(0, 20, 55, 0.66) 52%, rgba(0, 20, 55, 0.12) 100%); }
  .hero__content { padding: 200px 0 72px; }
  .hero .eyebrow { font-size: 0.7rem; letter-spacing: 0.08em; }
  .hero__lead { font-size: 1.1rem; }
  .hero__index { bottom: 20px; font-size: 0.68rem; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(56px, 7vw, 88px) 0 clamp(48px, 6vw, 72px);
  background: var(--lavender);
  border-bottom: 1px solid var(--lavender-300);
}
.page-hero__image {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--hero-position, center);
}
.page-hero--about { --hero-position: center 43%; }
.page-hero--services { --hero-position: center 58%; }
.page-hero--work { --hero-position: center 42%; }
.page-hero--contact { --hero-position: center 55%; }
/* White wash keeps the copy readable while leaving the office scene visible. */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.86) 45%,
    rgba(255, 255, 255, 0.62) 75%,
    rgba(255, 255, 255, 0.40) 100%);
}
.page-hero > .container { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); max-width: 820px; }
.page-hero p { font-size: 1.25rem; max-width: 680px; color: var(--body); margin: 0; }

@media (max-width: 780px) {
  .page-hero__image { object-position: 65% center; }
  .page-hero::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
  }
}

/* ---------- Client logos ---------- */
.logos { padding: 44px 0; border-bottom: 1px solid var(--line); }
.logos__label { text-align: center; font-size: 1.1rem; color: var(--body); margin-bottom: 28px; }
/* Infinite marquee: two identical sets, the track slides by exactly one set width. */
.logos__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos__track { display: flex; width: max-content; animation: logos-scroll 40s linear infinite; }
.logos__marquee:hover .logos__track { animation-play-state: paused; }
.logos__set { display: flex; align-items: center; flex-shrink: 0; }
.logos__set img {
  height: 64px; width: auto; max-width: 180px; object-fit: contain; margin-right: 56px;
  filter: grayscale(1); opacity: 0.7; transition: filter .25s ease, opacity .25s ease;
}
.logos__set img:hover { filter: none; opacity: 1; }
.logos__company {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  min-height: 48px; max-width: 220px; margin-right: 56px; padding: 10px 16px;
  color: var(--navy); font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  line-height: 1.2; text-align: center; border: 1px solid var(--line); border-radius: 4px;
  opacity: .75; transition: border-color .25s ease, opacity .25s ease;
}
.logos__company:hover { border-color: var(--navy); opacity: 1; }
@keyframes logos-scroll { to { transform: translateX(-50%); } }
@media (max-width: 560px) {
  .logos__set img { height: 48px; max-width: 130px; margin-right: 36px; }
  .logos__company { max-width: 168px; margin-right: 36px; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .logos__marquee { -webkit-mask-image: none; mask-image: none; }
  .logos__track { animation: none; width: auto; }
  .logos__set { flex-wrap: wrap; justify-content: center; gap: 24px 0; }
  .logos__set[aria-hidden] { display: none; }
}

.client-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.client-wall__item {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; aspect-ratio: 3 / 2;
}
.client-wall__item img { max-height: 84px; width: auto; }
.client-wall__name { color: var(--navy); font-family: var(--font-display); font-size: .95rem; font-weight: 600; line-height: 1.3; text-align: center; }
.client-tabs { margin-top: 32px; }
.client-tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.client-tabs__tab {
  padding: 10px 16px; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 4px;
  font: 600 .88rem/1.2 var(--font-display); text-align: center; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.client-tabs__tab:hover { border-color: var(--navy); }
.client-tabs__tab[aria-selected="true"] { color: #fff; background: var(--navy); border-color: var(--navy); }
.client-tabs__tab:focus-visible { outline: 3px solid rgba(112, 48, 160, .35); outline-offset: 2px; }
@media (max-width: 520px) {
  .client-tabs { margin-top: 24px; }
  .client-tabs__list { justify-content: flex-start; }
  .client-tabs__tab { flex: 1 1 145px; }
}
@media (max-width: 800px) { .client-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .client-wall { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--purple));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-3px); }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card ul { margin: 4px 0 24px; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--body); font-size: 0.98rem; }
.card li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--purple);
}
.card .link-arrow { margin-top: auto; }

.icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50% 50% 50% 6px;
  background: #fff; border: 2.5px solid var(--navy);
  color: var(--purple); margin-bottom: 22px; flex-shrink: 0;
}
.icon-circle svg { width: 26px; height: 26px; }

/* ---------- Founder / split ---------- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.split--reverse { grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 900px) { .split, .split--reverse { grid-template-columns: 1fr; gap: 40px; } }

.portrait { position: relative; max-width: 420px; }
.portrait img { border-radius: var(--bubble-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 1; object-fit: cover; }
.portrait::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: -1;
  border-radius: var(--bubble-lg); border: 2.5px solid var(--navy); opacity: 0.18;
}
.portrait__tag {
  position: absolute; left: 20px; bottom: 20px; border-left: 3px solid var(--purple);
  background: rgba(255, 255, 255, 0.95); border-radius: var(--radius-sm);
  padding: 10px 14px; box-shadow: var(--shadow-sm);
}
.portrait__tag strong { display: block; font-family: var(--font-head); color: var(--navy); }
.portrait__tag span { font-size: 0.85rem; color: var(--muted); }

.creds { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; padding: 0; list-style: none; }
.creds li {
  font-size: 0.88rem; font-weight: 500; color: var(--navy);
  background: var(--lavender); border: 1px solid var(--lavender-300);
  padding: 6px 12px; border-radius: 999px;
}

.quote { border-left: 3px solid var(--purple); padding: 4px 0 4px 20px; margin: 0 0 24px; font-size: 1.15rem; color: var(--ink); }

/* ---------- Stats ---------- */
.section--navy { background: var(--navy); color: rgba(255, 255, 255, 0.78); }

.stats-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(64px, 8vw, 96px) 0;
  color: rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(700px 380px at 88% 0%, rgba(112, 48, 160, 0.45), transparent 65%),
    radial-gradient(600px 340px at 0% 100%, rgba(112, 48, 160, 0.22), transparent 65%),
    var(--navy);
}
/* Speech-bubble motif from the logo, faint, bottom right */
.stats-band::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 420px; height: 272px; right: -70px; bottom: -60px; opacity: 0.08;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 220' fill='none' stroke='%23ffffff' stroke-width='6'%3E%3Cpath d='M120 10a100 100 0 1 1-62 178L12 206l24-48A100 100 0 0 1 120 10Z'/%3E%3Cpath d='M262 54a70 70 0 1 1-46 122l-2 0a102 102 0 0 0 0-112 70 70 0 0 1 48-10Z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.stats-band__head { max-width: 620px; margin-bottom: clamp(40px, 5vw, 56px); }
.stats-band .eyebrow { color: #fff; }
.stats-band .eyebrow::before { background: var(--purple-300); }
.stats-band h2 { color: #fff; margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.stat { padding: 4px 28px 4px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 22px;
  border-radius: 50% 50% 50% 6px; /* speech-bubble corner */
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--purple-300);
}
.stat__icon svg { width: 22px; height: 22px; }
.stat__num {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat__num small { font-size: 0.45em; font-weight: 600; letter-spacing: 0; margin-left: 6px; color: var(--purple-300); }
.stat__label { display: block; margin-top: 14px; font-size: 1.05rem; line-height: 1.45; color: rgba(255, 255, 255, 0.78); max-width: 240px; }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats-band::before { display: none; }
}
@media (max-width: 420px) {
  .stat { padding: 0 0 0 18px; }
  .stat__label { font-size: 0.98rem; }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50% 50% 50% 5px;
  background: var(--navy); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  margin-bottom: 18px; letter-spacing: 0.04em;
}
.steps li:last-child::before { background: var(--purple); }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Publications ---------- */
.pubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pub {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; transition: border-color .2s ease, box-shadow .2s ease;
}
.pub { border-left: 4px solid var(--navy); }
.pub:hover { border-color: var(--lavender-300); border-left-color: var(--purple); box-shadow: var(--shadow); }
.pub__journal { font-size: 0.9rem; font-weight: 700; color: var(--purple); letter-spacing: 0.02em; margin-bottom: 4px; }
.pub__title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; color: var(--navy); line-height: 1.35; margin: 0; }
.pub .link-arrow { white-space: nowrap; font-size: 0.95rem; }
@media (max-width: 640px) { .pub { grid-template-columns: 1fr; } }

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter {
  min-height: 42px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.work-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.work-card__img { aspect-ratio: 16 / 10; background: var(--lavender); overflow: hidden; }
.work-card__img img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 8px; transition: transform .5s ease; }
.work-card:hover .work-card__img img { transform: scale(1.03); }
.work-card__img--photo img { object-fit: cover; padding: 0; }
.work-card__body { padding: 22px 24px 26px; }
.work-card__tag { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple); }
.work-card h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.work-card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.work-card[hidden] { display: none; }

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--lavender-300); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 40px; color: var(--body);
}
.notice svg { width: 22px; height: 22px; color: var(--purple); flex-shrink: 0; margin-top: 2px; }
.notice p { margin: 0; }

/* ---------- Services detail ---------- */
.service-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; scroll-margin-top: 100px; }
.service-block + .service-block { margin-top: 88px; padding-top: 88px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .service-block { grid-template-columns: 1fr; gap: 28px; } }
.service-block__intro p { color: var(--muted); font-size: 1.08rem; }
.service-block__intro .btn { margin-top: 12px; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.service-list li {
  background: var(--lavender); border-radius: var(--radius); padding: 18px 20px 18px 22px;
  border-left: 3px solid transparent; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.service-list li:hover { border-left-color: var(--purple); background: #fff; box-shadow: var(--shadow-sm); }
.service-list strong { display: block; font-family: var(--font-head); color: var(--navy); font-weight: 600; margin-bottom: 4px; }
.service-list span { font-size: 0.95rem; color: var(--muted); line-height: 1.5; display: block; }
@media (max-width: 560px) { .service-list { grid-template-columns: 1fr; } }

.service-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- About ---------- */
.mvo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .mvo { grid-template-columns: 1fr; } }
.mvo__item { border-radius: var(--bubble-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.mvo__item h3 { margin: 0; padding: 18px 26px; background: var(--navy); color: #fff; font-size: 1.2rem; border-bottom: 4px solid var(--purple); }
.mvo__item p { padding: 22px 26px 26px; margin: 0; font-size: 1.08rem; color: var(--ink); }

.team-card { text-align: left; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--bubble-lg); margin-bottom: 18px; background: var(--lavender); }
.team-card h3 { font-size: 1.12rem; margin-bottom: 4px; }
.team-card p { color: var(--muted); font-size: 0.95rem; margin: 0; line-height: 1.5; }

.bio p { font-size: 1.08rem; }

.regions { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0 0; }
.regions li {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  font-weight: 500; color: var(--navy);
}
.regions svg { width: 16px; height: 16px; color: var(--purple); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy) 50%, var(--purple) 150%);
  border-radius: var(--bubble-lg); padding: clamp(40px, 6vw, 72px);
  color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50% 50% 50% 12px; border: 3px solid rgba(255, 255, 255, 0.12);
}
.cta-band::before {
  content: ""; position: absolute; right: 150px; bottom: -70px; width: 170px; height: 170px;
  border-radius: 50% 50% 12px 50%; border: 3px solid rgba(255, 255, 255, 0.08);
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin: 0; font-size: 1.1rem; max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.form h2 { font-size: 1.6rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.field label .req { color: var(--purple); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  min-height: 48px; padding: 12px 14px;
  border: 1px solid #cfd4e3; border-radius: 10px; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(112, 48, 160, 0.18);
}
.field__hint { font-size: 0.85rem; color: var(--muted); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; }
.field__error { font-size: 0.85rem; color: #c0392b; display: none; }
.field.has-error .field__error { display: block; }
.form__note { font-size: 0.88rem; color: var(--muted); margin: 14px 0 0; }
.form__status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; display: none; }
.form__status.is-success { display: block; background: #e8f6ee; color: #1d6b40; }
.form__status.is-error { display: block; background: #fdecea; color: #a12a1d; }

.contact-card { background: var(--lavender); border-radius: var(--radius-lg); padding: 32px; }
.contact-card h3 { margin-bottom: 20px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-circle { width: 46px; height: 46px; margin: 0; background: #fff; border-width: 2px; }
.contact-list .icon-circle svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.contact-list a, .contact-list span { color: var(--navy); font-weight: 500; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--purple); text-decoration: underline; }

.map { margin-top: 24px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); border-top: 4px solid var(--purple); color: rgba(255, 255, 255, 0.72); padding: 72px 0 28px; margin-top: clamp(64px, 9vw, 112px); }
.site-footer--flush { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr; gap: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.footer-brand img { height: 36px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 360px; font-size: 0.98rem; }
.site-footer h4 { color: #fff; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.98rem; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.88rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .card, .steps li { padding: 26px; }
}
