:root {
  --ink: #0f1724;
  --ink-soft: #243044;
  --slate: #3d4f66;
  --muted: #5c6b7e;
  --line: #d5dde8;
  --paper: #f7f9fc;
  --white: #ffffff;
  --steel: #1e3a5f;
  --steel-mid: #2a4a73;
  --accent: #0d7a7a;
  --accent-soft: #e6f3f3;
  --hero-top: #0c1929;
  --hero-mid: #152a45;
  --hero-end: #1e3d5c;
  --grid: rgba(255, 255, 255, 0.045);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

a { color: inherit; }

/* ——— Header ——— */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}

.site-header.is-solid {
  position: sticky;
  background: var(--ink);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.site-header.is-solid .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.brand-mark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
}

.brand-mark small {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.15rem;
}

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

.header-nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.header-nav a:hover { color: var(--white); }

.header-nav .nav-cta {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.header-nav .nav-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(13, 122, 122, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 15% 80%, rgba(42, 74, 115, 0.45) 0%, transparent 50%),
    linear-gradient(165deg, var(--hero-top) 0%, var(--hero-mid) 48%, var(--hero-end) 100%);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 70%, transparent 100%);
  animation: gridDrift 28s linear infinite;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 55%;
  height: 90%;
  right: -8%;
  top: 5%;
  background:
    radial-gradient(ellipse at 40% 50%, rgba(180, 210, 230, 0.08) 0%, transparent 65%),
    linear-gradient(135deg, transparent 30%, rgba(13, 122, 122, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transform: skewX(-8deg);
  pointer-events: none;
  animation: planeIn 1.4s var(--ease) both;
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 64px 64px; }
}

@keyframes planeIn {
  from { opacity: 0; transform: skewX(-8deg) translateX(40px); }
  to { opacity: 1; transform: skewX(-8deg) translateX(0); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 7.5rem clamp(1.25rem, 4vw, 3rem) 5rem;
}

.hero-brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-brand span {
  display: block;
  font-size: 0.32em;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1rem;
  animation: riseIn 0.9s var(--ease) 0.12s both;
}

.hero-lead {
  max-width: 38ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 2.25rem;
  animation: riseIn 0.9s var(--ease) 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: riseIn 0.9s var(--ease) 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
}

.btn-primary:hover { background: #0a6868; border-color: #0a6868; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

/* ——— Page hero (inner pages) ——— */
.page-hero {
  background:
    radial-gradient(ellipse 70% 80% at 80% 20%, rgba(13, 122, 122, 0.16) 0%, transparent 55%),
    linear-gradient(165deg, var(--hero-top) 0%, var(--hero-mid) 55%, var(--hero-end) 100%);
  color: var(--white);
  padding: 7rem clamp(1.25rem, 4vw, 3rem) 3.5rem;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero .section-label {
  color: rgba(255, 255, 255, 0.55);
}

.page-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  max-width: 20ch;
}

.page-hero p {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
}

/* ——— Sections ——— */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 550;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  max-width: 22ch;
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.75rem;
}

.prose {
  max-width: 68ch;
}

.prose p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.15rem;
}

.prose p:last-child { margin-bottom: 0; }

.prose h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 550;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2.5rem 0 0.85rem;
  max-width: none;
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 1.75rem 0 0.5rem;
}

.prose ul {
  margin: 0 0 1.15rem 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose li { margin-bottom: 0.4rem; }

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Capabilities */
.capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.capability {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.capability:nth-child(odd) { padding-right: 2.5rem; border-right: 1px solid var(--line); }
.capability:nth-child(even) { padding-left: 2.5rem; }

.capability h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
}

.capability p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 40ch;
}

/* Approach band */
.approach {
  background: linear-gradient(180deg, #eef2f7 0%, var(--paper) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.approach .section {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.approach-copy h2 { max-width: 14ch; }

.principles {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.principles li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
}

.principles .num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--steel);
  line-height: 1.4;
}

.principles strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}

.principles span {
  font-size: 0.95rem;
  color: var(--muted);
}

/* About / company */
.about-block {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-block .about-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 48ch;
  margin-bottom: 1rem;
}

.about-block .about-copy p:last-child { margin-bottom: 0; }

.company-details {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}

.company-details dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 1.1rem;
}

.company-details dt:first-child { margin-top: 0; }

.company-details dd {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.company-details a {
  color: var(--accent);
  text-decoration: none;
}

.company-details a:hover { text-decoration: underline; }

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-block h2 {
  max-width: 16ch;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}

.contact-method dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.35rem;
}

.contact-method dd {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.contact-method a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.contact-method a:hover { text-decoration: underline; }

/* Contact strip */
.contact-strip {
  background: var(--steel);
  color: var(--white);
}

.contact-strip .section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.contact-strip h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 550;
  color: var(--white);
  max-width: 22ch;
  margin: 0 0 0.4rem;
}

.contact-strip p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.98rem;
  margin: 0;
}

.contact-strip .btn-primary {
  background: var(--white);
  color: var(--steel);
  border-color: var(--white);
}

.contact-strip .btn-primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

/* Footer */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer-legal {
  font-size: 0.82rem;
  line-height: 1.7;
  max-width: 52ch;
}

.footer-legal strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-bottom a,
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-bottom a:hover,
.footer-links a:hover { color: var(--white); }

@media (max-width: 800px) {
  .header-nav a:not(.nav-cta) { display: none; }

  .hero::after { width: 100%; right: 0; opacity: 0.5; }

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

  .capability:nth-child(odd),
  .capability:nth-child(even) {
    padding: 1.5rem 0;
    border-right: none;
  }

  .approach-grid,
  .about-block,
  .contact-grid { grid-template-columns: 1fr; }

  .company-details {
    border-left: none;
    border-top: 2px solid var(--accent);
    padding-left: 0;
    padding-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
