/* ==========================================================================
   Fulcrum Business Associates — Design System
   Palette: Sapphire blue, ink black, paper white
   ========================================================================== */

:root {
  /* Brand */
  --blue-900: #0a1e3f;
  --blue-800: #102a56;
  --blue-700: #16386f;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #93b4f8;
  --blue-100: #e4edfc;

  /* Light theme (default) */
  --bg: #fdfdfb;
  --bg-alt: #f4f6f9;
  --bg-elevated: #ffffff;
  --ink: #0b0e14;
  --ink-soft: #3c4453;
  --ink-muted: #6b7280;
  --line: rgba(11, 14, 20, 0.12);
  --line-strong: rgba(11, 14, 20, 0.22);
  --accent: var(--blue-600);
  --accent-strong: var(--blue-800);
  --accent-contrast: #ffffff;
  --hero-overlay: linear-gradient(105deg, rgba(7, 16, 34, 0.88) 0%, rgba(10, 30, 63, 0.72) 45%, rgba(10, 30, 63, 0.28) 100%);
  --card-shadow: 0 1px 2px rgba(10, 30, 63, 0.04), 0 12px 32px -16px rgba(10, 30, 63, 0.18);
  --card-shadow-hover: 0 2px 4px rgba(10, 30, 63, 0.06), 0 24px 48px -20px rgba(10, 30, 63, 0.28);
  --header-bg: rgba(253, 253, 251, 0.82);

  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #07090e;
  --bg-alt: #0c111b;
  --bg-elevated: #111827;
  --ink: #f3f5f8;
  --ink-soft: #c3cad6;
  --ink-muted: #8a93a3;
  --line: rgba(243, 245, 248, 0.14);
  --line-strong: rgba(243, 245, 248, 0.28);
  --accent: var(--blue-400);
  --accent-strong: var(--blue-300);
  --accent-contrast: #07090e;
  --hero-overlay: linear-gradient(105deg, rgba(4, 8, 16, 0.92) 0%, rgba(6, 14, 30, 0.8) 45%, rgba(6, 14, 30, 0.45) 100%);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  --card-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.5), 0 24px 48px -20px rgba(0, 0, 0, 0.8);
  --header-bg: rgba(7, 9, 14, 0.82);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

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

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

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
}

/* Typography */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--accent);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  background: var(--accent-strong);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .brand-mark {
  background: var(--blue-600);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav a {
  position: relative;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.4rem 0;
  transition: color 0.25s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme toggle */

.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
}

[data-theme="dark"] .icon-moon { display: none; }
:root:not([data-theme="dark"]) .icon-sun { display: none; }

/* Mobile nav */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.4rem;
  height: 1.5px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

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

  .nav {
    position: fixed;
    top: 4.75rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.5rem;
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
  }

  .nav.open { transform: translateY(0); }

  .nav a {
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }

  .nav a::after { display: none; }

  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 2.1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
}

[data-theme="dark"] .btn-primary {
  background: var(--blue-500);
}

.btn-primary:hover {
  background: var(--blue-600);
}

.btn-outline {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-light {
  background: #fff;
  color: var(--blue-900);
}

.btn-light:hover {
  background: var(--blue-100);
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost-light:hover {
  border-color: #fff;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 92vh;
  padding: 9rem 0 5.5rem;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-overlay);
}

.hero .eyebrow {
  color: var(--blue-300);
}

.hero .eyebrow::before {
  background: var(--blue-300);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500;
  max-width: 17ch;
  margin: 1.4rem 0 1.6rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--blue-300);
}

.hero p {
  font-size: 1.12rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 54ch;
  margin-bottom: 2.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero--inner {
  min-height: 62vh;
  padding-top: 11rem;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  right: 3rem;
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  writing-mode: vertical-rl;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 3.4rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  animation: drip 2.4s var(--ease) infinite;
}

@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 860px) {
  .hero-scroll { display: none; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 6.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 4rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 1.2rem 0 1.1rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

/* Stats band */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--line);
}

.stat {
  padding: 2.6rem 2rem 2.6rem 0;
  border-bottom: 1px solid var(--line);
}

.stat + .stat {
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 500;
  color: var(--accent-strong);
  line-height: 1.1;
}

[data-theme="dark"] .stat strong {
  color: var(--blue-300);
}

.stat span {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 720px) {
  .stat + .stat { padding-left: 0; border-left: none; }
  .stat { padding-right: 0; }
}

/* Split layout (about) */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.split.reverse > .split-media { order: 2; }

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.split-media::after {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 1px solid var(--accent);
  z-index: -1;
  opacity: 0.45;
}

.split-body h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin: 1.2rem 0 1.4rem;
}

.split-body p {
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.split-body .btn { margin-top: 1.2rem; }

@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; gap: 3.5rem; }
  .split.reverse > .split-media { order: 0; }
}

/* Principles / values list */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
}

.principle {
  padding: 2.6rem 2.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: background 0.3s;
}

.principle:hover {
  background: var(--bg-alt);
}

.principle .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--accent);
}

.principle h3 {
  font-size: 1.35rem;
  margin: 0.9rem 0 0.7rem;
}

.principle p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Service cards
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.service-card figure {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.service-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover figure img {
  transform: scale(1.05);
}

.service-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem 2rem 2.2rem;
}

.service-card .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.service-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.service-card .text-link { margin-top: auto; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.text-link .arrow { transition: transform 0.3s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }

/* Service detail rows (services page) */

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}

.service-detail:last-child { border-bottom: none; }

.service-detail:nth-child(even) .service-detail-media { order: 2; }

.service-detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-detail .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
}

.service-detail h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin: 0.8rem 0 1.2rem;
}

.service-detail p {
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.service-detail ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.service-detail li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.service-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.85rem;
  height: 1px;
  background: var(--accent);
}

@media (max-width: 920px) {
  .service-detail { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 0; }
  .service-detail:nth-child(even) .service-detail-media { order: 0; }
}

/* Process strip */

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2.5rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-strong);
}

.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -0.85rem;
  left: 0;
  background: var(--bg);
  padding-right: 0.9rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
}

.section-alt .process-step::before {
  background: var(--bg-alt);
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Clients
   ========================================================================== */

.client-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}

.client-feature:last-child { border-bottom: none; }

.client-feature:nth-child(even) .client-media { order: 2; }

.client-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.client-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.client-feature h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin: 0.9rem 0 1.2rem;
}

.client-feature p {
  color: var(--ink-soft);
  margin-bottom: 1.3rem;
}

.client-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.client-meta span {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  padding: 0.4rem 0.9rem;
}

@media (max-width: 920px) {
  .client-feature { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 0; }
  .client-feature:nth-child(even) .client-media { order: 0; }
}

/* Logo strip */

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 4.5rem;
  padding: 3rem 0;
}

.logo-strip span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* Testimonial */

.testimonial {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
}

.testimonial blockquote::before {
  content: "\201C";
  display: block;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.testimonial cite {
  display: block;
  margin-top: 1.8rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  padding: 7rem 0;
  color: #fff;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.cta-band-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 16, 34, 0.86);
}

.cta-band h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  max-width: 22ch;
  margin: 1.3rem auto 1.4rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 52ch;
  margin: 0 auto 2.6rem;
}

.cta-band .eyebrow {
  color: var(--blue-300);
  justify-content: center;
}

.cta-band .eyebrow::before {
  background: var(--blue-300);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 920px) {
  .contact-layout { grid-template-columns: 1fr; gap: 3.5rem; }
}

.contact-info h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin: 1.2rem 0 1.3rem;
}

.contact-info > p {
  color: var(--ink-soft);
  margin-bottom: 2.4rem;
}

.contact-channels {
  display: grid;
  gap: 1.6rem;
}

.contact-channel {
  padding-left: 1.4rem;
  border-left: 2px solid var(--accent);
}

.contact-channel small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}

.contact-channel a,
.contact-channel span {
  font-size: 1.02rem;
  font-weight: 500;
}

.contact-channel a:hover {
  color: var(--accent);
}

/* Form */

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  padding: 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.form-field.full { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 2rem 1.5rem; }
}

.form-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.55rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 0.4rem;
}

.form-foot small {
  font-size: 0.78rem;
  color: var(--ink-muted);
  max-width: 32ch;
}

.form-status {
  grid-column: 1 / -1;
  display: none;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

[data-theme="dark"] .form-status { color: var(--blue-300); }

.form-status.visible { display: block; }
.form-status.error {
  border-color: #b91c1c;
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.07);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #07090e;
  color: #aab2c0;
  padding: 5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-mark { background: var(--blue-600); }

.footer-brand p {
  margin-top: 1.4rem;
  font-size: 0.92rem;
  font-weight: 300;
  max-width: 36ch;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.4rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.footer-col a {
  font-size: 0.92rem;
  transition: color 0.25s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2.4rem;
  font-size: 0.8rem;
  color: #6b7280;
}

/* ==========================================================================
   Reveal animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   V2 — Premium interaction layer
   Micro-interactions ported from the Flutter animation playground:
   press-down scale, finger-follow highlight, staggered fade-ins, selection
   crossfade, success toast, shimmer loading, image fade-in, input glow.
   ========================================================================== */

/* Press-down scale — buttons */

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.65;
  cursor: default;
}

/* Press-down scale + dim — cards and rows */

.pressable {
  -webkit-tap-highlight-color: transparent;
}

.pressable.is-pressed {
  transform: scale(0.98) !important;
  opacity: 0.94;
}

/* Liquid / finger-follow highlight on primary CTAs.
   The highlight is painted as a background layer so text stays crisp. */

.btn-liquid {
  --mx: 50%;
  --my: 130%;
  background-image: radial-gradient(
    130px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.28),
    transparent 65%
  );
}

/* Hero content: staggered fade-in on first paint */

.stagger {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.stagger.show {
  opacity: 1;
  transform: none;
}

/* Image fade-in once loaded */

.fade-img {
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.fade-img.loaded {
  opacity: 1;
  transform: none;
}

/* Selection crossfade chips (contact form service picker) */

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.05rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.18s var(--ease);
}

.chip:hover {
  border-color: var(--accent);
}

.chip:active {
  transform: scale(0.96);
}

.chip .ring {
  position: relative;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink-muted);
  display: grid;
  place-items: center;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}

.chip .ring::after {
  content: "\2713";
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--accent-contrast);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.chip.selected {
  color: var(--ink);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.chip.selected .ring {
  border-color: transparent;
  background: var(--accent);
}

.chip.selected .ring::after {
  opacity: 1;
  transform: scale(1);
}

/* Success toast — slides down from under the header, then fades away */

.toast {
  position: fixed;
  top: 5.6rem;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -18px);
  opacity: 0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--bg);
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Shimmer text — used on the submit button while sending */

.shimmer-text {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.45) 0%,
    #ffffff 45%,
    rgba(255, 255, 255, 0.45) 90%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-slide 1.6s linear infinite;
}

@keyframes shimmer-slide {
  to { background-position: -220% 0; }
}

/* Input focus glow — softer, premium version of the focus ring */

.form-field input:focus,
.form-field textarea:focus {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent),
    0 0 26px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* Auto-growing textarea */

.auto-grow {
  resize: none;
  overflow: hidden;
}

/* Honeypot — invisible to humans, tempting to bots */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll::after { animation: none; }
  .stagger { opacity: 1; transform: none; transition: none; }
  .fade-img { opacity: 1; transform: none; transition: none; }
  .shimmer-text { animation: none; color: inherit; background: none; }
  .btn:active, .chip:active { transform: none; }
}
