/* ============================================================
   TOMAHAWK CAPITAL — A Private Family Office
   Design system: ink navy / stone / copper
   Type: Cormorant Garamond (display) + Inter (body)
   ============================================================ */

:root {
  /* Heritage palette — charcoal / antique gold / stone / ivory */
  --ink: #1C1C1C;
  --ink-2: #26231F;
  --ink-3: #322E28;
  --stone: #DCCFB9;
  --paper: #F7F4ED;
  --copper: #A8824B;      /* deep antique gold, for accents on light grounds */
  --copper-2: #C9A878;    /* board antique gold, for dark grounds */
  --text: #2B2824;
  --muted: #6B6459;
  --stone-text: rgba(247, 244, 237, 0.78);
  --line: rgba(28, 28, 28, 0.14);
  --line-dark: rgba(247, 244, 237, 0.18);
  --max: 1180px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(44px, 6.2vw, 76px); }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: 26px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 22px;
}

.on-dark .eyebrow { color: var(--copper-2); }

/* Brand photography — editorial grade to unify rendered imagery */
.brand-photo {
  filter: saturate(0.82) contrast(1.05) brightness(0.97);
}

.split-media.branded::after,
.detail-media.branded { position: relative; }

.split-media.branded::after,
.detail-media.branded::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.06), rgba(28, 28, 28, 0.2));
  pointer-events: none;
}

/* Strategy tiles — quadrant crops of the four-discipline board */
.card-media {
  aspect-ratio: 16 / 9;
  background-image: url('brand/strategy-tiles.webp');
  background-size: 200.6%;
  background-repeat: no-repeat;
  margin-bottom: 24px;
  filter: saturate(0.9) contrast(1.03);
}

.card-media.re { background-position: 0.2% 0.4%; }
.card-media.vc { background-position: 99.8% 0.4%; }
.card-media.pe { background-position: 0.2% 99.6%; }

/* Long/Short uses its own photo, with a live label sized in card-width units
   to match the lettering baked into the other three board tiles */
.card-media.ls-desk {
  position: relative;
  container-type: inline-size;
  background-image: url('brand/strategy-long-short-desk.jpg');
  background-size: cover;
  background-position: 40% 50%;
}

.card-label {
  position: absolute;
  left: 9.11cqw;
  top: 7.13cqw;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 5.24cqw;
  line-height: 1.01;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 244, 237, 0.95);
}

.card-label::after {
  content: "";
  display: block;
  width: 13.96cqw;
  height: max(1px, 0.48cqw);
  margin-top: 2.37cqw;
  background: var(--copper-2);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Signage crop from the brand board (glass-signage cell) */
.split-media.sig-crop {
  aspect-ratio: 317 / 194 !important;
  background-image: url('brand/brand-board.webp');
  background-size: 420%;
  background-position: 66.3% 89.7%;
  filter: saturate(0.9) contrast(1.03);
}

.lede {
  font-size: 19px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 640px;
}

.serif-statement {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.35;
  color: var(--ink);
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  position: fixed;
  padding: 14px 0;
  background: rgba(24, 22, 19, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  --brand-size: 21px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--stone);
}

.brand-words { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--brand-size);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-2);
}

.brand-sub {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--copper-2);
  margin-top: 2px;
  /* Starts the C under the T's stem: the stem sits 0.275em into Cormorant's T,
     and Inter's C has 0.05em of its own side bearing */
  margin-left: calc(var(--brand-size) * 0.275 - 0.05em);
}

.site-nav { display: flex; align-items: center; gap: 36px; }

.site-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-text);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover { color: var(--stone); }

.site-nav a.active {
  color: var(--stone);
  border-bottom-color: var(--copper-2);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--stone);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--stone);
  background: var(--ink);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(22, 20, 17, 0.55) 0%,
    rgba(22, 20, 17, 0.35) 45%,
    rgba(22, 20, 17, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%; /* heroes are flex containers — without this the wrap shrink-wraps and auto-centres */
  padding: 140px 32px 96px;
}

/* Keep headline measure comfortable while staying on the page grid */
.hero-content h1 { max-width: 920px; }

.hero h1 { color: var(--stone); margin: 0 0 26px; }

.hero .lede { color: var(--stone-text); font-size: 20px; max-width: 580px; }

.hero .eyebrow { color: var(--copper-2); }

.hero-actions { margin-top: 42px; display: flex; gap: 36px; flex-wrap: wrap; align-items: center; }

/* Home hero — image carries the wordmark; script aligns it to the grid */
.hero-home-media {
  background-color: #0D1317;
  background-image: url('brand/homepage-left.jpg?v=2');
  background-position: left center;
}

.hero-home-media::after {
  background: linear-gradient(180deg,
    rgba(13, 19, 23, 0.35) 0%,
    rgba(13, 19, 23, 0) 20%,
    rgba(13, 19, 23, 0) 55%,
    rgba(13, 19, 23, 0.72) 100%);
}

/* Subpage hero whose image carries its own headline — sized to show it whole */
.page-hero.baked { min-height: min(88vh, 50vw); }

.hero-partner-media {
  background-color: #1E1813;
  background-image: url('brand/partnership-hero.jpg');
  background-position: left top;
}

.hero-partner-media::after {
  background: linear-gradient(180deg,
    rgba(22, 18, 14, 0.6) 0%,
    rgba(22, 18, 14, 0) 24%,
    rgba(22, 18, 14, 0) 75%,
    rgba(22, 18, 14, 0.3) 100%);
}

.hero-about-media {
  background-color: #585659;
  background-image: url('brand/about-hero-clean.jpg');
  background-position: left top;
}

.hero-about-media::after {
  background: linear-gradient(180deg,
    rgba(28, 26, 27, 0.55) 0%,
    rgba(28, 26, 27, 0) 22%,
    rgba(28, 26, 27, 0) 78%,
    rgba(28, 26, 27, 0.25) 100%);
}

/* Live line set over a hero image in place of removed lettering; baked-hero.js positions and sizes it */
.baked-overlay {
  position: absolute;
  z-index: 2;
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.64;
  color: rgba(250, 247, 242, 0.95);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.25);
}

/* Reflected copy of the image's left edge, sized by baked-hero.js */
.hero-media.mirror-fill::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--mirror-w, 0px);
  background-image: var(--mirror-src);
  background-size: var(--mirror-size);
  background-position: var(--mirror-pos);
  background-repeat: no-repeat;
  transform: scaleX(-1);
}

@media (max-width: 860px) {
  .page-hero.baked { min-height: 60vh; }
}

@media (max-width: 640px) {
  .page-hero.baked { min-height: 440px; }
}

/* Soft-focus hero; the scale pushes the blur's faded edges outside the frame */
.hero-media.blurred {
  filter: blur(3px) saturate(0.9);
  transform: scale(1.05);
}

/* Slim page hero (subpages) */

.page-hero {
  position: relative;
  min-height: 54vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: var(--stone);
  overflow: hidden;
}

.page-hero .hero-content { padding: 150px 32px 70px; }

.page-hero h1 { color: var(--stone); font-size: clamp(38px, 5vw, 62px); margin-bottom: 18px; }

.page-hero .lede { color: var(--stone-text); }

/* ---------- Links & buttons ---------- */

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  transition: gap 0.2s ease;
}

.arrow-link::after {
  content: "\2192";
  font-size: 16px;
  transition: transform 0.2s ease;
}

.arrow-link:hover::after { transform: translateX(5px); }

.hero .arrow-link, .on-dark .arrow-link { color: var(--copper-2); }

.btn-solid {
  display: inline-block;
  padding: 15px 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  background: var(--copper);
  border: 1px solid var(--copper);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-solid:hover { background: var(--copper-2); border-color: var(--copper-2); }

.btn-outline {
  display: inline-block;
  padding: 15px 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  background: transparent;
  border: 1px solid rgba(247, 244, 237, 0.5);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-outline:hover { border-color: var(--paper); background: rgba(247, 244, 237, 0.08); }

/* ---------- Sections ---------- */

.section { padding: 110px 0; }

.section.stone { background: var(--stone); }

.section.on-dark { background: var(--ink); color: var(--stone-text); }

.section.on-dark h2, .section.on-dark h3, .section.on-dark .serif-statement { color: var(--stone); }

.section-head { max-width: 720px; margin-bottom: 64px; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { margin-bottom: 20px; }

/* Statement band */

.statement .serif-statement { max-width: 880px; }

.statement .serif-statement em { color: var(--copper); font-style: italic; }

.statement p.support {
  margin-top: 28px;
  font-size: 17px;
  color: var(--muted);
  max-width: 680px;
}

/* Three structural advantages under a statement */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}

.pillar { border-top: 2px solid var(--copper); padding-top: 24px; }

.pillar h3 { font-size: 23px; margin-bottom: 12px; }

.pillar p { font-size: 15px; color: var(--muted); }

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; gap: 36px; margin-top: 48px; }
}

/* ---------- Strategy cards ---------- */

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.strategy-card {
  padding: 44px 32px 52px 0;
  border-right: 1px solid var(--line);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  transition: background 0.25s ease;
}

.strategy-card:first-child { padding-left: 0; }
.strategy-card:last-child { border-right: 0; }

.strategy-card .icon { display: block; width: 44px; height: 44px; margin-bottom: 26px; color: var(--copper); }
.strategy-card .icon svg { width: 100%; height: 100%; }

.strategy-card h3 { font-size: 24px; margin-bottom: 14px; }

.strategy-card p { font-size: 15px; color: var(--muted); flex: 1; margin-bottom: 26px; }

/* ---------- Split / media sections ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split.reverse .split-media { order: 2; }

.split-media {
  position: relative;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
}

.split-media img { width: 100%; height: 100%; object-fit: cover; }

.split-media::before {
  content: "";
  position: absolute;
  top: 22px; left: -22px;
  width: 100%; height: 100%;
  border: 1px solid var(--copper);
  opacity: 0.5;
  z-index: -1;
}

.split.reverse .split-media::before { left: auto; right: -22px; }

.split-copy h2 { margin-bottom: 22px; }

.split-copy p { color: var(--muted); margin-bottom: 18px; }

.split-copy .arrow-link { margin-top: 12px; }

/* Sub-blocks inside splits */

.mini-blocks { margin-top: 34px; display: grid; gap: 26px; }

.mini-block { border-left: 2px solid var(--copper); padding-left: 22px; }

.mini-block h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.mini-block p { font-size: 15px; margin-bottom: 0; }

.on-dark .mini-block h4 { color: var(--stone); }

/* ---------- Principles strip ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.principle .num {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--copper-2);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 16px;
}

.principle h3 { font-size: 22px; margin-bottom: 12px; }

.principle p { font-size: 15px; color: var(--stone-text); }

/* ---------- Strategy detail sections ---------- */

.detail { padding: 96px 0; border-top: 1px solid var(--line); }
.detail:first-of-type { border-top: 0; }

/* Heading in row 1; body text and image share row 2, so the image runs
   exactly from the first paragraph to the last bullet */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 72px;
  align-items: stretch;
}

.detail-head { grid-column: 1; grid-row: 1; }
.detail-copy { grid-column: 1; grid-row: 2; }
.detail-media { grid-column: 2; grid-row: 2; }
.detail-grid.flip .detail-head,
.detail-grid.flip .detail-copy { grid-column: 2; }
.detail-grid.flip .detail-media { grid-column: 1; }

/* Absolutely placed so the text alone sets the row height */
.detail-media { position: relative; overflow: hidden; }
.detail-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.detail-head .icon { display: block; width: 46px; height: 46px; color: var(--copper); margin-bottom: 24px; }
.detail-head .icon svg { width: 100%; height: 100%; }

.detail-head h2 { margin-bottom: 20px; }
.detail-copy p { color: var(--muted); margin-bottom: 16px; }

.detail-list { list-style: none; margin-top: 26px; }

.detail-list li {
  padding: 13px 0 13px 30px;
  border-top: 1px solid var(--line);
  position: relative;
  font-size: 15px;
  color: var(--text);
}

.detail-list li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--copper);
}

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  counter-reset: step;
}

.step { border-top: 2px solid var(--copper); padding-top: 24px; }

.step .num {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.12em;
  color: var(--copper);
  display: block;
  margin-bottom: 14px;
}

.step h3 { font-size: 21px; margin-bottom: 10px; }

.step p { font-size: 15px; color: var(--muted); }

/* ---------- Quote ---------- */

.quote {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--stone);
}

.quote cite {
  display: block;
  margin-top: 28px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper-2);
}

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }

.cta-band h2 { margin-bottom: 20px; }

.cta-band p { color: var(--stone-text); max-width: 560px; margin: 0 auto 40px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-item { border-top: 1px solid var(--line); padding: 26px 0; }

.contact-item .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 8px;
}

.contact-item .value {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
}

.contact-item .value a:hover { color: var(--copper); }

.contact-note { font-size: 14px; color: var(--muted); margin-top: 34px; max-width: 480px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--stone-text);
  padding: 72px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand { max-width: 340px; }

.footer-brand .brand { margin-bottom: 18px; }

.footer-brand p { font-size: 14px; }

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--copper-2);
  margin-top: 10px;
}

.footer-nav { display: flex; gap: 64px; flex-wrap: wrap; }

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--stone-text);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--copper-2); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(247, 244, 237, 0.45);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .strategy-grid { grid-template-columns: 1fr 1fr; }
  .strategy-card { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
  .strategy-card:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 32px; }
  .strategy-card:nth-child(even) { padding-left: 32px; }
  .principles { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(24, 22, 19, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 90;
  }
  .site-nav.open { opacity: 1; pointer-events: auto; }
  .site-nav a { font-size: 16px; }
  .nav-toggle { display: block; position: relative; z-index: 95; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .split, .split.reverse { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse .split-media { order: 0; }
  .split-media { aspect-ratio: 4 / 3; }
  .split-media::before { display: none; }
  .detail-grid, .detail-grid.flip { grid-template-columns: 1fr; }
  .detail-head, .detail-copy, .detail-media,
  .detail-grid.flip .detail-head,
  .detail-grid.flip .detail-copy,
  .detail-grid.flip .detail-media { grid-column: 1; grid-row: auto; }
  .detail-media { order: -1; aspect-ratio: 4 / 3; margin-bottom: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .section { padding: 80px 0; }
  .hero-content { padding: 130px 32px 72px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  .hero-content, .page-hero .hero-content { padding-left: 22px; padding-right: 22px; }
  .strategy-grid { grid-template-columns: 1fr; }
  .strategy-card, .strategy-card:nth-child(odd), .strategy-card:nth-child(even) {
    border-right: 0; padding-left: 0; padding-right: 0;
  }
  .principles, .steps { grid-template-columns: 1fr; gap: 36px; }
  .brand { --brand-size: 17px; }
  .brand-name { letter-spacing: 0.18em; }
  .footer-nav { gap: 40px; }
}
