:root {
  color-scheme: light;
  --ink: #10243f;
  --ink-2: #253a56;
  --muted: #647285;
  --paper: #f6f4ef;
  --surface: #ffffff;
  --teal: #177e83;
  --teal-dark: #0d5f68;
  --amber: #d78a27;
  --coral: #bf4f45;
  --blue: #2f67d8;
  --line: rgba(16, 36, 63, 0.14);
  --shadow: 0 24px 70px rgba(20, 33, 55, 0.16);
  --radius: 8px;
  --max: 1180px;
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  width: 100vw;
  max-width: 100vw;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(246, 244, 239, 0.82);
  border-bottom: 1px solid rgba(16, 36, 63, 0.08);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(246, 244, 239, 0.94);
  box-shadow: 0 10px 30px rgba(16, 36, 63, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 176px;
  height: auto;
}

.brand-subtitle {
  padding-left: 14px;
  border-left: 1px solid rgba(16, 36, 63, 0.16);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(23, 126, 131, 0.1);
  color: var(--teal-dark);
  outline: none;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  place-items: center;
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(820px, 88vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-height) + 80px) 24px 64px;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
}

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

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(246, 244, 239, 0.98) 0%, rgba(246, 244, 239, 0.88) 34%, rgba(246, 244, 239, 0.28) 72%),
    linear-gradient(0deg, rgba(246, 244, 239, 1) 0%, rgba(246, 244, 239, 0) 28%);
}

.hero-inner {
  width: min(100%, var(--max));
  min-width: 0;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: clamp(2.6rem, 6vw, 5.35rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: 1.22rem;
}

.hero-lead {
  max-width: min(720px, 100%);
  margin: 24px 0 0;
  color: var(--ink-2);
  font-size: clamp(1.06rem, 1.7vw, 1.34rem);
  hyphens: auto;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-references {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 980px;
  margin-top: 22px;
}

.hero-references span,
.hero-references a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.hero-references span {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-references a {
  padding: 6px 12px;
  border: 1px solid rgba(16, 36, 63, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.hero-references a:hover,
.hero-references a:focus-visible {
  border-color: rgba(23, 126, 131, 0.38);
  background: #fff;
  color: var(--teal-dark);
  outline: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 34px rgba(16, 36, 63, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal-dark);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--ink);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgba(23, 126, 131, 0.42);
  background: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 820px;
  margin: 44px 0 0;
  padding: 0;
  background: rgba(16, 36, 63, 0.12);
  border: 1px solid rgba(16, 36, 63, 0.12);
}

.hero-stats div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 900;
}

.intro-band,
.section {
  padding: 92px 24px;
}

.intro-band {
  background: var(--ink);
  color: #fff;
}

.section-inner {
  width: min(100%, var(--max));
  min-width: 0;
  margin: 0 auto;
}

.intro-grid,
.split-grid,
.seo-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
}

.intro-grid > *,
.split-grid > *,
.seo-grid > *,
.contact-grid > * {
  min-width: 0;
}

.intro-grid p:not(.eyebrow),
.section-heading p,
.seo-copy p,
.contact-section p,
.split-grid p {
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-grid p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.intro-band .eyebrow {
  color: #90d4d2;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-heading p {
  margin: 18px 0 0;
}

.service-grid,
.references-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.reference-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(16, 36, 63, 0.06);
}

.service-card {
  min-height: 270px;
  padding: 28px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border-radius: var(--radius);
  background: rgba(23, 126, 131, 0.12);
  color: var(--teal-dark);
  font-weight: 900;
}

.service-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.section-split {
  background: #ecefeb;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
  font-weight: 720;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 14px;
  height: 2px;
  background: var(--amber);
}

.admin-preview {
  display: grid;
  gap: 18px;
}

.admin-preview p {
  margin: 0;
  font-size: 0.92rem;
}

.admin-preview picture {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(16, 36, 63, 0.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-preview img {
  width: 100%;
  aspect-ratio: 1.6 / 1;
  object-fit: cover;
}

.reference-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.reference-image,
.reference-ui {
  display: block;
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  background: #dde6e7;
}

.reference-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.reference-card:hover .reference-image img {
  transform: scale(1.04);
}

.reference-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.reference-body p {
  margin: 13px 0 22px;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link {
  margin-top: auto;
  color: var(--teal-dark);
  font-weight: 900;
}

.text-link::after {
  content: " ->";
}

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

.reference-card-dark {
  background: var(--ink);
  color: #fff;
}

.reference-card-dark .reference-body p,
.reference-card-dark .muted {
  color: rgba(255, 255, 255, 0.68);
}

.reference-ui {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 1px;
  padding: 24px;
  background: linear-gradient(135deg, #142a49, #0d5f68);
}

.reference-ui span {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
}

.reference-ui span:nth-child(1) {
  grid-row: span 3;
}

.reference-ui span:nth-child(2) {
  background: rgba(215, 138, 39, 0.72);
}

.process-section {
  background: #fff;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: #fff;
}

.process-list li {
  position: relative;
  min-height: 260px;
  padding: 28px;
  background: #fff;
}

.process-list li + li {
  border-left: 0;
}

.process-list li:not(:first-child)::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 1px;
  background: var(--line);
}

.process-list span {
  display: block;
  margin-bottom: 44px;
  color: var(--amber);
  font-weight: 950;
}

.process-list p {
  margin: 14px 0 0;
  color: var(--muted);
}

.seo-section {
  background: var(--ink);
  color: #fff;
}

.seo-section .eyebrow {
  color: #90d4d2;
}

.seo-copy p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill-row span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  font-weight: 750;
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(23, 126, 131, 0.1), transparent 38%),
    var(--paper);
}

.contact-grid {
  align-items: stretch;
}

.contact-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 0;
  font-style: normal;
  background: var(--ink);
  color: #fff;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 36, 63, 0.06), rgba(16, 36, 63, 0.88)),
    url("assets/admin-dashboard-illustration.webp") center / cover;
  transform: scale(1.03);
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.42;
}

.contact-card strong {
  font-size: 1.35rem;
}

.contact-card span {
  color: rgba(255, 255, 255, 0.76);
}

.contact-card-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 12px;
  width: min(86%, 440px);
  margin: 226px 28px 28px auto;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(16, 36, 63, 0.76);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.contact-card-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.contact-card-visual::before,
.contact-card-visual::after,
.contact-card-visual span {
  content: "";
  position: absolute;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.contact-card-visual::before {
  inset: 34px 34px auto auto;
  width: 210px;
  height: 86px;
}

.contact-card-visual::after {
  left: 34px;
  top: 44px;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background:
    conic-gradient(from 30deg, var(--amber), #fff 0 34%, var(--teal) 0 68%, rgba(255,255,255,.2) 0),
    rgba(255,255,255,.1);
}

.contact-card-visual span:nth-child(1) {
  left: 54px;
  bottom: 128px;
  width: 170px;
  height: 66px;
}

.contact-card-visual span:nth-child(2) {
  left: 210px;
  top: 152px;
  width: 110px;
  height: 72px;
}

.contact-card-visual span:nth-child(3) {
  right: 62px;
  top: 148px;
  width: 74px;
  height: 74px;
  background: rgba(215, 138, 39, 0.52);
}

.site-footer {
  padding: 26px 24px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.footer-inner a {
  color: var(--teal-dark);
  font-weight: 850;
}

.cookie-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  width: min(760px, calc(100vw - 48px));
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(16, 36, 63, 0.96);
  box-shadow: var(--shadow);
  color: #fff;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.cookie-consent p {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.55;
}

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

.cookie-button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.cookie-button:hover,
.cookie-button:focus-visible {
  transform: translateY(-1px);
}

.cookie-button-primary {
  background: var(--amber);
  color: #16110b;
}

.cookie-button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    padding: 7px 16px;
    border-top: 1px solid rgba(16, 36, 63, 0.06);
    border-bottom: 1px solid rgba(16, 36, 63, 0.08);
    background: rgba(246, 244, 239, 0.96);
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .intro-grid,
  .split-grid,
  .seo-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .references-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .process-list li:nth-child(1),
  .process-list li:nth-child(2) {
    border-top: 0;
  }

  .process-list li:nth-child(even) {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand-subtitle {
    display: none;
  }

  .brand-logo {
    width: 154px;
  }

  .hero {
    min-height: auto;
    padding: 132px 18px 48px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(246, 244, 239, 0.97), rgba(246, 244, 239, 0.76)),
      linear-gradient(0deg, rgba(246, 244, 239, 1), rgba(246, 244, 239, 0) 42%);
  }

  h1 {
    font-size: clamp(2.28rem, 12.2vw, 3.7rem);
  }

  h2 {
    font-size: clamp(1.8rem, 9vw, 2.25rem);
  }

  .intro-band h2 {
    max-width: 12ch;
  }

  .hero-stats,
  .service-grid,
  .references-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li,
  .process-list li:nth-child(even) {
    border-left: 0;
  }

  .process-list li:not(:first-child)::before {
    display: none;
  }

  .process-list li + li,
  .process-list li:nth-child(2) {
    border-top: 1px solid var(--line);
  }

  .hero-stats {
    margin-top: 42px;
  }

  .hero-references {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .hero-references a {
    min-height: 32px;
  }

  .hero-lead {
    max-width: min(330px, calc(100vw - 36px));
    font-size: 1rem;
  }

  .intro-band,
  .section {
    padding: 64px 18px;
  }

  .contact-card {
    min-height: 380px;
  }

  .contact-card-visual {
    min-height: 190px;
  }

  .contact-card-content {
    width: auto;
    margin: 188px 18px 18px;
    padding: 22px;
  }

  .cookie-consent {
    right: 16px;
    bottom: 16px;
    grid-template-columns: 1fr;
    width: calc(100vw - 32px);
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-button {
    flex: 1 1 130px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
