/* ==========================================================================
   JESVA GROUP — site styles
   ========================================================================== */

:root {
  --navy:        #071a35;
  --navy-2:      #0c2547;
  --navy-3:      #13305a;
  --ink:         #0b1424;
  --text:        #3b4352;
  --muted:       #6b7382;
  --line:        #e4e7ec;
  --line-dark:   rgba(255, 255, 255, 0.14);
  --soft:        #f5f6f8;
  --white:       #ffffff;
  --accent:      #2f6fed;
  --accent-dark: #1d55c4;
  --accent-soft: #e8effd;
  --success:     #157a4f;
  --danger:      #b42318;

  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell:   1200px;
  --gutter:  24px;
  --radius:  14px;
  --radius-sm: 8px;
  --header-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-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: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3, .h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.25; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--white); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow--light { color: #8fb2ff; }

.lead {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
}

.prose p { max-width: 62ch; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s, gap 0.3s var(--ease);
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--accent); box-shadow: 0 10px 24px -10px rgba(47, 111, 237, 0.6); }

.btn--ghost { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn--ghost:hover { border-color: var(--navy); }

.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: #dce7ff; }

.btn--sm { min-height: 42px; padding: 0 20px; font-size: 0.875rem; }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
/* The frosted background lives on a pseudo-element: backdrop-filter on the
   header itself would trap the fixed-position mobile menu inside it. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(7, 26, 53, 0.35);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}
.brand__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand__text span {
  margin-left: 2px;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--accent);
  vertical-align: 2px;
}
.brand--light { color: var(--white); }
.brand--light .brand__mark { background: var(--white); color: var(--navy); }
.brand--light .brand__text span { color: #8fb2ff; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--navy); background: var(--soft); }
.nav__link[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--accent);
}

.nav__item--menu > .nav__link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  margin-left: 2px;
}
.nav__item--menu > .nav__link[aria-current="page"]::after {
  position: static;
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-radius: 0;
  background: none;
}

.nav__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  width: 340px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -20px rgba(7, 26, 53, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.nav__menu::before { /* hover bridge between link and panel */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.nav__item--menu:hover .nav__menu,
.nav__item--menu:focus-within .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__menu a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.nav__menu a span { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.nav__menu a:hover { background: var(--soft); color: var(--accent); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child  { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 20.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { top: 20.5px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 16px var(--gutter) 40px;
    background: var(--white);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-radius: 0;
    font-size: 1.1rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
  }
  .nav__link:hover { background: none; }
  .nav__link[aria-current="page"] { color: var(--accent); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__item--menu > .nav__link::after { display: none; }

  .nav__menu {
    position: static;
    width: auto;
    padding: 0 0 12px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__menu a { padding: 9px 0; }
  .nav__menu a:hover { background: none; }

  .nav__cta { align-self: flex-start; }

  body.nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding-top: clamp(32px, 5vw, 56px); }
.section--soft { background: var(--soft); }

.section--navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}
.section--navy h2, .section--navy h3 { color: var(--white); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section__head h2 { max-width: 20ch; }

.split {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .split__head { position: sticky; top: calc(var(--header-h) + 32px); }
}

.twocol { display: grid; gap: 56px; }
.twocol h2 { margin-bottom: 18px; }
@media (min-width: 900px) {
  .twocol { grid-template-columns: 1fr 1fr; gap: 72px; }
}

.media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }

/* ---------- Hero ---------- */

.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 8vw, 96px); }

.hero__title { max-width: 14ch; }
.hero__title span { color: var(--accent); }

.hero__row {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}
@media (min-width: 900px) {
  .hero__row { grid-template-columns: 1fr auto; align-items: end; gap: 64px; }
}

.hero__lead { max-width: 56ch; margin: 0; font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media {
  margin: clamp(48px, 7vw, 80px) 0 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background: var(--soft);
}
@media (min-width: 900px) {
  .hero__media { aspect-ratio: 21 / 9; }
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.division-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 0;
  counter-reset: none;
}
@media (min-width: 640px) { .division-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .division-strip { grid-template-columns: repeat(6, 1fr); } }

.division-strip a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  transition: color 0.2s;
}
.division-strip a span { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.division-strip a:hover { color: var(--accent); }
@media (min-width: 1024px) { .division-strip a { border-bottom: 0; } }

/* ---------- Division cards ---------- */

.cards {
  display: grid;
  gap: 24px;
}
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 28px 50px -28px rgba(7, 26, 53, 0.35);
}
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.card__num { font-size: 0.78rem; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; }
.card h3 { margin: 10px 0 12px; font-size: 1.3rem; }
.card p { font-size: 0.97rem; color: var(--muted); }
.card__more {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}
.card__more::after { content: " →"; transition: margin 0.3s var(--ease); }
.card:hover .card__more { color: var(--accent); }

/* ---------- Vision & mission ---------- */

.vm { display: grid; gap: 56px; }
@media (min-width: 900px) {
  .vm { grid-template-columns: 1fr 1fr; gap: 0; }
  .vm__item + .vm__item { padding-left: 64px; border-left: 1px solid var(--line-dark); }
  .vm__item:first-child { padding-right: 64px; }
}
.vm__text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* ---------- Values ---------- */

.values {
  display: grid;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px)  { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(3, 1fr); } }

.values__item {
  padding: 32px 32px 36px 0;
  border-bottom: 1px solid var(--line);
}
.values__num { display: block; margin-bottom: 18px; font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.values__item h3 { margin-bottom: 10px; font-size: 1.3rem; }
.values__item p { color: var(--muted); font-size: 0.98rem; max-width: 34ch; }

/* ---------- Philosophy quote & pillars ---------- */

.quote { margin: 0 0 clamp(48px, 6vw, 72px); max-width: 30ch; }
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.quote footer { margin-top: 20px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }

.pillars { display: grid; gap: 24px; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pillar h3 { margin-bottom: 10px; font-size: 1.15rem; }
.pillar p { color: var(--muted); font-size: 0.97rem; }

/* ---------- CTA band ---------- */

.cta { padding: 0 0 clamp(72px, 10vw, 128px); }
.section--soft + .cta,
.section--navy + .cta { padding-top: clamp(72px, 10vw, 128px); }

.cta__inner {
  display: grid;
  gap: 32px;
  padding: clamp(40px, 6vw, 72px);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(47, 111, 237, 0.35), transparent 60%),
    var(--navy);
  color: rgba(255, 255, 255, 0.75);
}
.cta__inner h2 { margin-bottom: 14px; color: var(--white); }
.cta__inner .btn { justify-self: start; }
.cta__inner p { max-width: 52ch; }
@media (min-width: 900px) {
  .cta__inner { grid-template-columns: 1fr auto; align-items: center; gap: 64px; }
}

/* ---------- Page heads ---------- */

.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { max-width: 18ch; }
.page-head__lead {
  max-width: 60ch;
  margin-top: 24px;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
}
.page-head--division h1 { max-width: 20ch; }
.page-head--division .hero__media { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .page-head--division .hero__media { aspect-ratio: 21 / 8; } }
.page-head--center { text-align: center; padding-bottom: clamp(72px, 10vw, 128px); }
.page-head--center h1, .page-head--center .page-head__lead { margin-inline: auto; }
.page-head--center .hero__actions { justify-content: center; margin-top: 32px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 0.88rem;
  color: var(--muted);
}
.crumbs a { color: var(--navy); font-weight: 500; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Businesses overview rows ---------- */

.division-row {
  display: grid;
  gap: 28px;
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}
.division-row:first-child { padding-top: 0; }
.division-row:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .division-row { grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
  .division-row:nth-child(even) .division-row__media { order: 2; }
}

.division-row__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--soft);
}
.division-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.division-row__media:hover img { transform: scale(1.04); }

.division-row__num { font-size: 0.8rem; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; }
.division-row h2 { margin: 10px 0 16px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.division-row h2 a:hover { color: var(--accent); }
.division-row p { max-width: 54ch; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 24px; }
.tags li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text);
  background: var(--white);
}

/* ---------- Division detail ---------- */

.focus { border-top: 1px solid var(--line); }
.focus li {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.focus li span {
  flex: none;
  width: 32px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.links-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .links-grid { grid-template-columns: repeat(2, 1fr); } }

.link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.link-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -26px rgba(7, 26, 53, 0.35);
}
.link-card__num { font-size: 0.78rem; font-weight: 600; color: var(--accent); }
.link-card strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); letter-spacing: -0.015em; }
.link-card span:last-child { color: var(--muted); font-size: 0.97rem; }

.pager { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pager__inner { display: grid; grid-template-columns: 1fr 1fr; }
.pager__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 32px 0;
  transition: color 0.2s;
}
.pager__link span { font-size: 0.82rem; color: var(--muted); }
.pager__link strong { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--ink); }
.pager__link:hover strong { color: var(--accent); }
.pager__link--next { text-align: right; padding-left: 24px; border-left: 1px solid var(--line); }
.pager + .cta { padding-top: clamp(72px, 10vw, 128px); }

/* ---------- Contact ---------- */

.contact { display: grid; gap: 48px; }
@media (min-width: 900px) {
  .contact { grid-template-columns: 4fr 7fr; gap: 72px; }
}

.contact__block { padding: 24px 0; border-top: 1px solid var(--line); }
.contact__block:first-child { padding-top: 0; border-top: 0; }
.contact__block h2 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__block a { font-weight: 600; color: var(--navy); }
.contact__block a:hover { color: var(--accent); }
.contact__block li { position: relative; padding: 4px 0 4px 18px; }
.contact__block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.contact__form {
  padding: clamp(28px, 4vw, 48px);
  background: var(--soft);
  border-radius: calc(var(--radius) + 6px);
}

.form-grid { display: grid; gap: 20px; margin-bottom: 28px; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.field label span { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23071a35' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin: 8px 0 0; font-size: 0.85rem; color: var(--danger); }

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

.form-note { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

.notice { padding: 24px 28px; border-radius: var(--radius); margin-bottom: 24px; }
.notice--success { background: var(--white); border: 1px solid #b9e3cf; }
.notice--success h2 { margin-bottom: 8px; font-size: 1.4rem; color: var(--success); }
.notice--error { background: #fdecea; color: var(--danger); font-weight: 500; }

/* ---------- Footer ---------- */

.footer {
  padding: clamp(64px, 8vw, 96px) 0 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
}

.footer__top {
  display: grid;
  gap: 40px;
  padding-bottom: 56px;
}
@media (min-width: 640px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 48px; } }

.footer__brand p { max-width: 38ch; margin-top: 20px; }
.footer__tagline {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
}

.footer__col h2 {
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.footer__col li { padding: 5px 0; }
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
}
.footer__bottom p { margin: 0; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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