/* ==========================================================================
   ATLASBRASSART LLC — Design system & styles
   Mobile-first. No external dependencies.
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus-jakarta-sans-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy-950: #071230;
  --navy-900: #0b1a3a;
  --navy-800: #12244d;
  --navy-700: #1b3263;
  --blue-600: #2563eb;
  --blue-500: #3b7bf6;
  --blue-400: #6aa0ff;
  --blue-200: #c9dbff;
  --blue-100: #e6efff;
  --blue-50: #f3f7ff;

  --ink: #0e1a38;
  --ink-soft: #33405f;
  --muted: #5d6a88;
  --line: #e3e9f3;
  --line-strong: #d3dcea;
  --surface: #ffffff;
  --surface-2: #f6f8fc;

  --success: #0f7a4f;
  --success-bg: #e8f7f0;
  --danger: #b42318;
  --danger-bg: #fdecea;

  --font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-xs: 0 1px 2px rgba(14, 26, 56, 0.06);
  --shadow-sm: 0 2px 8px rgba(14, 26, 56, 0.06), 0 1px 2px rgba(14, 26, 56, 0.04);
  --shadow: 0 12px 32px -12px rgba(14, 26, 56, 0.18), 0 2px 6px rgba(14, 26, 56, 0.04);
  --shadow-lg: 0 30px 60px -20px rgba(11, 26, 58, 0.28);

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}
p { margin: 0 0 1em; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--blue-200); color: var(--navy-900); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.muted { color: var(--muted); }
.text-gradient {
  background: linear-gradient(100deg, var(--blue-600) 0%, var(--blue-400) 55%, var(--navy-700) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { flex: none; }
.logo__mark-bg { fill: var(--navy-900); }
.logo__mark-a { stroke: #fff; }
.logo__mark-bar { stroke: var(--blue-400); }
.logo__text { display: inline-flex; align-items: baseline; gap: 6px; line-height: 1; }
.logo__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  color: var(--navy-900);
}
.logo__suffix {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--blue-600);
}
.logo--inverse .logo__mark-bg { fill: #fff; }
.logo--inverse .logo__mark-a { stroke: var(--navy-900); }
.logo--inverse .logo__mark-bar { stroke: var(--blue-500); }
.logo--inverse .logo__name { color: #fff; }
.logo--inverse .logo__suffix { color: var(--blue-400); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-900);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  box-shadow: 0 10px 24px -10px rgba(11, 26, 58, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(11, 26, 58, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-900);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
}
.btn--ghost:hover { color: var(--navy-900); border-color: var(--navy-700); transform: translateY(-2px); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-900); }
.btn--light:hover { color: var(--navy-900); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.45); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(14, 26, 56, 0.35); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.site-header__brand { text-decoration: none; border-radius: 10px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 12px var(--gutter) 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(14, 26, 56, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.site-nav__list { list-style: none; display: grid; gap: 4px; }
.site-nav__link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.site-nav__link:hover, .site-nav__link.is-active { background: var(--blue-50); color: var(--blue-600); }
.site-nav__link--cta { margin-top: 6px; text-align: center; background: var(--navy-900); color: #fff; }
.site-nav__link--cta:hover, .site-nav__link--cta.is-active { background: var(--navy-700); color: #fff; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav__list { display: flex; align-items: center; gap: 6px; }
  .site-nav__link { padding: 9px 16px; border-radius: 999px; font-size: 0.95rem; }
  .site-nav__link--cta { margin: 0 0 0 6px; padding: 10px 20px; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 120px); }
.section--flush-top { padding-top: 0; }
.section--tinted { background: linear-gradient(180deg, var(--surface-2), #fff); }
.section__header { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.section__kicker--light { color: var(--blue-400); }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.section__lead { font-size: 1.1rem; color: var(--muted); margin: 0; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-xs);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-700);
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 123, 246, 0.18);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(106, 160, 255, 0.22), transparent 70%),
    radial-gradient(45% 50% at 5% 0%, rgba(201, 219, 255, 0.55), transparent 70%),
    linear-gradient(180deg, #f7f9fe 0%, #ffffff 100%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 50, 99, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 50, 99, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__title {
  font-size: clamp(2.4rem, 6.2vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 22px;
}
.hero__title .text-gradient { display: inline-block; padding-bottom: 0.06em; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 560px; color: var(--muted); margin-bottom: 32px; }
.hero__lead strong { color: var(--navy-900); font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; list-style: none; }
.platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.platform svg { color: var(--blue-600); }

.hero__visual { position: relative; }
.hero__visual::before {
  content: '';
  position: absolute;
  inset: 8% 6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 123, 246, 0.28), transparent);
  filter: blur(30px);
}
.hero__frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  background: #eef3fb;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255, 255, 255, 0.55);
}
.hero__frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero__visual { animation: float 9s ease-in-out infinite; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- About ---------- */
.about { display: grid; gap: 48px; align-items: center; }
.about__intro p { font-size: 1.06rem; }
.about__intro .section__title { margin-bottom: 22px; }
.about__location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--navy-700);
  font-size: 0.92rem !important;
  font-weight: 600;
}
.about__location svg { color: var(--blue-600); }
.pillars { display: grid; gap: 16px; list-style: none; }
.pillar {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.pillar h3 { font-size: 1.12rem; margin: 16px 0 6px; }
.pillar p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.pillar__icon, .card__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  color: var(--blue-600);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}
@media (min-width: 600px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .about { grid-template-columns: 1fr 1.05fr; gap: 72px; }
  .pillar:nth-child(even) { transform: translateY(28px); }
  .pillar:nth-child(even):hover { transform: translateY(24px); }
}

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 20px; }
.card {
  position: relative;
  overflow: hidden;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-700), var(--blue-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card:hover::before { transform: scaleX(1); }
.card__icon { width: 54px; height: 54px; border-radius: 16px; }
.card__title { font-size: 1.25rem; margin: 22px 0 10px; }
.card__text { margin: 0; color: var(--muted); }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- Approach (dark) ---------- */
.section--dark {
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: rgba(255, 255, 255, 0.72);
}
.section--dark__glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(59, 123, 246, 0.28), transparent);
  pointer-events: none;
}
.section--dark .section__title, .section--dark h3 { color: #fff; }
.section--dark .section__lead { color: rgba(255, 255, 255, 0.66); }
.approach { position: relative; display: grid; gap: 18px; list-style: none; counter-reset: none; }
.approach__item {
  padding: 30px 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.approach__item:hover { border-color: rgba(106, 160, 255, 0.45); transform: translateY(-4px); }
.approach__num {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--blue-400);
}
.approach__item h3 { font-size: 1.15rem; margin-bottom: 10px; }
.approach__item p { margin: 0; font-size: 0.96rem; }
@media (min-width: 640px) { .approach { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .approach { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  display: grid;
  gap: 32px;
  overflow: hidden;
  padding: clamp(36px, 6vw, 64px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(106, 160, 255, 0.35), transparent 60%),
    linear-gradient(135deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow-lg);
  color: rgba(255, 255, 255, 0.78);
}
.cta::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.03), 0 0 0 80px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}
.cta__title { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta__text { font-size: 1.1rem; max-width: 480px; margin-bottom: 28px; }
.cta__info {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
}
.cta__info-label {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-400);
}
.address--cta { color: rgba(255, 255, 255, 0.82); line-height: 1.75; }
.address--cta .address__name { color: #fff; }
@media (min-width: 860px) { .cta { grid-template-columns: 1.4fr 1fr; align-items: center; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px);
  background:
    radial-gradient(50% 80% at 90% 0%, rgba(106, 160, 255, 0.18), transparent 70%),
    linear-gradient(180deg, #f6f8fd, #fff);
  margin-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.page-hero__title { font-size: clamp(2.2rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.page-hero__lead { max-width: 640px; font-size: 1.1rem; color: var(--muted); margin: 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 18px; font-size: 0.88rem; }
.breadcrumb li { color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--blue-600); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 28px; align-items: start; }
.contact__form-card {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.contact__heading { font-size: 1.5rem; margin-bottom: 4px; }
.contact__sub { color: var(--muted); font-size: 0.94rem; margin-bottom: 26px; }
.contact__aside { display: grid; gap: 20px; }
@media (min-width: 960px) {
  .contact { grid-template-columns: 1.55fr 1fr; gap: 36px; }
  .contact__aside { position: sticky; top: calc(var(--header-h) + 24px); }
}

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field__label { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field__input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field__input:hover { border-color: #b9c6dc; }
.field__input:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(59, 123, 246, 0.16); }
.field__input--textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.field__error { min-height: 0; margin: 0; font-size: 0.85rem; color: var(--danger); }
.field__error:empty { display: none; }
.field--invalid .field__input { border-color: var(--danger); background: #fff; }
.field--invalid .field__input:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12); }
.field__meta { display: flex; justify-content: space-between; gap: 12px; }
.field__count { margin-left: auto; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__footer { display: grid; gap: 18px; margin-top: 6px; }
.form__consent { margin: 0; font-size: 0.86rem; color: var(--muted); }
@media (min-width: 640px) { .form__footer { grid-template-columns: 1fr auto; align-items: center; } }

.btn--submit { min-width: 180px; position: relative; }
.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn--submit.is-loading { pointer-events: none; opacity: 0.85; }
.btn--submit.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
}
.form-status--success { background: var(--success-bg); color: var(--success); border-color: rgba(15, 122, 79, 0.2); }
.form-status--error { background: var(--danger-bg); color: var(--danger); border-color: rgba(180, 35, 24, 0.18); }

.info-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, var(--surface-2));
  box-shadow: var(--shadow-sm);
}
.info-card__title { font-size: 1.2rem; margin-bottom: 22px; }
.info-card__item { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.info-card__item:first-of-type { border-top: 0; padding-top: 0; }
.info-card__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.info-card__label {
  margin: 0 0 3px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-card__value, .address--info { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.6; }
.address--info .address__name { font-weight: 700; }
.note-card {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  font-size: 0.9rem;
  color: var(--navy-700);
}
.note-card p { margin: 0; }

/* ---------- Legal pages ---------- */
.legal { display: grid; gap: 32px; }
.legal__toc {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  align-self: start;
}
.legal__toc-title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal__toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc a {
  display: flex;
  gap: 10px;
  padding: 6px 10px;
  margin-inline: -10px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.legal__toc a::before { content: counter(toc) '.'; min-width: 1.4em; color: var(--muted); font-variant-numeric: tabular-nums; }
.legal__toc a:hover, .legal__toc a.is-active { background: #fff; color: var(--blue-600); }
.legal__meta {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--navy-700);
  font-size: 0.85rem !important;
  font-weight: 600;
}
.legal__contact {
  margin: 8px 0 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-500);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.legal__contact p { margin: 12px 0 0; }
.address--legal { color: var(--ink); line-height: 1.7; }
@media (min-width: 1024px) {
  .legal { grid-template-columns: 260px 1fr; gap: 64px; }
  .legal__toc { position: sticky; top: calc(var(--header-h) + 24px); }
}

.prose { max-width: 760px; font-size: 1.03rem; line-height: 1.75; }
.prose h2 { font-size: 1.45rem; margin: 2.2em 0 0.7em; padding-top: 0.2em; }
.prose h2:first-of-type { margin-top: 1.4em; }
.prose h3 { font-size: 1.1rem; margin: 1.6em 0 0.5em; }
.prose ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--blue-500); }
.prose strong { color: var(--ink); }

/* ---------- Error page ---------- */
.error-page { padding: clamp(80px, 14vw, 160px) 0; text-align: center; background: radial-gradient(50% 60% at 50% 0%, rgba(106, 160, 255, 0.16), transparent 70%); }
.error-page__inner { display: grid; justify-items: center; }
.error-page__code {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--navy-700), var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 12px; }
.error-page__text { max-width: 460px; color: var(--muted); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(56px, 8vw, 80px) 0 28px;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.94rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 36px; }
.site-footer__desc { max-width: 360px; margin: 18px 0 0; line-height: 1.7; }
.site-footer__heading {
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer__links { list-style: none; display: grid; gap: 10px; }
.address--footer { line-height: 1.75; }
.address--footer .address__name { color: #fff; font-weight: 600; }
.site-footer__email { margin: 12px 0 0; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__note { color: rgba(255, 255, 255, 0.5); }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.6fr 0.8fr 0.8fr 1.1fr; gap: 48px; } }

/* ---------- Reveal on scroll (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (min-width: 960px) {
  .js .pillar.reveal.is-visible:nth-child(even) { transform: translateY(28px); }
  .js .pillar.reveal.is-visible:nth-child(even):hover { transform: translateY(24px); }
}

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