/* ==========================================================================
   Cloudory Technologies — site styles
   Sections: tokens · base · layout · components · sections · utilities
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy-950: #0a1733;
  --navy-900: #0f1f45;
  --navy-800: #142a5c;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-50: #eff5ff;

  --ink: var(--navy-950);
  --text: #3d4a63;
  --muted: #5f6b82;
  --line: #e3e8f0;
  --line-strong: #d3dae6;

  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-tint: #f1f4f9;

  --accent: var(--blue-600);
  --accent-ink: var(--blue-700);
  --danger: #b42318;
  --success: #067647;
  --warn-bg: #fff8e6;
  --warn-line: #f2d48a;
  --warn-ink: #7a4b00;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(10, 23, 51, 0.05);
  --shadow: 0 10px 30px -14px rgba(10, 23, 51, 0.18);

  --container: 1600px;
  --gutter: clamp(1rem, 5vw, 5rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --header-h: 72px;
  --col-gap: clamp(2rem, 5vw, 4.5rem);
  --cols: minmax(0, 5fr) minmax(0, 7fr);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

ul[role="list"],
.list-reset {
  list-style: none;
  padding: 0;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--navy-950);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--soft {
  background: var(--bg-soft);
}

.section--bordered {
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  gap: 2rem var(--col-gap);
}

/* Every two-column block (split, section-head--row, contact, footer) shares one
   grid, so right-hand columns start on the same vertical line site-wide. */
@media (min-width: 900px) {
  .split {
    grid-template-columns: var(--cols);
    align-items: start;
  }
}

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: currentColor;
}

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

.section-lead {
  margin-top: 1rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--row {
  display: grid;
  gap: 1rem var(--col-gap);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 900px) {
  .section-head--row {
    grid-template-columns: var(--cols);
    align-items: end;
  }
  .section-head--row .section-lead {
    margin-top: 0;
  }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn .icon {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon--arrow,
.text-link:hover .icon--arrow {
  transform: translate(2px, -2px);
}

.btn--primary {
  background: var(--navy-900);
  color: #fff;
}

.btn--primary:hover {
  background: var(--navy-800);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn--outline {
  background: #fff;
  color: var(--navy-900);
  border-color: var(--navy-900);
}

.btn--outline:hover {
  background: var(--navy-900);
  color: #fff;
}

.btn--sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(37, 99, 235, 0.35);
  transition: text-decoration-color 0.2s var(--ease);
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.text-link .icon {
  width: 0.95em;
  height: 0.95em;
  stroke-width: 2;
  transition: transform 0.2s var(--ease);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand img {
  height: 40px;
  width: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover::after,
.nav-link[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="true"] {
  color: var(--accent-ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -0.5rem;
  border: 0;
  background: none;
  color: var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 24px;
  height: 24px;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-cta-mobile {
  display: none;
}

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 0.75rem var(--gutter) 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.2s var(--ease),
      transform 0.2s var(--ease),
      visibility 0s linear 0.2s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition:
      opacity 0.2s var(--ease),
      transform 0.2s var(--ease);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta-mobile {
    display: flex;
    margin-top: 1.25rem;
  }

  .nav-cta-mobile .btn {
    width: 100%;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #f4f6f9;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media picture {
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.75) 32%,
    rgba(255, 255, 255, 0) 58%
  );
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 62vh, 600px);
  padding-block: 4rem;
}

.hero-copy {
  max-width: 40rem;
}

.hero-title {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero-text {
  margin-top: 1.25rem;
  max-width: 28rem;
  color: var(--text);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (max-width: 760px) {
  .hero-media {
    position: relative;
    order: 2;
    aspect-ratio: 16 / 10;
  }

  .hero-media img {
    object-position: 85% center;
  }

  .hero-media::after {
    background: linear-gradient(180deg, #f4f6f9 0%, rgba(244, 246, 249, 0) 30%);
  }

  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-inner {
    min-height: 0;
    padding-block: 3rem 1rem;
  }
}

/* ---------- About ---------- */
.about-body p + p {
  margin-top: 1rem;
}

.about-body {
  font-size: 1.05rem;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 0.6rem 1rem;
  border-left: 2px solid var(--accent);
  background: var(--blue-50);
  color: var(--navy-900);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.chip {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  background: #fff;
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  border-top: 1px solid var(--line);
}

.service {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 0.25rem;
  border-bottom: 1px solid var(--line);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--accent);
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.service-icon .icon {
  width: 22px;
  height: 22px;
}

.service:hover .service-icon {
  background: var(--accent);
  color: #fff;
}

.service h3 {
  font-size: 1.02rem;
  margin-bottom: 0.3rem;
}

.service p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
}

/* ---------- Products ---------- */
/* Three equal cards: photo on top, then logo, text and link pinned to the bottom */
.product-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.product:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 2.5vw, 2rem);
}

.product-body .text-link {
  margin-top: auto;
}

/* Tablet: single column, photo beside the text */
@media (min-width: 600px) and (max-width: 899px) {
  .product {
    flex-direction: row;
  }
  .product .product-media {
    display: block;
    flex: 0 0 42%;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .product .product-media img {
    height: 100%;
    aspect-ratio: auto;
  }
}

.product-logo {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 1.5rem;
}

.product-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.product-mark .icon {
  width: 22px;
  height: 22px;
}

.product-category {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product h3 {
  font-size: 1.3rem;
}

.product-desc {
  margin: 0.5rem 0 1.25rem;
  color: var(--muted);
}

/* Product photo */
.product-media {
  order: -1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.product-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.product:hover .product-media img {
  transform: scale(1.03);
}

.preview-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

/* ---------- Approach ---------- */
.steps {
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.step {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
  position: relative;
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.step:hover::before {
  width: 100%;
}

.step-num {
  display: block;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Clients & testimonials ---------- */

/* Client strip: two identical groups slide left by one group width, then loop */
.marquee {
  --marquee-gap: 0px;
  display: flex;
  gap: var(--marquee-gap);
  overflow: hidden;
  padding-block: 0.25rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.marquee-group {
  display: flex;
  flex: none;
  gap: var(--marquee-gap);
  min-width: 100%;
  justify-content: space-around;
  padding: 0;
  animation: marquee-left 32s linear infinite;
}

.marquee:hover .marquee-group,
.marquee:focus-within .marquee-group {
  animation-play-state: paused;
}

@keyframes marquee-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - var(--marquee-gap)));
  }
}

.client-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: none;
  margin-inline: 0.5rem;
  min-height: 84px;
  padding: 1rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.client-tile:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.client-tile .icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.client-tile strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.client-tile small {
  color: var(--muted);
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee-group {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    min-width: 0;
    animation: none;
  }
  .marquee-group .client-tile {
    margin-inline: 0;
  }
  .marquee-group[aria-hidden="true"] {
    display: none;
  }
  .client-tile strong {
    white-space: normal;
  }
}

.dev-note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: 0.7rem 0.9rem;
  border: 1px dashed var(--warn-line);
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 0.82rem;
  line-height: 1.5;
}

.dev-note .icon {
  margin-top: 0.1em;
  width: 1.05em;
  height: 1.05em;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.logo-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 96px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  text-align: center;
}

.logo-tile img {
  max-height: 44px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.75;
  transition:
    filter 0.25s var(--ease),
    opacity 0.25s var(--ease);
}

.logo-tile:hover img {
  filter: none;
  opacity: 1;
}

.placeholder {
  border-style: dashed;
  border-color: var(--line-strong);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.78rem;
}

.placeholder .icon {
  width: 22px;
  height: 22px;
  opacity: 0.6;
}

.quote-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.quote {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.quote-mark {
  width: 26px;
  height: 26px;
  color: var(--blue-500);
  margin-bottom: 1rem;
  fill: currentColor;
  stroke: none;
}

.quote blockquote {
  flex: 1;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.quote figcaption {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.quote-name {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.quote-role {
  color: var(--muted);
}

.quote.placeholder blockquote,
.quote.placeholder .quote-name {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2.5rem var(--col-gap);
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: var(--cols);
    align-items: start;
  }
}

.contact-list {
  display: grid;
  gap: 0.25rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
  border-bottom: 0;
}

.contact-item > .icon {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  color: var(--accent);
}

.contact-item dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-item dd {
  margin: 0.1rem 0 0;
  color: var(--ink);
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.quick-actions .btn .icon {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 1.8;
}

.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  gap: 1.1rem 1.25rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .field--full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.field .req {
  color: var(--danger);
}

.field .opt {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6b82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 18px;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #b9c3d3;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.15);
}

.field-error {
  display: block;
  min-height: 0;
  margin-top: 0.35rem;
  color: var(--danger);
  font-size: 0.8rem;
}

.field-error:empty {
  display: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-hint {
  color: var(--muted);
  font-size: 0.8rem;
}

.form-status {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.55;
}

.form-status:empty {
  display: none;
}

.form-status[data-tone="success"] {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: var(--success);
}

.form-status[data-tone="error"] {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: var(--danger);
}

.form-status[data-tone="setup"] {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-ink);
}

.form-status a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: var(--cols);
    gap: 2.5rem var(--col-gap);
  }
}

.footer-cols {
  display: grid;
  gap: 2.5rem 2rem;
}

@media (min-width: 640px) {
  .footer-cols {
    grid-template-columns: 0.8fr 1.2fr 1.4fr;
  }
}

.footer-brand img {
  height: 34px;
  width: auto;
  margin-bottom: 1.1rem;
}

.footer-brand p {
  max-width: 22rem;
  color: var(--muted);
}

.footer-tagline {
  margin-top: 0.75rem;
  color: var(--navy-900) !important;
  font-weight: 600;
}

.footer-col h2 {
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a,
.footer-contact a {
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--accent-ink);
}

.footer-contact {
  display: grid;
  gap: 0.75rem;
  font-style: normal;
}

.footer-contact li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.footer-contact .icon {
  width: 17px;
  height: 17px;
  margin-top: 0.2rem;
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---------- Reveal animation ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Placeholder content visibility ----------
   Set <html data-env="production"> to hide every block marked
   data-placeholder so unreplaced placeholders are never published. */
[data-env="production"] [data-placeholder] {
  display: none !important;
}

/* ---------- 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;
  }
}
