:root {
  color-scheme: dark;
  --black: #0a0a08;
  --white: #f5f3ee;
  --gold: #b8965a;
  --gold-light: #7a5b2c;
  --gold-dim: rgba(184,150,90,0.10);
  --grey: #6b6860;
  --grey-light: #9e9b94;
  --border: rgba(184,150,90,0.18);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Instrument Sans', Arial, sans-serif;
}

html[data-theme='light'] {
  color-scheme: light;
  --black: #f5f3ee;
  --white: #0a0a08;
  --gold: #8e713f;
  --gold-light: #5f4726;
  --gold-dim: rgba(142,113,63,0.10);
  --grey: #827a6b;
  --grey-light: #4a453d;
  --border: rgba(142,113,63,0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  min-height: 100vh;
  transition: background .45s ease, color .45s ease;
}
body::before {
  content: '';
  inset: 0;
  opacity: .28;
  pointer-events: none;
  position: fixed;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.site-header {
  align-items: center;
  background: color-mix(in srgb, var(--black) 88%, transparent);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 72px;
  padding: 0 56px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
}
.brand {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -.02em;
  width: fit-content;
}
.site-nav { align-items: center; display: flex; gap: 28px; justify-content: center; }
.site-nav > a, .dropdown-trigger { align-items: center; display: inline-flex; height: 72px; }
.site-nav a {
  color: var(--grey-light);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .42s ease, background .42s ease;
}
.theme-toggle {
  color: var(--grey-light);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .42s ease, background .42s ease;
}
.site-nav a:hover, .theme-toggle:hover { color: var(--white); }
.header-actions { align-items: center; display: flex; gap: 10px; justify-content: flex-end; }
.theme-toggle, .nav-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--grey-light);
  cursor: pointer;
  height: 38px;
  width: 38px;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { background: currentColor; display: block; height: 1px; width: 18px; }
.nav-dropdown { align-items: center; display: flex; height: 72px; position: relative; }
.dropdown-panel {
  background: var(--black);
  border: 1px solid var(--border);
  display: grid;
  gap: 0;
  left: 50%;
  min-width: 330px;
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  position: absolute;
  top: calc(100% - 1px);
  transform: translateX(-50%);
  transition: opacity .42s ease;
}
.nav-dropdown:hover .dropdown-panel, .nav-dropdown:focus-within .dropdown-panel { opacity: 1; pointer-events: auto; transform: translateX(-50%); }
.dropdown-panel a { border-bottom: 1px solid var(--border); padding: 10px 12px; }
.dropdown-panel a:last-child { border-bottom: 0; }

.hero, .page-hero, .detail-hero { border-bottom: 1px solid var(--border); padding: 112px 56px; }
.hero { min-height: calc(100vh - 72px); display: grid; align-items: center; position: relative; overflow: hidden; }
.hero::before { background: linear-gradient(90deg, rgba(10,10,8,.96) 0%, rgba(10,10,8,.84) 42%, rgba(10,10,8,.34) 100%), linear-gradient(180deg, rgba(10,10,8,.20), rgba(10,10,8,.88)), url('assets/calgui-hero.png') center right / cover no-repeat; content: ''; inset: 0; position: absolute; z-index: -2; }
.hero::after { background: rgba(10,10,8,.22); content: ''; inset: 0; position: absolute; z-index: -1; }
html[data-theme='light'] .hero::before { background: linear-gradient(90deg, rgba(245,243,238,.96) 0%, rgba(245,243,238,.82) 42%, rgba(245,243,238,.28) 100%), linear-gradient(180deg, rgba(245,243,238,.08), rgba(245,243,238,.72)), url('assets/calgui-hero.png') center right / cover no-repeat; }
html[data-theme='light'] .hero::after { background: rgba(245,243,238,.14); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .7fr); gap: 72px; max-width: 1180px; width: 100%; }
.section-label {
  align-items: center;
  color: var(--gold);
  display: flex;
  font-family: var(--font-body);
  font-size: 10px;
  gap: 12px;
  letter-spacing: .22em;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.section-label::before { background: var(--gold); content: ''; display: block; height: 1px; width: 28px; }
h1, h2 { font-family: var(--font-display); font-weight: 300; letter-spacing: -.02em; line-height: .98; }
h1 { font-size: clamp(48px, 7vw, 84px); max-width: 820px; }
h2 { font-size: clamp(34px, 4.5vw, 56px); }
h1 em, h2 em { color: var(--gold); font-style: italic; }
h3 { font-family: var(--font-display); font-size: 25px; font-weight: 300; line-height: 1.08; }
.lead { color: var(--grey-light); font-size: 15px; line-height: 1.9; margin-top: 26px; max-width: 620px; }
.lead.small { max-width: 720px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button {
  border: 1px solid var(--border);
  cursor: pointer;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .12em;
  padding: 13px 24px;
  text-transform: uppercase;
  transition: background .42s ease, color .42s ease, border-color .42s ease;
}
.button-primary { background: var(--gold); border-color: var(--gold); color: #0a0a08; }
.button-primary:hover { background: var(--gold); border-color: var(--gold); }
.button-ghost { color: var(--grey-light); }
.button-ghost:hover { border-color: var(--border); color: var(--white); }
.hero-ledger { border: 1px solid var(--border); align-self: center; }
.hero-ledger div { border-bottom: 1px solid var(--border); padding: 26px; }
.hero-ledger div:last-child { border-bottom: 0; }
.hero-ledger span { color: var(--gold); display: block; font-family: var(--font-body); font-size: 10px; letter-spacing: .18em; margin-bottom: 12px; }
.hero-ledger strong { display: block; font-family: var(--font-display); font-size: 25px; font-weight: 300; margin-bottom: 8px; }
.hero-ledger p { color: var(--grey-light); }

.marquee { border-bottom: 1px solid var(--border); overflow: hidden; padding: 14px 0; }
.marquee > div { animation: marquee 48s linear infinite; display: flex; gap: 10px; width: max-content; }
.marquee:hover > div { animation-play-state: paused; }
.marquee span { border: 1px solid var(--border); color: var(--grey-light); flex: 0 0 auto; font-family: var(--font-body); font-size: 10px; letter-spacing: .12em; padding: 7px 12px; text-transform: uppercase; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section { border-bottom: 1px solid var(--border); padding: 96px 56px; }
.split-section { display: grid; grid-template-columns: .9fr 1fr; gap: 72px; }
.copy-column { color: var(--grey-light); display: grid; gap: 18px; max-width: 620px; }
.section-head { align-items: end; display: flex; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-head a { color: var(--gold); font-family: var(--font-body); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.service-grid { background: transparent; display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); }
.service-grid.compact { grid-template-columns: repeat(2, 1fr); }
.service-card { background: var(--black); border: 1px solid var(--border); min-height: 270px; padding: 28px 24px; position: relative; transition: border-color .45s ease; }
.service-card::after { background: var(--gold); bottom: 0; content: ''; height: 2px; left: 0; position: absolute; right: 0; transform: scaleX(0); transform-origin: left; transition: transform .55s ease; }
.service-card:hover { border-color: var(--border); }
.service-card:hover::after { transform: scaleX(1); }
.card-eyebrow { color: var(--gold); font-family: var(--font-body); font-size: 9px; letter-spacing: .2em; margin-bottom: 12px; text-transform: uppercase; }
.service-card p { color: var(--grey-light); font-size: 13px; line-height: 1.8; margin-top: 14px; }
.card-link { bottom: 24px; color: var(--grey); font-family: var(--font-body); font-size: 10px; letter-spacing: .1em; position: absolute; text-transform: uppercase; }
.service-card:hover .card-link { color: var(--grey-light); }
.signature-block { border: 1px solid var(--gold); margin: 96px 56px; overflow: hidden; padding: 48px; position: relative; }
.signature-block::before { background: linear-gradient(135deg, rgba(184,150,90,.07), transparent 58%); content: ''; inset: 0; position: absolute; }
.signature-block > * { position: relative; }
.signature-badge { background: var(--gold-dim); color: var(--gold); display: inline-block; font-family: var(--font-body); font-size: 9px; letter-spacing: .22em; margin-bottom: 18px; padding: 4px 12px; text-transform: uppercase; }
.signature-block p { color: var(--grey-light); max-width: 620px; margin: 18px 0 28px; }
.all-services { margin-bottom: 1px; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: transparent; }
.detail-panel { background: var(--black); border: 1px solid var(--border); padding: 32px; }
.detail-panel.wide { grid-column: 1 / -1; }
.detail-panel p, .detail-panel li { color: var(--grey-light); }
.detail-panel ul { display: grid; gap: 12px; padding-left: 18px; }
.related-section { padding-top: 72px; }
.contact { display: grid; grid-template-columns: .8fr 1fr; gap: 72px; }
.contact p { color: var(--grey-light); max-width: 560px; }
.contact-form { border: 1px solid var(--border); display: grid; gap: 14px; padding: 26px; }
.contact-form label { color: var(--gold); display: grid; font-family: var(--font-body); font-size: 12px; font-weight: 400; gap: 8px; letter-spacing: .04em; text-transform: uppercase; }
.contact-form input, .contact-form textarea, .contact-form select { background: #0a0a08; border: 1px solid var(--border); color: #f5f3ee; font-family: var(--font-body); font-size: 13px; font-weight: 300; letter-spacing: 0; min-height: 42px; outline: 0; padding: 10px 12px; }
.contact-form select { color-scheme: dark; }
.contact-form select option { background: #0a0a08; color: #f5f3ee; }
.contact-form textarea { min-height: 120px; resize: vertical; }
html[data-theme='light'] .contact-form input, html[data-theme='light'] .contact-form textarea, html[data-theme='light'] .contact-form select { background: #f5f3ee; color: var(--gold); }
html[data-theme='light'] .contact-form select { color-scheme: light; }
html[data-theme='light'] .contact-form select option { background: #f5f3ee; color: var(--gold); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--grey-light); }
.contact-form button.button, .contact-form button[type="submit"] { font-family: var(--font-body) !important; font-size: 13px; font-weight: 300; letter-spacing: 0 !important; text-transform: none !important; }
.site-footer { align-items: center; color: var(--grey); display: flex; font-family: var(--font-body); font-size: 13px; font-weight: 300; justify-content: space-between; letter-spacing: 0; padding: 30px 56px; text-transform: none; }
.footer-brand { color: var(--white); font-family: var(--font-display); font-size: 24px; font-weight: 300; letter-spacing: -.02em; text-transform: none; transition: color .42s ease; }
.footer-brand:hover, .footer-meta a:hover { color: var(--white); }
.footer-meta { display: inline-flex; gap: 10px; align-items: center; }
.footer-meta a { color: var(--grey-light); transition: color .42s ease; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.reveal.visible, .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; scroll-behavior: auto !important; transition-duration: 1ms !important; } }
@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 24px; }
  .site-nav { background: var(--black); border-bottom: 1px solid var(--border); display: none; flex-direction: column; align-items: stretch; gap: 0; grid-column: 1 / -1; left: 0; padding: 12px 24px 20px; position: absolute; right: 0; top: 72px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { border-bottom: 1px solid var(--border); height: auto; padding: 12px 0; }
  .nav-dropdown { align-items: stretch; display: block; height: auto; }
  .dropdown-trigger { height: auto; }
  .nav-toggle { display: flex; }
  .dropdown-panel { border: 0; display: grid; left: auto; min-width: 0; opacity: 1; padding: 0 0 0 14px; pointer-events: auto; position: static; transform: none; }
  .hero, .page-hero, .detail-hero, .section { padding-left: 24px; padding-right: 24px; }
  .hero-grid, .split-section, .contact, .detail-layout { grid-template-columns: 1fr; gap: 36px; }
  .service-grid, .service-grid.compact { grid-template-columns: 1fr 1fr; }
  .signature-block { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 620px) {
  h1 { font-size: 48px; }
  h2 { font-size: 34px; }
  .hero, .page-hero, .detail-hero, .section { padding-top: 72px; padding-bottom: 72px; }
  .service-grid, .service-grid.compact { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 10px; padding-left: 24px; padding-right: 24px; }
  .button { width: 100%; text-align: center; }
}



