/* Global Capital Consulting — design tokens + layout
   Direction: "engraved ledger" — paper, ink, one ledger-green accent.
   Refs (Mobbin): Titan hairline grid + engraved vignettes, Origin serif display. */

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6da;
  --card: #fbfaf6;
  --ink: #15161a;
  --ink-2: #4b4a45;
  --ink-3: #7a776e;
  --line: rgba(21, 22, 26, 0.12);
  --line-strong: rgba(21, 22, 26, 0.22);
  --green: #1d4a37;
  --green-ink: #0f2a1f;
  --brass: #a8834a;
  --night: #0e1311;
  --night-2: #161d1a;
  --on-night: #ecebe4;
  --on-night-2: #a9aea6;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--green); color: var(--paper); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ---------- framed column (Titan-style hairline rails) ---------- */
.frame {
  max-width: var(--wrap);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.pad { padding-left: var(--gutter); padding-right: var(--gutter); }
.rule { border-top: 1px solid var(--line); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

h1, h2, h3 { font-weight: 400; margin: 0; letter-spacing: -0.01em; }
.display {
  font-family: var(--serif);
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.h3 { font-family: var(--sans); font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
em, .it { font-style: italic; }
.muted { color: var(--ink-3); }
.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 46ch; margin: 22px 0 0; }
.small { font-size: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  padding: 14px 20px; border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--green); border-color: var(--green); }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.btn--light:hover { background: var(--brass); border-color: var(--brass); color: var(--night); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.link {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link:hover { color: var(--green); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 22px; line-height: 1; letter-spacing: -0.01em; }
.brand-name small {
  display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 4px;
}
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.nav-links a {
  display: block; padding: 8px 16px; border-radius: 999px; text-decoration: none; font-size: 14px; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--card); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-family: var(--mono); font-size: 13px; text-decoration: none; color: var(--ink-2); }
.nav-phone:hover { color: var(--green); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .3s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero (split) ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
}
.hero > * { padding: clamp(48px, 8vw, 110px) var(--gutter); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art img { mix-blend-mode: multiply; width: 100%; max-width: 620px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 26px var(--gutter); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat dt { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.stat dd { margin: 0; font-family: var(--mono); font-size: 17px; letter-spacing: -0.01em; }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(64px, 9vw, 120px) var(--gutter); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 48ch; justify-self: end; }

/* practice list (Titan "services we offer" rows) */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.practice {
  position: relative; padding: 32px 28px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none; display: flex; flex-direction: column; gap: 14px; min-height: 250px;
  transition: background .3s var(--ease);
}
.practice:hover { background: var(--card); }
.practice-num { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.08em; }
.practice p { margin: 0; color: var(--ink-2); font-size: 15px; }
.practice .more { margin-top: auto; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
svg.ico { width: 28px; height: 28px; color: var(--green); }

/* dark band with photo */
.band {
  position: relative; overflow: hidden; color: var(--on-night); background: var(--night);
  isolation: isolate;
}
.band-bg { position: absolute; inset: 0; z-index: -1; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.band-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,19,17,.92) 0%, rgba(14,19,17,.66) 48%, rgba(14,19,17,.2) 100%);
}
.band .eyebrow { color: var(--on-night-2); }
.band .eyebrow::before { background: var(--brass); }
.band .lede { color: var(--on-night-2); }
.band-inner { padding: clamp(80px, 12vw, 160px) var(--gutter); max-width: 760px; }
.quote { font-family: var(--serif); font-size: clamp(32px, 4vw, 54px); line-height: 1.08; letter-spacing: -0.015em; }

/* split block: image + copy */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > * { padding: clamp(56px, 8vw, 100px) var(--gutter); }
.split > :first-child { border-right: 1px solid var(--line); }
.split-art { display: flex; align-items: center; justify-content: center; }
.split-art img { mix-blend-mode: multiply; max-width: 460px; width: 100%; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: 32px 26px 36px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step-n { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--green); margin-bottom: 26px; }
.step p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }

/* list rows (industries / who we serve) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li {
  display: grid; grid-template-columns: 70px 1fr 1.4fr; gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.rows .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.rows h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.rows p { margin: 0; color: var(--ink-2); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card li { font-size: 14.5px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-2); }

/* CTA panel */
.cta-panel {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  border: 1px solid var(--line); border-radius: 20px; background: var(--card); overflow: hidden;
}
.cta-panel > div { padding: clamp(36px, 6vw, 72px); }
.cta-panel .art { border-left: 1px solid var(--line); display: flex; justify-content: center; }
.cta-panel .art img { mix-blend-mode: multiply; max-width: 340px; width: 100%; }

/* page hero (inner pages) */
.page-hero { padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(48px, 6vw, 80px); }
.page-hero .display { max-width: 15ch; }
.page-hero--dark { color: var(--on-night); }
.page-hero--dark .lede { color: var(--on-night-2); }

/* service detail blocks */
.svc { display: grid; grid-template-columns: 320px 1fr; gap: 48px; padding: 56px var(--gutter); border-top: 1px solid var(--line); }
.svc-side { position: sticky; top: 100px; align-self: start; }
.svc-side .practice-num { display: block; margin-bottom: 14px; }
.svc-body p { margin: 0 0 22px; color: var(--ink-2); max-width: 62ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: 14px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); }

/* values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.value { padding: 36px var(--gutter); border-right: 1px solid var(--line); }
.value:last-child { border-right: 0; }
.value h3 { font-family: var(--serif); font-size: 30px; margin-bottom: 10px; }
.value p { margin: 0; color: var(--ink-2); }

/* founder */
.founder { display: grid; grid-template-columns: .8fr 1.2fr; gap: 0; }
.founder > * { padding: clamp(48px, 7vw, 90px) var(--gutter); }
.founder > :first-child { border-right: 1px solid var(--line); }
.monogram {
  aspect-ratio: 4/5; border-radius: var(--radius); background: var(--night); color: var(--on-night);
  display: flex; flex-direction: column; justify-content: space-between; padding: 28px; position: relative; overflow: hidden;
}
.monogram .big { font-family: var(--serif); font-size: clamp(90px, 12vw, 160px); line-height: .9; }
.monogram .role { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); }
.monogram img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.monogram > * { position: relative; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 20px;
  font-size: 18px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--green); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--ink-2); max-width: 70ch; }

/* contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; }
.contact > * { padding: clamp(48px, 7vw, 90px) var(--gutter); }
.contact > :first-child { border-right: 1px solid var(--line); }
.nap { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.nap li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.nap .k { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.nap a { text-decoration: none; }
.nap a:hover { color: var(--green); }

.form { display: grid; gap: 18px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--card);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);
}
.form-note { font-size: 13px; color: var(--ink-3); margin: 0; }
.form-status { font-size: 14px; color: var(--green); min-height: 1.4em; margin: 0; }

.map { border-top: 1px solid var(--line); line-height: 0; }
.map iframe { width: 100%; height: 380px; border: 0; filter: grayscale(1) contrast(1.05); }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--on-night); }
.site-footer .frame { border-color: rgba(255,255,255,.08); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 72px var(--gutter) 56px; }
.foot-top h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-2); font-weight: 400; margin: 0 0 18px; }
.foot-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.foot-top a { text-decoration: none; color: var(--on-night); opacity: .86; }
.foot-top a:hover { opacity: 1; color: var(--brass); }
.foot-brand .brand-name small { color: var(--on-night-2); }
.foot-brand p { color: var(--on-night-2); max-width: 34ch; font-size: 15px; margin: 18px 0 0; }
.foot-word {
  font-family: var(--serif); font-size: clamp(56px, 11.5vw, 156px); line-height: .9; letter-spacing: -0.03em;
  padding: 0 var(--gutter) 24px; color: rgba(236,235,228,.1); white-space: nowrap; overflow: hidden;
}
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 22px var(--gutter); border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px; color: var(--on-night-2);
}
.disclaimer { padding: 0 var(--gutter) 28px; font-size: 12.5px; color: rgba(169,174,166,.75); max-width: 90ch; }


/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 8px 12px; }
  .nav-phone { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .foot-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    border-radius: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links a[aria-current="page"] { background: transparent; color: var(--green); }
  .nav-cta .btn { display: none; }

  .hero, .split, .founder, .contact, .cta-panel { grid-template-columns: 1fr; }
  .hero-copy, .split > :first-child, .founder > :first-child, .contact > :first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-art { padding-top: 32px; }
  .cta-panel .art { border-left: 0; border-top: 1px solid var(--line); }
  .split--flip > :first-child { order: 2; border-bottom: 0; border-top: 1px solid var(--line); }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-head p { justify-self: start; }
  .practice-grid, .cards, .values { grid-template-columns: 1fr; }
  .value { border-right: 0; border-bottom: 1px solid var(--line); }
  .svc { grid-template-columns: 1fr; gap: 20px; padding: 44px var(--gutter); }
  .svc-side { position: static; }
  .rows li { grid-template-columns: 40px 1fr; }
  .rows li p { grid-column: 2; }
  .band-bg::after { background: linear-gradient(180deg, rgba(14,19,17,.55) 0%, rgba(14,19,17,.9) 100%); }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .form .row2 { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .nap li { grid-template-columns: 1fr; gap: 4px; }
  .brand-name { font-size: 19px; }
  .btn { padding: 14px 18px; }
}

/* engraving vignette: fades the paper-tone edges of the AI etchings into the page */
.hero-art img, .split-art img, .cta-panel .art img {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
/* compact rows inside split columns */
.split .rows li { grid-template-columns: 34px 1fr; gap: 6px 18px; }
.split .rows li p { grid-column: 2; }
.page-hero--dark .tags li { background: rgba(255,255,255,.04); border-color: rgba(236,235,228,.25); padding: 0; }
.page-hero--dark .tags a { display: block; padding: 8px 14px; color: var(--on-night); }
.page-hero--dark .tags li:hover { border-color: var(--brass); }
@media (max-width: 900px) { .monogram { aspect-ratio: 16/10; } }

/* ---------- logo ---------- */
img.brand-mark { width: 40px; height: 40px; border-radius: 10px; }
.foot-lockup { gap: 16px; }
.foot-emblem { width: 88px; height: 88px; flex: none; filter: invert(1) hue-rotate(180deg) brightness(1.05); }
.monogram { justify-content: space-between; }
.monogram .emblem {
  position: relative; inset: auto; width: 74%; height: auto; max-width: 300px; opacity: 1; object-fit: contain;
  align-self: center; filter: invert(1) hue-rotate(180deg) brightness(1.05);
}
.monogram .big { font-size: clamp(30px, 3vw, 40px); line-height: 1; }
@media (max-width: 900px) { .monogram { aspect-ratio: auto; gap: 18px; } .monogram .emblem { width: 52%; } }
