/* ===== CoreVista Strategies — lighthouse / 2x2 ===== */
:root {
  --ink:         #111111;
  --ink-2:       #1a1a1a;
  --ink-3:       #232323;
  --char:        #2c2c2c;
  --line-dark:   #3d3d3d;
  --silver:      #cfcfcf;
  --steel:       #8d8d8d;
  --paper:       #f3f3f3;
  --white:       #ffffff;
  --text:        #141414;
  --muted:       #5a5a5a;
  --text-inv:    #f5f5f5;
  --muted-inv:   #c4c4c4;
  --beam:        #f7f7f7;
  --radius:      18px;
  --maxw:        1140px;
  --ease:        cubic-bezier(.22, .61, .36, 1);
  --header-h:    72px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name, .tile-num, .quote-mark, .kicker, .eyebrow, .approach-tag {
  font-family: "Newsreader", "Manrope", Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--white); color: var(--ink);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary {
  background: var(--white); color: var(--ink);
  box-shadow: 0 10px 28px -12px rgba(255, 255, 255, .45);
}
.btn-ghost {
  background: transparent; color: var(--text-inv); border-color: var(--line-dark);
}

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(17, 17, 17, .42);
  backdrop-filter: saturate(140%) blur(8px);
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(17, 17, 17, .88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
.brand-name {
  font-size: 20px; font-weight: 600; letter-spacing: .01em;
  color: var(--text-inv);
}
.brand-name em {
  font-style: italic; font-weight: 500; opacity: .78;
  font-size: 0.86em; margin-left: 2px;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 15px; color: var(--muted-inv); font-weight: 500;
  transition: color .2s var(--ease);
}
.nav .nav-cta {
  color: var(--text-inv); border: 1px solid var(--line-dark);
  padding: 8px 18px; border-radius: 999px;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text-inv); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero — night coast + beam sweep ===== */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-inv);
  padding: 128px 0 0;
  overflow: hidden;
  min-height: 100vh;
}
.hero-night {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 50% 42% at 72% 38%, rgba(255,255,255,.10), transparent 62%),
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(255,255,255,.03), transparent 60%),
    linear-gradient(180deg, #0d0d0d 0%, #111111 55%, #0a0a0a 100%);
}
.hero-stars {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 18%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 22% 8%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.4px 1.4px at 46% 14%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 63% 6%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.2px 1.2px at 88% 12%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 14% 40%, rgba(255,255,255,.28), transparent),
    radial-gradient(1px 1px at 92% 36%, rgba(255,255,255,.3), transparent);
  opacity: .85;
}
.hero-horizon {
  position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
  pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(8,8,8,.85) 55%, #0a0a0a);
}
.hero-inner {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 24px;
  min-height: calc(100vh - 128px);
  padding-bottom: 48px;
}
.hero-copy { max-width: 560px; }
.eyebrow {
  display: inline-block;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--silver); font-weight: 500; margin: 0 0 20px;
  font-family: "Manrope", sans-serif;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  font-weight: 500;
  color: var(--text-inv);
}
.hero h1 em {
  font-style: italic; font-weight: 400;
  color: var(--silver);
}
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--muted-inv);
  margin-top: 24px;
  max-width: 48ch;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px;
}

.hero-light {
  position: relative;
  display: grid; place-items: end center;
  min-height: 420px;
}
.lighthouse {
  width: min(480px, 100%);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
}
.beam-sweep {
  transform-origin: 240px 142px;
  animation: beam-sweep 8.5s ease-in-out infinite;
}
.lantern-halo,
.lantern-core {
  animation: lantern-pulse 3.2s ease-in-out infinite;
  transform-origin: 240px 142px;
}
.water-glint {
  animation: glint 8.5s ease-in-out infinite;
}

@keyframes beam-sweep {
  0%, 100% { transform: rotate(-52deg); }
  50% { transform: rotate(54deg); }
}
@keyframes lantern-pulse {
  0%, 100% { opacity: .85; }
  50% { opacity: 1; }
}
@keyframes glint {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

/* ===== Keyword strip ===== */
.strip {
  border-block: 1px solid var(--line-dark);
  background: var(--ink-2);
  overflow: hidden;
  padding: 16px 0;
}
.strip-track {
  display: flex; align-items: center; gap: 28px; white-space: nowrap; width: max-content;
  animation: marquee 28s linear infinite;
  font-family: "Newsreader", serif;
  font-size: 15px; color: var(--silver); letter-spacing: .08em; text-transform: uppercase;
}
.strip-track .dot { color: #6a6a6a; font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-dark {
  background: var(--ink);
  color: var(--text-inv);
  border-block: 1px solid var(--line-dark);
}
.section-dark .kicker { color: var(--silver); }
.section-dark h2 { color: var(--text-inv); }
.kicker {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--char); font-weight: 600; margin: 0 0 14px;
  font-family: "Manrope", sans-serif;
}
.section-head { max-width: 640px; margin: 0 0 52px; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 500; }
.section-head .lead { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ===== 2x2 showcase ===== */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.tile {
  position: relative;
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: calc(var(--radius) + 4px);
  padding: 36px 32px 32px;
  min-height: 280px;
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.tile::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #111, #bdbdbd 55%, #111);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.tile-num {
  display: block;
  font-size: clamp(3.2rem, 7vw, 5rem);
  font-weight: 500; line-height: .85;
  color: transparent;
  -webkit-text-stroke: 1.5px #c8c8c8;
  margin-bottom: 18px;
  transition: -webkit-text-stroke-color .3s var(--ease), color .3s var(--ease);
}
.tile-kicker {
  font-family: "Manrope", sans-serif;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--steel); font-weight: 600; margin-bottom: 8px;
}
.tile h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 500; margin-bottom: 12px;
}
.tile p { color: var(--muted); font-size: 1rem; max-width: 38ch; }

/* ===== Approach (dark band) ===== */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.approach-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 500; margin-bottom: 20px;
}
.approach-copy p {
  color: var(--muted-inv);
  font-size: 1.05rem;
  margin-bottom: 16px;
  max-width: 48ch;
}
.approach-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
}
.approach-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 22px 22px 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--ink-2);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.approach-tag {
  font-size: 15px; font-style: italic; font-weight: 500;
  color: var(--silver); padding-top: 4px;
}
.approach-item h3 {
  font-size: 1.35rem; font-weight: 500; margin-bottom: 8px;
  color: var(--text-inv);
}
.approach-item p { color: var(--muted-inv); font-size: .98rem; }

/* ===== Quote band ===== */
.quote-band {
  background: var(--paper);
  padding: 88px 0;
}
.quote-inner {
  max-width: 820px; margin: 0 auto; text-align: center; position: relative;
}
.quote-mark {
  display: block; font-size: 6rem; line-height: .55;
  color: #c8c8c8; margin-bottom: 8px;
}
.quote-inner blockquote {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.55rem, 3.6vw, 2.6rem);
  font-weight: 500; line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text);
}
.quote-inner em { font-style: italic; color: #3a3a3a; }
.quote-sub {
  color: var(--muted); margin-top: 22px; font-size: .95rem;
  letter-spacing: .08em; text-transform: uppercase;
  font-family: "Manrope", sans-serif;
}

/* ===== FAQ ===== */
.faq-wrap {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.faq-head { margin: 0; position: sticky; top: 100px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq-item.open { border-color: var(--ink); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--text);
  font-family: "Newsreader", Georgia, serif; font-size: 1.18rem; font-weight: 500;
  padding: 22px 24px;
}
.faq-ico { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-ico::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item.open .faq-ico::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 280px; }
.faq-a p { color: var(--muted); margin: 0; padding: 0 24px 22px; font-size: .98rem; }

/* ===== Contact (dark) ===== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-copy h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 500; margin-bottom: 16px; color: var(--text-inv);
}
.contact-copy p { color: var(--muted-inv); margin-bottom: 22px; }
.contact-email {
  display: inline-block;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.35rem; color: var(--text-inv);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.contact-place {
  margin-top: 14px; font-size: .95rem; color: var(--steel);
}
.contact-form {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 28px;
  display: grid; gap: 16px;
  transition: border-color .3s var(--ease);
}
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; color: var(--muted-inv); font-weight: 500; }
.field input, .field textarea {
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  color: var(--text-inv);
  padding: 12px 14px; font: inherit; font-size: 15px;
  width: 100%; resize: vertical;
  transition: border-color .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #6e6e6e; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--silver); }
.contact-form .btn-primary { justify-self: start; margin-top: 4px; }

/* ===== Footer (dark, near-white) ===== */
.site-footer {
  background: #0c0c0c;
  color: var(--text-inv);
  padding: 54px 0 28px;
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 28px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid var(--line-dark);
}
.footer-tag { color: var(--muted-inv); margin: 12px 0 0; font-size: .95rem; max-width: 36ch; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted-inv); font-size: 15px; transition: color .2s; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--steel); font-size: 14px; padding-top: 20px;
}

/* ===== Reveal (must sit before hover transforms) ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .beam-sweep, .lantern-halo, .lantern-core, .water-glint, .strip-track { animation: none; }
  .beam-sweep { transform: rotate(18deg); }
}

/* Hover AFTER .reveal.in so lift is not overwritten */
@media (hover: hover) and (pointer: fine) {
  .btn { transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -12px rgba(255,255,255,.5);
  }
  .section .btn-primary:hover,
  .contact-form .btn-primary:hover {
    background: #ececec;
    box-shadow: 0 14px 28px -12px rgba(0,0,0,.35);
  }
  .btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--silver);
    color: var(--white);
  }
  .nav a:hover { color: var(--white); }
  .nav .nav-cta:hover { border-color: var(--silver); color: var(--white); }

  .tile.reveal.in:hover,
  .tile:hover {
    transform: translateY(-6px);
    border-color: var(--ink);
    box-shadow: 0 22px 40px -24px rgba(17,17,17,.45);
  }
  .tile:hover::after { transform: scaleX(1); }
  .tile:hover .tile-num {
    color: rgba(17,17,17,.06);
    -webkit-text-stroke-color: var(--ink);
  }

  .approach-item.reveal.in:hover,
  .approach-item:hover {
    transform: translateY(-4px);
    border-color: var(--silver);
    background: var(--ink-3);
  }
  .faq-item:hover { border-color: #bdbdbd; box-shadow: 0 12px 28px -20px rgba(17,17,17,.35); }
  .faq-q:hover { color: #000; }
  .contact-email:hover { border-bottom-color: var(--silver); }
  .contact-form.reveal.in:hover,
  .contact-form:hover { border-color: var(--silver); }
  .footer-nav a:hover { color: var(--white); }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding-bottom: 28px;
  }
  .hero-light { order: -1; min-height: 280px; }
  .lighthouse { width: min(340px, 78vw); }
  .hero { padding-top: 104px; min-height: 0; }
  .showcase { gap: 14px; }
  .tile { min-height: 0; padding: 28px 24px; }
  .approach-grid, .faq-wrap, .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .faq-head { position: static; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 4px; align-items: stretch;
    background: rgba(17,17,17,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark);
    padding: 16px 24px 24px;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    padding: 12px 4px; font-size: 17px;
    border-bottom: 1px solid var(--line-dark);
    color: var(--text-inv);
  }
  .nav .nav-cta { text-align: center; margin-top: 10px; border: 1px solid var(--silver); }
  .showcase { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .hero-actions { gap: 10px; }
  .approach-item { grid-template-columns: 64px 1fr; padding: 18px; }
}

@media (max-width: 420px) {
  .container { padding: 0 20px; }
  .hero { padding-top: 96px; }
  .hero h1 { font-size: 2.15rem; }
  .hero-sub { margin-top: 18px; }
  .hero-actions { margin-top: 26px; }
  .hero-actions .btn { width: 100%; }
  .hero-light { min-height: 220px; }
  .lighthouse { width: min(280px, 86vw); }
  .tile { padding: 26px 20px; }
  .tile-num { font-size: 3rem; margin-bottom: 12px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .quote-mark { font-size: 4.4rem; }
  .contact-form { padding: 22px 18px; }
  .footer-inner { flex-direction: column; }
  .brand-name { font-size: 17px; }
  .header-inner { height: 64px; }
  .nav { inset: 64px 0 auto 0; }
}
