:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: #172033;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --gold: #d4af37;
  --gold-soft: #f1d27a;
  --border: rgba(212, 175, 55, 0.16);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 2rem, var(--max)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, 0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; }
.brand { display: flex; align-items: center; gap: 0.85rem; font-weight: 700; letter-spacing: 0.02em; }
.brand img { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); }
.brand-text small { display: block; color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-soft); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.2rem; border-radius: 999px; font-weight: 700;
  border: 1px solid var(--border); transition: 0.2s ease; cursor: pointer;
}
.btn-primary { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #111827; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); }
.btn-secondary:hover { border-color: rgba(212,175,55,.45); color: var(--gold-soft); }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 82vh;
  display: grid;
  align-items: center;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(6,10,19,.35) 0%, rgba(10,18,35,.55) 32%, rgba(11,18,32,.82) 74%, rgba(11,18,32,.98) 100%),
    url('cover.png');
  background-position: center top, center top;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll, fixed;
  transform: scale(1.04);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 180px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(11,18,32,0) 0%, rgba(11,18,32,.72) 55%, #0b1220 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
}
.hero .container { padding: 6rem 0 8rem; }
.kicker { color: var(--gold-soft); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.hero h1 { max-width: 11ch; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.02; margin: 0.3rem 0 1rem; }
.hero p { max-width: 650px; color: #d6d9df; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.5rem; }
.section { padding: 4.5rem 0; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 0.8rem; }
.section-lead { color: var(--muted); max-width: 720px; margin-bottom: 2rem; }
.grid-3 { display: grid; gap: 1.3rem; grid-template-columns: repeat(3, 1fr); }

.card,
.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.012));
  border: 1px solid rgba(212,175,55,.08);
  border-radius: 30px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.015) inset,
    0 0 34px rgba(212,175,55,.07),
    0 18px 48px rgba(0,0,0,.20);
}
.card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    inset 0 0 40px rgba(212,175,55,.03);
}
.card-media { aspect-ratio: 16/10; background: #0f172a; }
.card-body { padding: 1.2rem 1.2rem 1rem; }
.card-label { color: var(--gold-soft); font-size: 0.85rem; font-weight: 800; letter-spacing: .08em; }
.card h3 { margin: 0.45rem 0 0.55rem; font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; }
.split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; align-items: center;
}

.expertise-section {
  overflow: visible;
}
.expertise-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}
.expertise-intro {
  position: sticky;
  top: 26vh;
  align-self: start;
  padding: 2rem 1.55rem;
}
.expertise-intro .section-lead {
  margin-bottom: 0;
}
.expertise-items {
  display: grid;
  gap: 1.8rem;
}
.expertise-item {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
.expertise-item .card-media {
  order: 2;
}
.expertise-item .expertise-copy {
  order: 1;
}
.expertise-item .card-body {
  padding-bottom: 1rem;
}
.expertise-item .card-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 0;
}
.panel {
  padding: 1.55rem;
  backdrop-filter: blur(8px);
}
.quote {
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; margin: 0;
}
.quote-source { color: var(--muted); margin-top: 0.9rem; }
.list { padding-left: 1.15rem; color: var(--muted); }
.page-hero { padding: 4rem 0 2.2rem; }
.page-hero h1 { margin: 0 0 .7rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.page-hero p { max-width: 720px; color: var(--muted); }
.form-card { max-width: 760px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03); color: var(--text); padding: 0.95rem 1rem; font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #90a0b7; }
.form-note { color: var(--muted); font-size: 0.95rem; }
.contact-boxes { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.contact-box { padding: 1.2rem; }
.contact-box strong { display: block; margin-bottom: .3rem; }
.site-footer { padding: 2rem 0; border-top: 1px solid rgba(255,255,255,.06); color: var(--muted); }
.footer-wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.small { font-size: 0.9rem; }
.notice {
  border-left: 3px solid var(--gold);
  padding: .9rem 1rem; background: rgba(212,175,55,.08); border-radius: 10px; color: #e9e5d1;
}
@media (max-width: 900px) {
  .grid-3, .split, .contact-boxes, .form-grid, .expertise-layout { grid-template-columns: 1fr; }
  .hero { min-height: 72vh; }
  .hero::before { background-attachment: scroll, scroll; }
  .hero h1 { max-width: 14ch; }
  .nav { align-items: flex-start; flex-direction: column; }
  .expertise-intro { position: static; top: auto; }
  .expertise-item .card-media img { height: 260px; }
}

/* keep all card images consistent */
.card-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0;
}
/* Force text to stay inside the right-side expertise items */
.expertise-layout,
.expertise-right,
.expertise-scroll,
.expertise-item,
.expertise-copy,
.expertise-item > div,
.expertise-item p,
.expertise-item h3 {
  min-width: 0;
  max-width: 100%;
}

.expertise-item {
  overflow: hidden;
}

.expertise-copy {
  width: 100%;
  overflow: hidden;
}

.expertise-item p,
.expertise-item h3 {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}