:root {
  --bg: #171514;
  --surface: #1f1c1a;
  --surface-2: #262220;
  --text: #f5f2ec;
  --muted: #b9b1a6;
  --gold: #a98d4f;
  --gold-bright: #c6a965;
  --line: rgba(245, 242, 236, 0.12);
  --line-strong: rgba(245, 242, 236, 0.28);
  --maxw: 1180px;
  --display: 'Marcellus', Georgia, serif;
  --body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(23, 21, 20, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.brand img { width: 132px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--muted); transition: color .15s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a.btn { color: var(--bg); }

@media (max-width: 760px) {
  .header-inner { height: auto; flex-wrap: wrap; padding-top: 16px; padding-bottom: 14px; row-gap: 12px; }
  .brand img { width: 112px; }
  .main-nav { width: 100%; justify-content: space-between; gap: 12px; font-size: 14.5px; }
  .main-nav .nav-companies { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: transparent; border-color: var(--text); }
.main-nav .btn { padding: 10px 20px; font-size: 14.5px; }
@media (max-width: 760px) { .main-nav .btn { padding: 8px 16px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(23,21,20,0.97) 0%, rgba(23,21,20,0.86) 45%, rgba(23,21,20,0.55) 100%),
    url('assets/mesh.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 140px 0 132px; max-width: 780px; }
.hero h1 { font-size: clamp(50px, 8vw, 104px); letter-spacing: -0.01em; }
.hero .lead {
  margin-top: 30px;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 34em;
}
.hero-actions { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 640px) { .hero-inner { padding: 88px 0 84px; } }

.page-hero .hero-inner { padding: 120px 0 104px; }
.page-hero h1 { font-size: clamp(46px, 7vw, 88px); }
@media (max-width: 640px) { .page-hero .hero-inner { padding: 76px 0 68px; } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--surface); }
@media (max-width: 640px) { .section { padding: 76px 0; } }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); }
.section-head p { color: var(--muted); max-width: 30em; }
@media (max-width: 760px) { .section-head { flex-direction: column; align-items: start; margin-bottom: 40px; } }

/* What we do */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--bg); padding: 44px 42px 40px; display: flex; flex-direction: column; transition: background .2s; }
.service:hover { background: var(--surface-2); }
.service h3 { font-size: 28px; color: var(--gold-bright); }
.service p { margin-top: 16px; color: var(--muted); flex: 1; }
.service .more { margin-top: 28px; font-size: 15px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line-strong); align-self: start; padding-bottom: 2px; }
.service:hover .more { border-color: var(--gold-bright); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } .service { padding: 34px 26px 30px; } }

/* Companies */
.companies { border-top: 1px solid var(--line-strong); }
.company {
  display: grid;
  grid-template-columns: 1fr 1.3fr 220px;
  align-items: center;
  gap: 24px;
  padding: 30px 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: padding .2s, background .2s;
}
.company:hover { background: var(--surface-2); padding-left: 18px; padding-right: 18px; }
.company h3 { font-size: clamp(26px, 3vw, 34px); }
.company .desc { color: var(--muted); }
.company .domain { font-size: 15px; font-weight: 600; color: var(--gold-bright); white-space: nowrap; text-align: right; }
@media (max-width: 760px) { .company .domain { text-align: left; } }
@media (max-width: 760px) {
  .company { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .company:hover { padding-left: 0; padding-right: 0; background: none; }
}

/* Inner page content */
.split { display: grid; grid-template-columns: 340px 1fr; gap: 64px; }
.split + .split { margin-top: 88px; padding-top: 88px; border-top: 1px solid var(--line); }
.split h2 { font-size: clamp(30px, 3.4vw, 40px); color: var(--gold-bright); }
.split .copy p { color: var(--muted); font-size: 18px; max-width: 40em; }
.split .copy p + p { margin-top: 20px; }
.split .copy p.strong { color: var(--text); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 20px; }
  .split + .split { margin-top: 60px; padding-top: 60px; }
}

.split .copy p.experts-lead { margin-top: 40px; color: var(--text); font-weight: 600; font-size: 18px; }
.experts {
  list-style: none;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
  border-top: 1px solid var(--line);
  max-width: 40em;
}
.experts li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 17px; }
@media (max-width: 560px) { .experts { grid-template-columns: 1fr; } }
.split .copy p.closing { margin-top: 36px; font-family: var(--display); font-size: 24px; line-height: 1.4; color: var(--text); max-width: 30em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }
.contact-info h2 { font-size: clamp(38px, 5vw, 60px); }
.contact-list { margin-top: 40px; display: grid; gap: 28px; }
.contact-list .k { display: block; font-size: 14px; font-weight: 600; color: var(--gold-bright); margin-bottom: 4px; }
.contact-list .v { font-size: 19px; }
.contact-list a.v:hover { color: var(--gold-bright); }
.socials { margin-top: 36px; display: flex; gap: 12px; }
.socials a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color .15s, background .15s;
}
.socials a:hover { border-color: var(--gold-bright); background: var(--surface-2); }
.socials svg { width: 18px; height: 18px; fill: var(--text); }

form.connect {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 44px 42px 40px;
}
@media (max-width: 640px) { form.connect { padding: 30px 22px 28px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
.req { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  padding: 13px 14px;
  transition: border-color .15s;
}
input:hover, textarea:hover { border-color: rgba(245, 242, 236, 0.45); }
input:focus, textarea:focus { border-color: var(--gold-bright); outline: none; }
textarea { min-height: 140px; resize: vertical; }
.checkbox-field { display: flex; align-items: center; gap: 10px; margin: 2px 0 22px; font-size: 15px; color: var(--muted); }
.checkbox-field input { width: 18px; height: 18px; accent-color: var(--gold); }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-status { font-size: 15px; color: var(--muted); min-height: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 40px; background: var(--bg); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-top img { width: 120px; height: auto; }
.footer-top .tag { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 22em; }
.footer-top h4 { font-size: 14px; font-weight: 600; color: var(--gold-bright); margin-bottom: 14px; }
.footer-top ul { list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.footer-top ul a:hover { color: var(--text); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Spam trap field: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Home hero: the mission statement is the headline */
.hero-home .hero-inner { max-width: 940px; padding: 150px 0 140px; }
.hero-home h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.2; letter-spacing: 0; }
@media (max-width: 640px) { .hero-home .hero-inner { padding: 84px 0 80px; } }

/* Our Companies dropdown */
.dropdown { position: relative; }
.dropdown summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color .15s;
}
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .15s;
}
.dropdown[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.dropdown summary:hover, .dropdown[open] summary { color: var(--text); }
.dropdown summary:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; border-radius: 4px; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: grid;
}
.dropdown-menu a {
  color: var(--text);
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 15px;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--bg); color: var(--gold-bright); }
@media (max-width: 760px) {
  .dropdown-menu { left: auto; right: -40px; transform: none; top: calc(100% + 12px); }
}

/* Home: the headline fills the screen above the footer */
.hero-home { min-height: calc(100vh - 85px); display: flex; align-items: center; }
.hero-home .wrap { width: 100%; }
@media (max-width: 760px) { .hero-home { min-height: 0; } }

/* Contact page */
.contact-page { padding-top: 96px; }

/* Phone header: logo and button on top row, links below */
@media (max-width: 760px) {
  .header-inner { position: relative; }
  .main-nav { justify-content: flex-start; gap: 26px; white-space: nowrap; }
  .main-nav .btn { position: absolute; top: 18px; right: 0; }
  .dropdown-menu { left: auto; right: -30px; }
}

/* Second lead paragraph in a page hero */
.hero .lead + .lead { margin-top: 18px; }
.split .copy .experts { margin-top: 6px; }

/* Hands On: tighter experts list */
.experts-block h2 { font-size: clamp(28px, 3vw, 36px); color: var(--gold-bright); }
.experts-block .experts {
  max-width: none;
  margin-top: 28px;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 48px;
}
.experts-block .experts li { padding: 11px 0; font-size: 16px; }
.experts-block .closing {
  margin-top: 32px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 36em;
}
@media (max-width: 900px) { .experts-block .experts { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (max-width: 560px) { .experts-block .experts { grid-template-columns: 1fr; } }
.section:has(.experts-block) { padding: 88px 0; }

/* Connect With Us heading on one line */
.contact-info h2 { font-size: clamp(36px, 3.6vw, 48px); white-space: nowrap; }
@media (max-width: 420px) { .contact-info h2 { white-space: normal; } }
