@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --navy: #0b1f33;
  --navy-2: #14324e;
  --gold: #c9a44c;
  --gold-soft: #ead9aa;
  --ink: #1d2732;
  --muted: #66717d;
  --paper: #fafafa;
  --surface: #ffffff;
  --surface-muted: #f3f5f7;
  --line: #dfe4e8;
  --shadow: 0 18px 45px rgba(11, 31, 51, 0.10);
  --radius: 20px;
  --container: 1180px;
  --header-height: 84px;
}

html[data-theme="dark"] {
  --ink: #eef3f7;
  --muted: #b7c0c8;
  --paper: #091725;
  --surface: #0f2235;
  --surface-muted: #0b1b2a;
  --line: #294157;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

code {
  font-size: 0.9em;
  background: rgba(127, 127, 127, 0.12);
  padding: 0.12rem 0.3rem;
  border-radius: 5px;
}

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

.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;
  left: 16px;
  top: -80px;
  z-index: 999;
  background: var(--gold);
  color: #111;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 65%, transparent);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 0.95rem;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 22px;
}

.primary-navigation a {
  position: relative;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.primary-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--gold);
  transition: right 0.25s ease;
}

.primary-navigation a:hover::after,
.primary-navigation a:focus-visible::after {
  right: 0;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 0;
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  width: 26px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(201, 164, 76, 0.18), transparent 28%),
    linear-gradient(135deg, #081828 0%, #0b1f33 48%, #173c5d 100%);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 70px;
  align-items: center;
  padding-block: 80px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.08;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6vw, 5.8rem);
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: #d7e1e9;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  background: var(--gold);
  color: #111;
  box-shadow: 0 10px 24px rgba(201, 164, 76, 0.22);
}

.button-primary:hover {
  background: #d7b861;
}

.button-secondary {
  border-color: rgba(255,255,255,0.38);
  color: #fff;
  background: rgba(255,255,255,0.03);
}

.button-secondary:hover {
  background: rgba(255,255,255,0.09);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: #b9c8d4;
  font-size: 0.9rem;
}

.hero-points li::before {
  content: "•";
  margin-right: 9px;
  color: var(--gold);
}

.hero-portrait {
  display: flex;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  width: min(100%, 460px);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 14px;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 30px 70px rgba(0,0,0,0.28);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #d9dee3;
}

.portrait-note {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  padding: 16px 18px;
  background: rgba(8, 24, 40, 0.88);
  backdrop-filter: blur(10px);
  border-left: 3px solid var(--gold);
}

.portrait-note strong,
.portrait-note span {
  display: block;
}

.portrait-note span {
  margin-top: 3px;
  color: #ccd6de;
  font-size: 0.78rem;
}

.metrics {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  padding: 36px 26px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.section {
  padding-block: 110px;
}

.section-muted {
  background: var(--surface-muted);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 80px;
}

.section-heading {
  max-width: 760px;
}

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

.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  letter-spacing: -0.03em;
}

.section-heading > p:last-child {
  color: var(--muted);
  max-width: 680px;
  margin: 20px auto 0;
}

.prose {
  max-width: 760px;
}

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

.prose .lead {
  margin-top: 0;
  color: var(--ink);
  font-size: 1.2rem;
}

blockquote {
  margin: 36px 0 0;
  padding: 28px 0 28px 28px;
  border-left: 4px solid var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.45;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 58px;
}

.service-card,
.insight-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card {
  min-height: 290px;
  padding: 34px;
}

.service-card:hover,
.insight-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--gold) 65%, var(--line));
}

.card-number {
  display: inline-block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.service-card h3,
.insight-card h3,
.principle h3 {
  margin: 24px 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
}

.service-card p,
.insight-card p,
.principle p {
  margin: 0;
  color: var(--muted);
}

.philosophy {
  background:
    linear-gradient(rgba(11,31,51,.96), rgba(11,31,51,.96)),
    radial-gradient(circle at top right, rgba(201,164,76,.3), transparent 30%);
  color: #fff;
}

.philosophy .section-heading {
  max-width: 820px;
}

.principles {
  margin-top: 54px;
  border-top: 1px solid rgba(255,255,255,0.16);
}

.principle {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.principle > span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.principle h3 {
  margin: 0 0 8px;
  color: #fff;
}

.principle p {
  color: #bdc9d3;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 58px;
}

.insight-card {
  min-height: 330px;
  padding: 34px;
  display: flex;
  flex-direction: column;
}

.insight-card > span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.insight-card a {
  margin-top: auto;
  padding-top: 24px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.contact-section {
  background: linear-gradient(135deg, #081828 0%, #0b1f33 60%, #143a59 100%);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.contact-copy > p:not(.eyebrow):not(.contact-note) {
  color: #c6d1d9;
  font-size: 1.08rem;
}

.light-button {
  color: #fff;
}

.contact-note,
.form-help {
  color: #9fb0be;
  font-size: 0.78rem;
}

.contact-form {
  padding: 34px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}

.form-row + .form-row {
  margin-top: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 7px;
  color: #e7edf2;
  font-size: 0.82rem;
  font-weight: 700;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  padding: 13px 14px;
  color: #fff;
  background: rgba(255,255,255,0.06);
  outline: none;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,164,76,0.16);
}

.contact-form .button {
  margin-top: 22px;
  border: 0;
}

.site-footer {
  background: #07131f;
  color: #c4ced6;
  padding: 46px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.footer-brand .brand-text strong {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #d8e0e6;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-grid > p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: #7e8d99;
  font-size: 0.78rem;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  max-width: 920px;
  margin-inline: auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.cookie-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.cookie-banner.is-hidden {
  display: none;
}

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

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

.noscript {
  padding: 14px 20px;
  text-align: center;
  background: #fee2e2;
  color: #7f1d1d;
}

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

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

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
    z-index: 3;
  }

  .primary-navigation {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    padding: 24px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .primary-navigation.is-open {
    display: grid;
    gap: 18px;
  }

  .theme-toggle {
    justify-self: start;
  }

  .hero-grid,
  .split-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 56px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-portrait {
    justify-content: flex-start;
  }

  .portrait-frame {
    width: min(100%, 520px);
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .card-grid,
  .insight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding-block: 88px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-block: 62px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .hero-points {
    display: grid;
    gap: 10px;
  }

  .portrait-note {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .metrics-grid,
  .card-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .principle {
    grid-template-columns: 56px 1fr;
    gap: 18px;
  }

  .contact-form {
    padding: 24px 18px;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }

  .cookie-banner {
    left: 14px;
    right: 14px;
    bottom: 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}
