:root {
  color-scheme: light dark;
  --bg: #f7f4ef;
  --bg-2: #efe9e1;
  --ink: #171a22;
  --muted: #5d6471;
  --accent: #e16b3a;
  --accent-2: #1f9d8b;
  --accent-3: #22364b;
  --surface: #ffffff;
  --surface-2: #f6efe6;
  --surface-3: rgba(23, 26, 34, 0.06);
  --stroke: rgba(23, 26, 34, 0.12);
  --shadow: 0 26px 60px rgba(23, 26, 34, 0.12);
  --nav-shadow: 0 12px 30px rgba(23, 26, 34, 0.12);
  --card-shadow: 0 18px 40px rgba(23, 26, 34, 0.12);
  --card-shadow-hover: 0 24px 50px rgba(23, 26, 34, 0.18);
  --overlay: rgba(10, 12, 16, 0.58);
  --glow-1: rgba(225, 107, 58, 0.2);
  --glow-2: rgba(31, 157, 139, 0.18);
  --grid-line: rgba(23, 26, 34, 0);
  --grid-size: 200px;
  --nav-bg: rgba(247, 244, 239, 0.9);
  --panel-bg: rgba(247, 244, 239, 0.98);
  --btn-ghost-bg: rgba(255, 255, 255, 0.82);
  --nav-toggle-bg: rgba(255, 255, 255, 0.9);
  --tag-bg: rgba(31, 157, 139, 0.16);
  --nav-link-active: rgba(225, 107, 58, 0.14);
  --cta-start: rgba(225, 107, 58, 0.18);
  --cta-end: rgba(31, 157, 139, 0.18);
  --accent-shadow: 0 18px 36px rgba(225, 107, 58, 0.28);
  --dark-section-bg: linear-gradient(135deg, #1a212c 0%, #223043 100%);
  --ink-inverse: #f7f1ea;
  --ink-inverse-muted: rgba(247, 241, 234, 0.7);
  --dark-card-bg: rgba(255, 255, 255, 0.08);
  --dark-card-border: rgba(255, 255, 255, 0.18);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --section-space: clamp(64px, 8vw, 120px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1116;
    --bg-2: #141a20;
    --ink: #eef1f5;
    --muted: #b3bcc9;
    --accent: #ff8b5c;
    --accent-2: #4cc5b5;
    --accent-3: #cfe1f2;
    --surface: #171e25;
    --surface-2: #1d262f;
    --surface-3: rgba(238, 241, 245, 0.08);
    --stroke: rgba(238, 241, 245, 0.14);
    --shadow: 0 32px 70px rgba(0, 0, 0, 0.55);
    --nav-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    --card-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    --card-shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.65);
    --overlay: rgba(5, 8, 12, 0.72);
    --glow-1: rgba(255, 139, 92, 0.16);
    --glow-2: rgba(76, 197, 181, 0.16);
    --grid-line: rgba(255, 255, 255, 0);
    --nav-bg: rgba(15, 17, 22, 0.88);
    --panel-bg: rgba(15, 17, 22, 0.98);
    --btn-ghost-bg: rgba(23, 30, 37, 0.92);
    --nav-toggle-bg: rgba(23, 30, 37, 0.94);
    --tag-bg: rgba(76, 197, 181, 0.22);
    --nav-link-active: rgba(255, 139, 92, 0.22);
    --cta-start: rgba(255, 139, 92, 0.22);
    --cta-end: rgba(76, 197, 181, 0.2);
    --accent-shadow: 0 18px 36px rgba(255, 139, 92, 0.28);
    --dark-section-bg: linear-gradient(135deg, #121923 0%, #1b2533 100%);
    --ink-inverse: #f7f1ea;
    --ink-inverse-muted: rgba(247, 241, 234, 0.68);
    --dark-card-bg: rgba(255, 255, 255, 0.08);
    --dark-card-border: rgba(255, 255, 255, 0.18);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(900px 600px at 85% -10%, var(--glow-1), transparent 65%),
    radial-gradient(800px 520px at 12% 0%, var(--glow-2), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  line-height: 1.6;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: "Sora", "IBM Plex Sans", sans-serif;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1.2em;
}

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.section {
  padding: var(--section-space) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--accent-2);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--accent);
  display: inline-block;
}

.display {
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 1.05;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: var(--accent-shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--stroke);
  background: var(--btn-ghost-bg);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.site-nav.scrolled {
  border-bottom: 1px solid var(--stroke);
  box-shadow: var(--nav-shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand span {
  font-family: "Space Grotesk", "Outfit", sans-serif;
}

.nav-panel {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-surface {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-weight: 500;
}

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--nav-toggle-bg);
  border: 1px solid var(--stroke);
  font-weight: 600;
  align-items: center;
  justify-content: center;
  position: relative;
}

.menu-icon {
  position: relative;
  width: 20px;
  height: 14px;
  display: inline-block;
}

.menu-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-3);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-line:nth-child(1) {
  top: 0;
}

.menu-line:nth-child(2) {
  top: 6px;
}

.menu-line:nth-child(3) {
  top: 12px;
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

.hero {
  padding: clamp(60px, 10vw, 140px) 0 var(--section-space);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(30px, 4vw, 64px);
  align-items: center;
}

.hero-media {
  position: relative;
  display: grid;
  gap: 18px;
}

.hero-media .tile {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

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

.hero-media .tile.large {
  aspect-ratio: 4 / 5;
}

.hero-media .tile.small {
  aspect-ratio: 16 / 10;
}

.hero-media .tile.floating {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: min(45%, 240px);
  border: 1px solid var(--stroke);
  animation: float 6s ease-in-out infinite;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.stat {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--stroke);
}

.stat strong {
  font-size: 1.8rem;
  display: block;
  color: var(--accent-3);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--stroke);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4em;
}

.card p {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid var(--stroke);
  margin-bottom: 12px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 50px);
  align-items: center;
}

.soft-panel {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--stroke);
}

.list-grid {
  display: grid;
  gap: 14px;
}

.list-grid li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.list-grid li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.dark-section {
  background: var(--dark-section-bg);
  color: var(--ink-inverse);
}

.dark-section .eyebrow {
  color: var(--ink-inverse-muted);
}

.dark-section .lead {
  color: var(--ink-inverse-muted);
}

.dark-section .card {
  background: var(--dark-card-bg);
  border-color: var(--dark-card-border);
  box-shadow: none;
}

.dark-section .card p {
  color: var(--ink-inverse-muted);
}

.dark-section .soft-panel {
  background: var(--dark-card-bg);
  border-color: var(--dark-card-border);
  color: var(--ink-inverse);
}

.dark-section .soft-panel p,
.dark-section .soft-panel li {
  color: var(--ink-inverse-muted);
}

.dark-section .soft-panel h3 {
  color: var(--ink-inverse);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: var(--surface);
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
}

.page-hero {
  padding: clamp(80px, 8vw, 120px) 0 clamp(40px, 6vw, 80px);
}

.page-hero .container {
  display: grid;
  gap: 20px;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

details {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

details + details {
  margin-top: 14px;
}

summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.service-section {
  scroll-margin-top: 120px;
}

.cta {
  display: grid;
  gap: 20px;
  padding: clamp(30px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, var(--cta-start), var(--cta-end));
  border: 1px solid var(--stroke);
}

.form {
  display: grid;
  gap: 16px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
  color: var(--ink);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  min-height: 1.5em;
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-note[data-state="pending"] {
  color: var(--highlight);
}

.form-note[data-state="success"] {
  color: var(--accent-2);
}

.form-note[data-state="error"] {
  color: var(--accent-1);
}

.footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--stroke);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, 1fr);
  gap: 30px;
}

.footer a {
  color: var(--muted);
}

.footer-meta {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(0.58rem, 1.2vw, 0.66rem);
  color: var(--muted);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.footer-meta::-webkit-scrollbar {
  display: none;
}

.footer-meta a {
  color: var(--muted);
}

.footer-meta a:hover {
  color: var(--ink);
}

.footer-credentials {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-credentials span {
  opacity: 0.7;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}

.link-button:hover {
  color: var(--ink);
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-content {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.cookie-title {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 1rem;
}

.cookie-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  white-space: nowrap;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cookie-modal[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal-card {
  width: min(600px, 92vw);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 16px;
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-options {
  display: grid;
  gap: 12px;
}

.cookie-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.cookie-option input {
  margin-top: 4px;
  accent-color: var(--accent);
}

.cookie-option span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cookie-option small {
  color: var(--muted);
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.dev-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 240;
  background: #fff6ef;
  border-bottom: 1px solid rgba(255, 172, 123, 0.4);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dev-banner[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dev-banner-inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 500;
  color: #4a4a4a;
  letter-spacing: 0.01em;
  font-size: 0.74rem;
  position: relative;
}

.dev-banner-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dev-banner img {
  height: 30px;
  width: auto;
  display: block;
}

.dev-banner-text {
  color: inherit;
}

.dev-banner-close {
  position: absolute;
  right: 20px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 172, 123, 0.55);
  background: rgba(255, 240, 230, 0.9);
  color: #4a4a4a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.has-dev-banner {
  padding-top: 52px;
}

body.has-dev-banner .site-nav {
  top: 52px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-media .tile.floating {
    position: relative;
    right: 0;
    bottom: 0;
    width: 100%;
  }

  .nav-panel {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 96px 16px 24px;
    background: var(--overlay);
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 120;
  }

  .nav-panel[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-surface {
    width: min(440px, 100%);
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    background: var(--panel-bg);
    border-radius: 28px;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    padding: 22px;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 1.05rem;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--surface-3);
  }

  .nav-links a[aria-current="page"] {
    background: var(--nav-link-active);
  }

  .nav-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 18px 18px;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1 1 auto;
  }

  .dev-banner-inner {
    height: 46px;
    font-size: 0.7rem;
  }

  body.has-dev-banner {
    padding-top: 46px;
  }

  body.has-dev-banner .site-nav {
    top: 46px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    align-items: center;
  }
}

@media (min-width: 961px) {
  .nav-links a {
    position: relative;
    padding-bottom: 6px;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
  }

  .nav-links a:hover::after,
  .nav-links a[aria-current="page"]::after {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .card,
  .reveal,
  .hero-media .tile.floating {
    transition: none;
    animation: none;
  }
}
