/* ==========================================================
   Black Opal LLC — Bold Modern Bento
   ========================================================== */
:root {
  --bg: #f5f5f5;
  --white: #ffffff;
  --ink: #0a0a0a;
  --muted: #555;
  --line: #0a0a0a;
  --radius: 22px;
  --opal: linear-gradient(135deg, #7ee7e0 0%, #7a86ff 40%, #c45ad8 70%, #f0a060 100%);
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid #7a86ff;
  outline-offset: 3px;
}
.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header { padding: 1rem 0 .4rem; position: sticky; top: 0; z-index: 50; background: linear-gradient(var(--bg), var(--bg) 70%, transparent); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--white); border: 2px solid var(--ink); border-radius: 18px;
  padding: .65rem .9rem .65rem 1rem;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em;
}
.nav-brand img {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--ink); object-fit: cover; background: #fff;
}
.nav-links {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin: 0; padding: 0;
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.nav-links a { padding: .5rem .8rem; border-radius: 999px; }
.nav-links a:hover { background: #f0f0f0; }
.nav-links a.is-active { background: #0a0a0a; color: #fff; }
.nav-links .nav-cta {
  background: #0a0a0a !important; color: #fff !important;
  padding: .55rem 1rem !important; margin-left: .25rem;
}
.nav-links .nav-cta:hover { background: #222 !important; }
.nav-links .nav-cta.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #7a86ff; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--ink);
  border-radius: 10px; width: 42px; height: 42px; padding: 0; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .85rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .88rem;
  border: 2px solid var(--ink); cursor: pointer; transition: transform .15s ease, background .2s ease;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #222; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(100px, auto);
  gap: .85rem;
  padding: .6rem 0 2rem;
}
.tile {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem;
  overflow: hidden;
  position: relative;
}
.tile-dark { background: var(--ink); color: #fff; }
.tile-opal {
  background-color: #0a0a0a;
  background-image: url("assets/opal-texture.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.tile-opal::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,.15), rgba(0,0,0,.45));
  pointer-events: none;
}
.tile-opal > * { position: relative; z-index: 1; }

.eyebrow {
  margin: 0; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.tile-dark .eyebrow, .tile-opal .eyebrow { color: rgba(255,255,255,.7); }

.section-label {
  grid-column: 1 / -1;
  margin: .9rem 0 .1rem;
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; color: var(--muted);
}

/* Home hero */
.tile-hero { grid-column: 1 / 8; grid-row: span 3; display: flex; flex-direction: column; justify-content: space-between; min-height: 390px; }
.tile-hero h1 {
  margin: .45rem 0 .35rem; font-size: clamp(2.8rem, 5.8vw, 4.6rem);
  line-height: .95; letter-spacing: -.05em; font-weight: 700;
}
.tagline { margin: 0; font-size: 1.15rem; font-weight: 600; }
.sub { margin: .8rem 0 1.1rem; color: var(--muted); max-width: 40ch; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.tile-gem {
  grid-column: 8 / 13; grid-row: span 2;
  padding: 0; display: grid; place-items: center;
  background-color: #0a0a0a;
  background-image: url("assets/opal-texture.webp");
  background-size: cover; background-position: center;
  min-height: 280px;
}
.tile-gem img {
  width: min(78%, 260px); height: auto;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.45));
}
.tile-proof {
  grid-column: 8 / 13;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 700;
}
.tile-proof strong { display: block; font-size: 1.75rem; letter-spacing: -.03em; line-height: 1.1; }

/* Explore cards */
.tile-a { grid-column: 1 / 5; min-height: 220px; display: flex; flex-direction: column; }
.tile-b { grid-column: 5 / 9; min-height: 220px; display: flex; flex-direction: column; }
.tile-c { grid-column: 9 / 13; min-height: 220px; display: flex; flex-direction: column; }
.tile h3 { margin: .55rem 0 .45rem; font-size: 1.4rem; letter-spacing: -.03em; }
.tile p { margin: 0; font-size: .95rem; }
.tile .more {
  display: inline-block; margin-top: auto; padding-top: 1rem;
  font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em;
}
a.tile:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
a.tile { transition: transform .15s ease, box-shadow .2s ease; }

.tile-step { grid-column: span 4; min-height: 180px; }
.tile-step .n {
  font-size: 2.5rem; font-weight: 700; letter-spacing: -.04em; line-height: 1;
  background: var(--opal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tile-about { grid-column: 1 / 9; min-height: 220px; }
.tile-cta {
  grid-column: 9 / 13; min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.tile-contact {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.2rem;
}
.tile-contact h2 { margin: .25rem 0 0; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.04em; }

/* Interior pages */
.page-hero-tile { grid-column: 1 / 9; min-height: 240px; display: flex; flex-direction: column; justify-content: center; }
.page-hero-tile h1 {
  margin: .4rem 0 .6rem; font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -.05em; line-height: 1; font-weight: 700;
}
.page-side {
  grid-column: 9 / 13; min-height: 240px; padding: 0;
  display: grid; place-items: center;
  background-image: url("assets/opal-texture.webp");
  background-size: cover; background-position: center;
}
.page-side img { width: min(72%, 190px); filter: drop-shadow(0 12px 24px rgba(0,0,0,.4)); }

.feature { grid-column: span 6; min-height: 240px; display: flex; flex-direction: column; gap: .7rem; }
.feature .art {
  aspect-ratio: 16/9; border-radius: 14px; border: 2px solid var(--ink);
  background: #f0f0f0; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.photo-slot {
  position: absolute; left: .7rem; bottom: .7rem;
  font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; padding: .3rem .55rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 2px solid var(--ink); border-radius: 999px; padding: .4rem .8rem;
  font-size: .8rem; font-weight: 600; background: #fff;
}
.stat-tile { grid-column: span 4; text-align: center; min-height: 130px; display: grid; place-content: center; }
.stat-tile strong {
  display: block; font-size: 2.2rem; letter-spacing: -.04em;
  background: var(--opal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wide-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.wide-cta h2 { margin: .2rem 0 .35rem; font-size: 1.7rem; letter-spacing: -.03em; }

/* Footer */
.site-footer {
  padding: 1.2rem 0 2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: .88rem; font-weight: 600; color: var(--muted);
}
.footer-brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 700; }
.footer-brand img { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--ink); object-fit: cover; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.footer-links a:hover { color: var(--ink); }
.copyright { width: 100%; margin: 0; font-size: .82rem; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .tile-hero, .tile-gem, .tile-proof,
  .tile-a, .tile-b, .tile-c, .tile-step,
  .tile-about, .tile-cta, .tile-contact,
  .page-hero-tile, .page-side, .feature, .stat-tile, .wide-cta { grid-column: 1 / -1; }
  .tile-hero { min-height: auto; gap: 1.4rem; }
  .tile-gem { min-height: 240px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: relative; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + .45rem);
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: .55rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .85rem .9rem; }
  .nav-links .nav-cta { margin: .25rem 0 0; text-align: center; justify-content: center; display: inline-flex; }
  .actions .btn, .tile-contact .btn, .wide-cta .btn { width: 100%; }
  .site-footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
