:root {
  --ink: #1d2428;
  --ash: #49565e;
  --mist: #eef1f2;
  --stone: #d7d2cc;
  --brand: #1f4f78;
  --brand-2: #2a6a98;
  --accent: #b37a4c;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(18, 24, 28, 0.18);
  --radius: 18px;
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--mist);
  scroll-behavior: smooth;
}

body {
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) - 4px);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 48px, var(--maxw));
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, filter 0.25s ease;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 14px 26px rgba(31, 79, 120, 0.28);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 30px rgba(31, 79, 120, 0.36);
}

.btn-ghost {
  border-color: rgba(29, 36, 40, 0.2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(29, 36, 40, 0.12);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(31, 79, 120, 0.1);
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.4px;
  font-size: 13px;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 241, 242, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(29, 36, 40, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  color: var(--ash);
}

nav li a {
  position: relative;
  padding-bottom: 6px;
}

nav li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

nav li a:hover::after,
nav li a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(29, 36, 40, 0.15);
  background: transparent;
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  padding: 90px 0 120px;
  overflow: hidden;
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-copy > *:nth-child(1) { transition-delay: 0.1s; }
.hero-copy > *:nth-child(2) { transition-delay: 0.2s; }
.hero-copy > *:nth-child(3) { transition-delay: 0.3s; }
.hero-copy > *:nth-child(4) { transition-delay: 0.4s; }
.hero-copy > *:nth-child(5) { transition-delay: 0.5s; }

body.is-loaded .hero-copy > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 520px;
  background: radial-gradient(circle at 20% 20%, rgba(31, 79, 120, 0.18), transparent 55%),
    radial-gradient(circle at 70% 10%, rgba(179, 122, 76, 0.22), transparent 50%),
    radial-gradient(circle at 30% 80%, rgba(29, 36, 40, 0.14), transparent 55%);
  z-index: 0;
  animation: drift 14s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(18px);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.hero-copy {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.05;
  margin: 0;
}

.hero p {
  font-size: 18px;
  color: var(--ash);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-panel {
  grid-column: span 6;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.hero-card {
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border: 1px solid rgba(29, 36, 40, 0.06);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(31, 79, 120, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-card:hover::before {
  opacity: 1;
}

.hero-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 70px rgba(18, 24, 28, 0.24);
}

.hero-card span {
  font-weight: 600;
  color: var(--brand);
}

.hero-card p {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ash);
}

.hero-card img,
.media-stack img,
.reference-item img,
.service-row img,
.team-card img {
  width: 100%;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.hero-card img {
  height: 240px;
  object-fit: cover;
}

.reference-item img {
  height: 240px;
  object-fit: cover;
}

.service-row .service-media {
  min-height: 260px;
}

.service-row .service-media img {
  height: 100%;
  object-fit: cover;
}

.split .media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-section .media {
  min-height: 360px;
}

.hero-card:hover img,
.media-stack img:hover,
.reference-item:hover img,
.service-row:hover img,
.team-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.05);
}

.section {
  padding: 90px 0;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section-title h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 4vw, 48px);
  margin: 0;
}

.section-title p {
  margin: 0;
  color: var(--ash);
  max-width: 420px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  background: var(--white);
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(29, 36, 40, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(18, 24, 28, 0.22);
  border-color: rgba(31, 79, 120, 0.25);
}

.info-card h3 {
  margin: 0 0 12px;
}

.info-card p {
  margin: 0;
  color: var(--ash);
}

.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: center;
}

.split .media {
  grid-column: span 6;
}

.split .content {
  grid-column: span 6;
}

.media-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.media-stack img:nth-child(2) {
  transform: translateY(18px);
}

.stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.stat {
  min-width: 150px;
}

.stat strong {
  display: block;
  font-size: 32px;
  font-family: "Cormorant Garamond", serif;
}

.service-rows {
  display: grid;
  gap: 36px;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  background: var(--white);
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border: 1px solid rgba(29, 36, 40, 0.06);
}

.service-row:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(18, 24, 28, 0.22);
  border-color: rgba(31, 79, 120, 0.25);
}

.service-row .service-media {
  grid-column: span 5;
  position: relative;
}

.service-row .service-media::after {
  content: "";
  position: absolute;
  inset: auto 10% 12% auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(31, 79, 120, 0.15);
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

.service-row .service-content {
  grid-column: span 7;
}

.service-row:nth-child(even) .service-media {
  order: 2;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.reference-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.reference-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(18, 24, 28, 0.22);
}

.reference-item span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(29, 36, 40, 0.7);
  color: var(--white);
  font-size: 13px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--white);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(29, 36, 40, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(18, 24, 28, 0.22);
  border-color: rgba(31, 79, 120, 0.25);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.contact-grid .contact-form {
  grid-column: span 7;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(29, 36, 40, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.contact-grid .contact-form:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(18, 24, 28, 0.22);
  border-color: rgba(31, 79, 120, 0.25);
}

.contact-grid .contact-info {
  grid-column: span 5;
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

input,
textarea,
select {
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(29, 36, 40, 0.2);
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:hover,
textarea:hover,
select:hover,
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(31, 79, 120, 0.5);
  box-shadow: 0 10px 20px rgba(31, 79, 120, 0.12);
  background: rgba(255, 255, 255, 0.95);
  outline: none;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

footer {
  background: #1c2226;
  color: #d6dde1;
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-grid a {
  color: inherit;
}

.footer-bottom {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(214, 221, 225, 0.7);
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  background: rgba(28, 34, 38, 0.96);
  color: var(--white);
  padding: 18px 22px;
  border-radius: 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  z-index: 50;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-accept {
  background: var(--accent);
  color: #1c2226;
}

.cookie-decline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.map-embed {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fade-delay-1 {
  animation-delay: 0.15s;
}

.fade-delay-2 {
  animation-delay: 0.3s;
}

.fade-delay-3 {
  animation-delay: 0.45s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal.reveal-left {
  transform: translateX(-40px) scale(0.97);
}

.reveal.reveal-right {
  transform: translateX(40px) scale(0.97);
}

.reveal.reveal-zoom {
  transform: scale(0.92);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .reveal,
  .hero-copy > * {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
