/* Galena Capital — static site styles */
:root {
  /* Dark theme. Names kept from the light build: --charcoal is now the main text colour. */
  --charcoal: #f1f2f3;
  --muted: #b9bcc0;
  --grey: #b9bcc0;
  --navy: #5f8fdc;          /* single accent (brand dark-mode blue) */
  --on-accent: #14171b;     /* text on accent fills, 5.5:1 */
  --dark: #1c1f24;
  --dark-grey: #b9bcc0;
  --dark-blue: #5f8fdc;
  --dark-text: #f1f2f3;
  --paper: #1c1f24;
  --paper-alt: #22262c;
  --panel: #262a31;
  --rule: #3d424a;
  --rule-dark: #3d424a;
  --font-head: "Jost", "Century Gothic", "Futura", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1160px;
  --header-h: 84px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--on-accent); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Type */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 300; line-height: 1.15; margin: 0 0 .6em; letter-spacing: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.55rem; font-weight: 400; }
h4 { font-size: 1.25rem; font-weight: 400; margin-bottom: .4em; }
p { margin: 0 0 1.1em; }
.label {
  font-family: var(--font-head); font-weight: 400;
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.4rem;
}
.dark .label { color: var(--dark-grey); }
.lead { font-size: 1.2rem; max-width: 34em; color: var(--muted); }
.lead-sm { font-size: 1.15rem; color: var(--charcoal); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: #1c1f24;
  border-bottom: 1px solid var(--rule);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: block; line-height: 0; }
.brand-full { width: 250px; margin-left: -22px; }
.brand-mark { display: none; width: 44px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; align-items: center; }
.site-nav a {
  font-family: var(--font-head); font-size: .8rem; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; color: var(--charcoal); padding: 8px 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--charcoal); }
.site-nav a:focus-visible { outline-offset: 4px; }
.site-nav .nav-cta { border: 1px solid var(--navy); color: var(--navy); padding: 9px 18px; }
.site-nav .nav-cta:hover { background: var(--navy); color: var(--on-accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; width: 46px; height: 46px; }
.nav-toggle span { display: block; height: 2px; background: var(--charcoal); margin: 6px 4px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.btn {
  display: inline-block; font-family: var(--font-head); font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; padding: 16px 28px; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--navy); color: var(--on-accent); }
.btn-primary:hover { background: #7aa3e6; }
.btn-ghost { border-color: var(--dark-grey); color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--dark); border-color: var(--charcoal); }
.btn-light { background: var(--navy); color: var(--on-accent); margin-top: 1.6rem; }
.btn-light:hover { background: #7aa3e6; }
.dark .btn-light, .dark .btn-light:hover { color: var(--on-accent); }


/* ===== Layout, sections (v7: varied layouts, icons, discreet photo) ===== */
:root {
  --sq-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='14' height='14' fill='%23b9bcc0'/%3E%3Crect x='20' y='20' width='14' height='14' fill='%23b9bcc0'/%3E%3C/svg%3E");
}
section { position: relative; overflow: hidden; overflow: clip; }
.band-base { background: var(--paper); }
.band-alt { background: var(--paper-alt); }

/* Faint square-grid pattern (pitch matches the logo grid) */
.pattern-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(185,188,192,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185,188,192,.03) 1px, transparent 1px);
  background-size: 114px 114px; background-position: 0 -1px;
  -webkit-mask-image: linear-gradient(100deg, transparent 10%, #000 90%);
  mask-image: linear-gradient(100deg, transparent 10%, #000 90%);
}
.pattern-bg > * { position: relative; }

/* Stepped square divider at the top of a band */
.sq-edge { position: absolute; left: 0; right: 0; top: 0; height: 64px; pointer-events: none; opacity: .09;
  background-image: var(--sq-tile); background-size: 40px 40px; background-position: 4px 0;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
  mask-image: linear-gradient(to bottom, #000, transparent 90%); }

/* Large faint section numerals (decorative) */
.sec-num { position: absolute; right: max(18px, calc((100vw - 1160px) / 2)); top: 30px; z-index: 0; user-select: none;
  font-family: var(--font-head); font-weight: 300; font-size: clamp(4.5rem, 9vw, 8rem); line-height: .8; letter-spacing: -.02em;
  color: rgba(185,188,192,.04); }
.section .wrap { position: relative; z-index: 1; }

/* Labels with square accent */
.label::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--navy); margin-right: 14px; vertical-align: 1px; }
.sub-label { margin: clamp(56px, 7vw, 88px) 0 1.6rem; display: flex; align-items: center; gap: 0; }
.sub-label::after { content: ""; flex: 1; height: 1px; background: var(--rule); margin-left: 22px; }
.hero .label::before, .site-nav .label::before { display: none; }

/* Hero + discreet mining photograph (greyscale, ~10% opacity, faded at the edges) */
.hero { padding: clamp(64px, 9vw, 120px) 0 clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--rule); background: var(--paper); }
.hero-photo { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%), linear-gradient(90deg, rgba(0,0,0,.35) 0%, #000 65%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%), linear-gradient(90deg, rgba(0,0,0,.35) 0%, #000 65%);
  mask-composite: intersect; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; opacity: .1; display: block; filter: grayscale(1); }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.hero-art { justify-self: end; width: 100%; max-width: 420px; }
.grid-art { width: 100%; height: auto; overflow: visible; }
.grid-art .carve { animation: carve 1.4s .4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes carve { from { transform: translateX(-50px); } to { transform: translateX(0); } }
.hero h1 { position: relative; }
.hero h1::before { content: ""; display: block; width: 56px; height: 3px; background: var(--navy); margin-bottom: 30px; }

/* Sections */
.section { padding: clamp(72px, 9vw, 128px) 0; border-top: 0; }
.two-col { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; }
.col-head h2 { margin-bottom: 0; }
.col-body { max-width: 44rem; }
.section-head { max-width: 46rem; margin-bottom: 3.4rem; }
.section-head h2 { margin-bottom: .5em; }
.lead-sm { color: var(--charcoal); }

/* Icon slot: assets/icons/<name>.svg shown when present, otherwise the square glyph */
.icon { --s: 44px; display: inline-block; flex: none; width: var(--s); height: var(--s); line-height: 0; position: relative; }
.icon img { display: none; width: 100%; height: 100%; object-fit: contain; }
.icon .glyph { display: block; width: 100%; height: 100%; }
.icon.has-img img { display: block; }
.icon.has-img .glyph { display: none; }

/* About: three simple columns with thin vertical rules */
.cols3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.cols3 li { padding: 4px 40px 4px; border-left: 1px solid var(--rule); }
.cols3 li:first-child { padding-left: 0; border-left: 0; }
.cols3 li:last-child { padding-right: 0; }
.cols3 .icon { margin-bottom: 22px; }
.cols3 h4 { margin-bottom: .5em; }
.cols3 p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.65; }

/* Sellers: sticky intro beside a numbered vertical timeline */
.timeline-wrap { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.timeline-wrap .section-head { position: sticky; top: calc(var(--header-h) + 36px); margin-bottom: 0; }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.timeline li { position: relative; padding: 0 0 40px 84px; min-height: 52px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 58px; bottom: 6px; width: 1px; background: var(--rule); }
.timeline .num { position: absolute; left: 0; top: 0; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #5b616a; background: var(--paper);
  font-family: var(--font-head); font-weight: 400; font-size: 1.1rem; letter-spacing: .04em; color: var(--charcoal); }
.timeline li:last-child .num { background: var(--navy); border-color: var(--navy); color: var(--on-accent); }
.timeline h4 { margin: .3em 0 .45em; }
.timeline p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.65; max-width: 34rem; }

/* Sellers: compact 3x2 grid, no card backgrounds */
.gets3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(28px, 4vw, 56px); }
.gets3 li { padding: 24px 0 34px; border-top: 1px solid var(--rule); }
.get-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.get-head .icon { --s: 40px; }
.get-head h4 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.gets3 p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.65; }


/* Contact */
.contact .two-col { align-items: start; }
.contact-list { margin: 2.2rem 0 0; }
.contact-list div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); }
.contact-list div:last-child { border-bottom: 1px solid var(--rule); }
.contact-list dt { font-family: var(--font-head); font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--dark-grey); padding-top: 4px; }
.contact-list dd { margin: 0; font-family: var(--font-head); font-size: 1.5rem; font-weight: 300; }
.contact-list a { color: var(--charcoal); text-decoration-color: var(--navy); }
.contact .btn { margin-top: 1.8rem; }

/* Footer */
.site-footer { background: #1c1f24; color: var(--dark-grey); border-top: 1px solid var(--rule); padding: 40px 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { width: 220px; margin-left: -18px; }
.footer-inner p { margin: 0; }
.footer-text { text-align: right; }

/* Scroll reveal (only when JS is running; no hiding otherwise) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .cols3 .reveal:nth-child(3n+2), .js .gets3 .reveal:nth-child(3n+2) { transition-delay: .08s; }
.js .cols3 .reveal:nth-child(3n+3), .js .gets3 .reveal:nth-child(3n+3) { transition-delay: .16s; }

/* Responsive */
@media (max-width: 1000px) {
  .cols3 li { padding-left: 26px; padding-right: 26px; }
  .timeline-wrap { grid-template-columns: 1fr; }
  .timeline-wrap .section-head { position: static; margin-bottom: 3rem; }
}
@media (max-width: 820px) {
  :root { --header-h: 68px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { justify-self: start; max-width: 150px; order: -1; }
  .hero { padding: 40px 0 56px; }
        .two-col { grid-template-columns: 1fr; gap: 24px; }
  .cols3 { grid-template-columns: 1fr; }
  .cols3 li, .cols3 li:first-child, .cols3 li:last-child { padding: 28px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .cols3 li:first-child { border-top: 0; padding-top: 4px; }
  .sec-num { top: 18px; }
  .brand-full { display: block; width: 210px; margin-left: -10px; }
  .brand-mark { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 18px 30px rgba(0,0,0,.45);
    display: none; padding: 8px 28px 20px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--rule); }
  .site-nav li:last-child { border: 0; padding-top: 14px; }
  .site-nav a { display: block; padding: 16px 0; border: 0; }
  .site-nav .nav-cta { text-align: center; padding: 14px; }
}
@media (max-width: 700px) {
  .hero-photo { -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 100%); }
  .hero-photo img { object-position: 30% 50%; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 22px; }
  .gets3 { grid-template-columns: 1fr; }
  .gets3 li { padding: 22px 0 26px; }
  .timeline li { padding-left: 68px; }
  .timeline .num { width: 44px; height: 44px; }
  .timeline li:not(:last-child)::after { left: 21px; top: 50px; }
  .actions .btn { width: 100%; text-align: center; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .contact-list dd { font-size: 1.3rem; word-break: break-word; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-text { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grid-art .carve { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Credential stat */
.stat { margin-top: clamp(28px, 4vw, 48px); padding-left: 20px; border-left: 2px solid var(--navy); max-width: 17rem; }
.stat-fig { display: block; font-family: var(--font-head); font-weight: 300; font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; color: var(--charcoal); letter-spacing: -.01em; }
.stat-fig span { color: var(--navy); }
.stat-cap { display: block; margin-top: .8rem; font-family: var(--font-head); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; line-height: 1.7; color: var(--muted); }
