/* ==========================================================================
   Patricio Bruno — Fractional CMO | Marketing & AI
   One-page consultant storefront. Dark, editorial, bento-grid layout.
   ========================================================================== */

:root {
  /* Palette sampled directly from the brand banner (x-banner.jpg) */
  --bg: #0e3234;
  --bg-alt: #123a3c;
  --bg-raised: #164244;
  --line: rgba(148, 219, 219, 0.14);
  --line-strong: rgba(148, 219, 219, 0.28);
  --cyan: #3fcdd6;
  --cyan-soft: #85e0e6;
  --cyan-dim: rgba(63, 205, 214, 0.14);
  --cream: #f6f1e6;
  --text: #eef4f2;
  --text-dim: #a9c2bf;
  --text-faint: #7d9694;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --space-section: clamp(4rem, 9vw, 8rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/*
 * Reduced motion: drop continuous/decorative motion (parallax, particle
 * float, hover tilt — handled in JS) but keep short one-time entrance
 * fades, since eliminating all motion reads as a broken/static page.
 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-display {
  font-family: "como", "Fraunces", "Georgia", serif;
}

h1, h2, h3, h4 {
  font-family: "como", "Fraunces", "Georgia", serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--cream);
}

p { margin: 0; }

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

section { position: relative; }

/* Grain texture overlay for depth — 2026 tactile-minimalism trend */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------- Scroll progress ---------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 101;
  background: transparent;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft));
  box-shadow: 0 0 12px rgba(79,216,224,0.6);
  transition: width 0.1s linear;
}

/* ---------------------------- Nav ---------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10, 34, 34, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 34, 34, 0.82);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: "como", "Fraunces", serif;
  font-size: 1.15rem;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--cyan); }
.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}
.nav-links a:not(.nav-cta) {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--cyan-soft); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #06201f;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(79,216,224,0.28); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line-strong);
    color: var(--cream);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
  }
}

/* ---------------------------- Buttons ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #38b6c2 100%);
  color: #06201f;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 12px 30px -8px rgba(79,216,224,0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 16px 36px -6px rgba(79,216,224,0.55); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-soft); background: var(--cyan-dim); }
.btn-block { width: 100%; }

/* ---------------------------- Hero ---------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 15% -10%, #123c3c 0%, var(--bg) 55%), var(--bg);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.85;
  background-image: url("../images/hero-bg.webp");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  animation: heroDrift 16s ease-in-out infinite alternate, heroBreathe 6s ease-in-out infinite;
}
.hero-particles::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--bg) 0%, var(--bg) 26%, rgba(14,50,52,0.88) 46%, rgba(14,50,52,0.45) 66%, transparent 86%);
}
@keyframes heroDrift {
  from { background-position: right center; }
  to { background-position: 58% center; }
}
@keyframes heroBreathe {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 0.92; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-particles { animation: none; opacity: 0.85; }
}

.hero-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(63,205,214,0.18) 0%, rgba(63,205,214,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem 0.45rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(79,216,224,0.06);
  font-size: 0.8rem;
  color: var(--cyan-soft);
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: rise 0.7s var(--ease) 0.05s forwards;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79,216,224,0.2);
}

.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  color: var(--cream);
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.15s forwards;
}
.hero h1 em {
  font-style: italic;
  color: var(--cyan-soft);
}

.hero-sub {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-dim);
  max-width: 620px;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.3s forwards;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.45s forwards;
}

.hero-meta {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-faint);
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.55s forwards;
}

.social-proof {
  position: relative;
  z-index: 2;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.65s forwards;
}
.social-proof-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-bottom: 1.1rem;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------- Section shell ---------------------------- */
.section { padding: var(--space-section) 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan-soft);
  margin-bottom: 1rem;
}
.section-head {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}
.section-head p {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  color: var(--text-dim);
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Staggered cascade for grid children */
.compare-grid .reveal:nth-child(1) { transition-delay: 0s; }
.compare-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.compare-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.bento .reveal:nth-child(1) { transition-delay: 0s; }
.bento .reveal:nth-child(2) { transition-delay: 0.1s; }
.bento .reveal:nth-child(3) { transition-delay: 0.2s; }
.bento .reveal:nth-child(4) { transition-delay: 0.3s; }
.model-grid .reveal:nth-child(1) { transition-delay: 0s; }
.model-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.model-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ---------------------------- Why Fractional (comparison) ---------------------------- */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  perspective: 1200px;
}
@media (max-width: 900px) { .compare-grid { grid-template-columns: 1fr; } }

.compare-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  background: var(--bg-raised);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.compare-card .tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.compare-card h3 {
  font-size: 1.4rem;
  color: var(--text);
}
.compare-card .figure {
  font-family: "como", "Fraunces", serif;
  font-size: 2rem;
  color: var(--text-faint);
}
.compare-card ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.compare-card li { display: flex; gap: 0.6rem; align-items: flex-start; }
.compare-card li::before { content: "×"; color: #c96a5a; font-weight: 700; flex-shrink: 0; }

.compare-card.winner {
  background: linear-gradient(165deg, rgba(79,216,224,0.1), rgba(79,216,224,0.02));
  border-color: var(--cyan);
  box-shadow: 0 20px 50px -20px rgba(79,216,224,0.35);
  position: relative;
}
.compare-card.winner .figure { color: var(--cyan-soft); }
.compare-card.winner li::before { content: "✓"; color: var(--cyan); }
.compare-card.winner h3 { color: var(--cream); }
.compare-card.winner .pill {
  position: absolute;
  top: -13px; right: 1.5rem;
  background: var(--cyan);
  color: #06201f;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------------------------- Services (bento) ---------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  perspective: 1400px;
}
@media (max-width: 780px) {
  .bento { grid-template-columns: 1fr; }
}

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  background: linear-gradient(160deg, var(--bg-raised) 0%, rgba(18,54,54,0.4) 100%);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }

.service-card.featured {
  position: relative;
  background: linear-gradient(165deg, rgba(79,216,224,0.1), rgba(18,54,54,0.5) 55%);
  border-color: var(--cyan);
  box-shadow: 0 24px 60px -24px rgba(79,216,224,0.32);
}
.service-card.featured::after {
  content: "Signature Offering";
  position: absolute;
  top: 1.75rem; right: 1.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #06201f;
  background: var(--cyan);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
}
.service-card.featured .service-num {
  border-color: var(--cyan);
  color: var(--cyan-soft);
}

.service-num {
  font-family: "como", "Fraunces", serif;
  font-size: 0.95rem;
  color: var(--cyan-soft);
  border: 1px solid var(--line-strong);
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: var(--cream);
}
.service-card .dek {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.service-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.service-card li {
  font-size: 0.9rem;
  color: var(--text-dim);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  border-top: 1px dashed var(--line);
  padding-top: 0.65rem;
}
.service-card li:first-child { border-top: none; padding-top: 0; }
.service-card li::before {
  content: "";
  width: 5px; height: 5px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

/* ---------------------------- About ---------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.about-portrait {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--bg-raised), var(--bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait .placeholder {
  color: var(--text-faint);
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem;
  line-height: 1.5;
}
.about-portrait .ring {
  position: absolute;
  inset: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.25rem;
}
.stat {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}
.stat .num {
  font-family: "como", "Fraunces", serif;
  font-size: 1.9rem;
  color: var(--cyan-soft);
}
.stat .label {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 0.2rem;
}

.about-copy .eyebrow { margin-bottom: 0.75rem; }
.about-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 1.4rem; }
.about-copy p { color: var(--text-dim); font-size: 1.02rem; }
.about-copy p + p { margin-top: 1.1rem; }

.career-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}
.career-chips span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(79,216,224,0.04);
}

/* ---------------------------- Engagement models ---------------------------- */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  perspective: 1200px;
}
@media (max-width: 900px) { .model-grid { grid-template-columns: 1fr; } }

.model-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-raised);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.model-card .letter {
  font-family: "como", "Fraunces", serif;
  font-size: 1rem;
  color: var(--cyan-soft);
  margin-bottom: 1rem;
}
.model-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.model-card .format {
  font-size: 0.85rem;
  color: var(--cyan-soft);
  margin-bottom: 1rem;
}
.model-card p.desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}
.model-card .best-for {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.model-card .best-for b { color: var(--text); font-weight: 600; }

/* ---------------------------- Final CTA ---------------------------- */
.cta-block {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 7vw, 5rem);
  background: linear-gradient(150deg, #0f3838 0%, #0a2a2a 60%, #0a2222 100%);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  text-align: center;
}
.cta-block::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(79,216,224,0.2), transparent 70%);
  top: -200px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.cta-block h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}
.cta-block .sub {
  margin: 1.25rem auto 0;
  max-width: 560px;
  color: var(--text-dim);
  font-size: 1.05rem;
  position: relative;
}
.cta-actions {
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}
/* ---------------------------- Footer ---------------------------- */
footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo { font-family: "como", "Fraunces", serif; color: var(--cream); font-size: 1.05rem; }
.footer-links { display: flex; gap: 1.75rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-dim); transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--cyan-soft); }
.footer-meta { font-size: 0.8rem; color: var(--text-faint); }
.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ---------------------------- Mobile menu ---------------------------- */
.mobile-menu {
  position: fixed;
  inset: 72px 0 0 0;
  z-index: 90;
  background: rgba(10,34,34,0.98);
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.btn) { font-size: 1.3rem; font-family: "como", "Fraunces", serif; color: var(--cream); }
.mobile-menu .btn { margin-top: 1rem; }

@media (min-width: 861px) {
  .mobile-menu { display: none !important; }
}
