/* Tamiro LLC — site styles
   Fonts: Manrope & Instrument Serif, self-hosted, SIL Open Font License 1.1 */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy-950: #050f22;
  --navy-900: #0a1a35;
  --navy-800: #0f2548;
  --navy-700: #17335f;
  --navy-600: #24477c;
  --blue-400: #6f9be8;
  --blue-300: #9dbcf2;
  --ice-100: #eaf0fa;
  --ice-50: #f5f8fd;
  --white: #ffffff;
  --ink: #0c1730;
  --ink-soft: #3d4a66;
  --ink-mute: #66728c;
  --line: #dbe3f0;
  --line-dark: rgba(255, 255, 255, 0.12);
  --danger: #b42318;
  --success: #1f7a4d;

  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 53, 0.06), 0 2px 8px rgba(10, 26, 53, 0.05);
  --shadow: 0 10px 30px -12px rgba(10, 26, 53, 0.25);
  --shadow-lg: 0 30px 60px -25px rgba(5, 15, 34, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--white); color: var(--navy-900); padding: 0.7rem 1rem;
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy-600);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--blue-300); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy-900); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font: inherit; font-weight: 700; font-size: 0.98rem;
  text-decoration: none; cursor: pointer; line-height: 1;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--light { --bg: var(--white); --fg: var(--navy-900); }
.btn--ghost { --bg: transparent; --fg: var(--white); border-color: rgba(255,255,255,0.35); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn--outline { --bg: transparent; --fg: var(--navy-900); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy-900); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; text-decoration: none;
  color: var(--navy-700); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.text-link:hover { background-size: 100% 1px; }
.text-link svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1.5rem; }
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 20, 42, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--white); text-decoration: none; font-weight: 800; letter-spacing: -0.01em; font-size: 1.15rem; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand small { font-weight: 500; opacity: 0.65; font-size: 0.8em; margin-left: 0.1rem; }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav__list { display: flex; list-style: none; gap: 0.2rem; }
.nav__link {
  display: block; padding: 0.55rem 0.9rem; border-radius: 999px; color: rgba(255,255,255,0.82);
  text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s, background-color 0.2s;
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav__link[aria-current="page"] { color: var(--white); background: rgba(255,255,255,0.1); }
.nav .btn { margin-left: 0.6rem; padding: 0.75rem 1.2rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-dark);
  background: transparent; color: var(--white); cursor: pointer; position: relative;
}
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0.5rem;
    padding: 1rem var(--gutter) 1.75rem; background: rgba(7, 20, 42, 0.97);
    border-top: 1px solid var(--line-dark);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s, visibility 0s linear 0.35s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .nav__list { flex-direction: column; }
  .nav__link { padding: 0.9rem 1rem; font-size: 1.05rem; border-radius: 12px; }
  .nav .btn { margin: 0.5rem 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(111,155,232,0.28), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(36,71,124,0.6), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
  padding: clamp(8.5rem, 16vw, 11rem) 0 clamp(4.5rem, 9vw, 7rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 30%, transparent 75%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.1rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.02; margin: 1.1rem 0 1.4rem; }
.hero h1 .line { display: block; }
.hero h1 .serif { font-size: 1.08em; color: var(--blue-300); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255,255,255,0.78); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.6rem; list-style: none; }
.hero__chips li {
  font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.75);
  padding: 0.45rem 0.85rem; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(255,255,255,0.03);
}

.hero-visual { position: relative; aspect-ratio: 1 / 1.05; max-width: 470px; justify-self: end; width: 100%; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.hv-card { fill: rgba(255,255,255,0.05); stroke: rgba(255,255,255,0.14); }
.hv-text { fill: rgba(255,255,255,0.62); font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; }
.hv-funnel { fill: url(#hvFunnel); }
.hv-flow { stroke: var(--blue-300); stroke-width: 1.5; fill: none; stroke-dasharray: 4 7; animation: dash 3.2s linear infinite; opacity: 0.8; }
.hv-dot { fill: var(--white); animation: drop 3.4s var(--ease) infinite; opacity: 0; }
.hv-dot:nth-of-type(2) { animation-delay: 0.7s; }
.hv-dot:nth-of-type(3) { animation-delay: 1.4s; }
.hv-dot:nth-of-type(4) { animation-delay: 2.1s; }
.hv-dot:nth-of-type(5) { animation-delay: 2.8s; }
.hv-bar { fill: rgba(157,188,242,0.85); transform-origin: bottom; transform-box: fill-box; animation: grow 1.4s var(--ease) both; }
.hv-bar:nth-of-type(2) { animation-delay: 0.15s; }
.hv-bar:nth-of-type(3) { animation-delay: 0.3s; }
.hv-bar:nth-of-type(4) { animation-delay: 0.45s; }
.hv-bar:nth-of-type(5) { animation-delay: 0.6s; }
.hv-float { animation: float 7s ease-in-out infinite; }
.hv-float--b { animation-delay: -3.5s; }

@keyframes dash { to { stroke-dashoffset: -44; } }
@keyframes drop {
  0% { opacity: 0; transform: translate(0, -30px); }
  15% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(0, 150px); }
}
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* page hero (inner pages) */
.page-hero { padding: clamp(8rem, 14vw, 10rem) 0 clamp(3.5rem, 7vw, 5rem); }
.page-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); margin-top: 1rem; max-width: 15ch; }
.page-hero .hero__lead { max-width: 40rem; }
.page-hero--legal h1 { max-width: none; }

/* load-in */
.load-in { opacity: 0; transform: translateY(18px); animation: loadIn 0.9s var(--ease) forwards; }
.load-in.d1 { animation-delay: 0.08s; }
.load-in.d2 { animation-delay: 0.18s; }
.load-in.d3 { animation-delay: 0.28s; }
.load-in.d4 { animation-delay: 0.38s; }
.load-in.d5 { animation-delay: 0.5s; }
@keyframes loadIn { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section--tint { background: var(--ice-50); }
.section--dark { background: var(--navy-900); color: var(--white); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 0.9rem 0 0; }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 34rem; }
.section--dark .section-head p { color: rgba(255,255,255,0.72); }
.section-head--stack { grid-template-columns: 1fr; max-width: 46rem; }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem; }
.service-card {
  grid-column: span 3; position: relative; display: flex; flex-direction: column;
  padding: 1.75rem 1.6rem 1.6rem; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); overflow: hidden; isolation: isolate; text-decoration: none; color: inherit;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}
.service-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(400px 200px at 100% 0%, rgba(111,155,232,0.16), transparent 70%);
  transition: opacity 0.5s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c5d3ea; }
.service-card:hover::after { opacity: 1; }
.service-card--wide { grid-column: span 6; }
.service-card--feature { background: var(--navy-900); color: var(--white); border-color: var(--navy-800); }
.service-card--feature p { color: rgba(255,255,255,0.72) !important; }
.service-card--feature .service-card__icon { background: rgba(255,255,255,0.08); color: var(--blue-300); }
.service-card--feature .service-card__num { color: rgba(255,255,255,0.4); }
.service-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.2rem; }
.service-card__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ice-100); color: var(--navy-700);
  transition: transform 0.5s var(--ease);
}
.service-card:hover .service-card__icon { transform: rotate(-6deg) scale(1.06); }
.service-card__icon svg { width: 24px; height: 24px; }
.service-card__num { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-mute); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

@media (max-width: 1060px) {
  .service-card { grid-column: span 6; }
  .service-card--wide { grid-column: span 12; }
}
@media (max-width: 620px) {
  .service-card, .service-card--wide { grid-column: span 12; }
}

/* ---------- Approach / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line-dark); }
.step { padding: 2rem 1.6rem 0 0; position: relative; counter-increment: step; }
.step::before {
  content: "0" counter(step); display: block; font-family: var(--font-serif); font-style: italic;
  font-size: 3.2rem; line-height: 1; color: var(--blue-300); margin-bottom: 1.2rem;
}
.step::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-300); }
.step h3 { font-size: 1.2rem; }
.step p { color: rgba(255,255,255,0.7); font-size: 0.97rem; margin: 0; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-dark); padding-left: 1.5rem; }
  .step { padding: 0; }
  .step::after { left: calc(-1.5rem - 4px); top: 0.4rem; }
}

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-top: 0.9rem; }
.split--center { align-items: center; }
.prose-lg { font-size: 1.12rem; color: var(--ink-soft); }

.checklist { list-style: none; display: grid; gap: 1rem; margin: 1.5rem 0 0; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 0.9rem; align-items: start; }
.checklist svg { width: 28px; height: 28px; color: var(--navy-600); }
.checklist strong { display: block; color: var(--ink); }
.checklist span { color: var(--ink-soft); font-size: 0.97rem; }

.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.principle { padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.principle:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.principle h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 0.7rem; }
.principle h3 svg { width: 22px; height: 22px; color: var(--navy-600); flex: none; }
.principle p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 620px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Service detail (services page) ---------- */
.service-detail { display: grid; grid-template-columns: 0.42fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); padding: clamp(2.5rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.service-detail:last-child { border-bottom: 1px solid var(--line); }
.service-detail__label { display: flex; flex-direction: column; gap: 1rem; }
.service-detail__label .service-card__icon { width: 56px; height: 56px; }
.service-detail__num { font-family: var(--font-serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--navy-600); }
.service-detail h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.8rem; }
.service-detail p { color: var(--ink-soft); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin-top: 1.2rem; }
.tag-list li { font-size: 0.86rem; font-weight: 600; padding: 0.45rem 0.85rem; border-radius: 999px; background: var(--ice-100); color: var(--navy-700); }

.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin-top: 2.2rem; }
.toc a { display: inline-block; font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.8); text-decoration: none; padding: 0.5rem 0.9rem; border-radius: 999px; border: 1px solid var(--line-dark); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.toc a:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }

@media (max-width: 760px) {
  .service-detail { grid-template-columns: 1fr; }
  .service-detail__label { flex-direction: row; align-items: center; }
}

/* ---------- Notice ---------- */
.notice {
  display: grid; grid-template-columns: 24px 1fr; gap: 0.9rem; padding: 1.2rem 1.4rem; border-radius: var(--radius-sm);
  background: var(--ice-50); border: 1px solid var(--line); color: var(--ink-soft); font-size: 0.93rem;
}
.notice svg { width: 22px; height: 22px; color: var(--navy-600); margin-top: 2px; }
.notice p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(3rem, 8vw, 6rem) 0; }
.cta-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); color: var(--white);
  padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.3fr auto; gap: 2rem; align-items: center;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(111,155,232,0.35), transparent 60%),
    linear-gradient(135deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow-lg);
}
.cta-card::before {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 0 0 40px rgba(255,255,255,0.025), 0 0 0 80px rgba(255,255,255,0.02);
}
.cta-card h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 0.6rem; position: relative; }
.cta-card p { color: rgba(255,255,255,0.75); margin: 0; position: relative; max-width: 36rem; }
.cta-card .btn { position: relative; }
@media (max-width: 760px) { .cta-card { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-info { display: grid; gap: 1rem; }
.info-card { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.info-card h2 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.7rem; font-weight: 700; }
.info-card p, .info-card address { margin: 0; font-style: normal; color: var(--ink); font-weight: 600; }
.info-card a { color: var(--navy-700); word-break: break-word; }
.info-card .note { margin-top: 0.7rem; font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); }

.form-card { padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.field .optional { font-weight: 500; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid #cdd7e7; background: var(--ice-50);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2324477c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aebdd6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); background: var(--white); box-shadow: 0 0 0 4px rgba(111,155,232,0.22); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.85rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.field-hint { font-size: 0.82rem; color: var(--ink-mute); }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 0.8rem; align-items: start; font-size: 0.92rem; color: var(--ink-soft); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy-800); }
.consent a { color: var(--navy-700); font-weight: 600; }

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

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.4rem; }
.form-actions small { color: var(--ink-mute); font-size: 0.85rem; }

.form-status { margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: 12px; font-weight: 600; font-size: 0.95rem; }
.form-status[hidden] { display: none; }
.form-status--error { background: #fdecea; color: var(--danger); border: 1px solid #f6c9c4; }

.form-success { text-align: left; padding: 1rem 0; }
.form-success[hidden] { display: none; }
.form-success__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #e5f4ec; color: var(--success); margin-bottom: 1.2rem; animation: pop 0.6s var(--ease); }
.form-success__icon svg { width: 28px; height: 28px; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); border-top-color: var(--white); animation: spin 0.8s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Legal ---------- */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.legal-nav { position: sticky; top: 100px; font-size: 0.9rem; }
.legal-nav p { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.8rem; }
.legal-nav ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.15rem; border-left: 1px solid var(--line); }
.legal-nav a { display: block; padding: 0.35rem 0 0.35rem 1rem; color: var(--ink-soft); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.legal-nav a:hover { color: var(--navy-900); border-left-color: var(--navy-600); }
.legal-body { max-width: 46rem; }
.legal-body h2 { font-size: 1.45rem; margin: 2.6rem 0 0.8rem; scroll-margin-top: 100px; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { font-size: 1.1rem; margin: 1.6rem 0 0.5rem; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body ul { padding-left: 1.25rem; margin: 0 0 1.1em; display: grid; gap: 0.4rem; }
.legal-body a { color: var(--navy-700); font-weight: 600; }
.legal-body address { font-style: normal; color: var(--ink); font-weight: 600; margin-bottom: 1.1em; }
.legal-meta { display: inline-flex; gap: 0.5rem; margin-top: 1.4rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.72); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-brand p { margin-top: 1.1rem; max-width: 22rem; }
.site-footer h2 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; font-weight: 700; }
.footer-links { list-style: none; display: grid; gap: 0.55rem; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,0.72); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact address { font-style: normal; }
.footer-contact .label { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 0.9rem; }
.footer-contact .label:first-child { margin-top: 0; }
.footer-contact a { word-break: break-word; }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-bottom p { margin: 0; max-width: 48rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.07s; }
.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.21s; }
.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.28s; }
.js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.35s; }
.js .reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.42s; }
.js .reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.49s; }

/* ---------- Responsive hero ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: start; max-width: 380px; }
  .section-head, .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-visual { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- 404 / simple ---------- */
.simple-page { min-height: 80vh; display: flex; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .load-in, .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
  .hv-dot { opacity: 0.8; }
}
.hv-card--solid { fill: #12284d; stroke: rgba(255,255,255,0.18); }
