/* ---------------------------------
   Oliver Polli — one page site
--------------------------------- */

:root{
  --bg: #f5f2ec;
  --panel: #eae5db;
  --panel-2: #e2ddd1;
  --ink: #15130f;
  --ink-soft: #46423a;
  --muted: #8a8478;
  --line: rgba(21,19,15,0.10);
  --dark: #121110;
  --dark-2: #1d1b17;
  --cream: #f6f3ec;
  --cream-soft: rgba(246,243,236,0.68);
  --accent: #8fae63;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --serif: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
[hidden]{ display: none !important; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.container{
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.noise{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  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");
}

/* ---------- type helpers ---------- */
em{ font-style: italic; font-family: var(--serif); color: var(--muted); font-weight: 400; }

h1, h2, h3{
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg{ transition: transform 0.3s var(--ease); }
.btn:hover svg{ transform: translate(2px,-2px); }
.btn:hover{ transform: translateY(-2px); }

.btn-dark{
  background: var(--ink);
  color: var(--cream);
}
.btn-dark:hover{ background: #2a2620; }

.btn-ghost{
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover{ background: rgba(21,19,15,0.05); }

.btn-light{
  background: var(--cream);
  color: var(--dark);
}
.btn-light:hover{ background: #fff; }

/* ---------- nav ---------- */
.nav-wrap{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,242,236,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 600;
}
.brand-mark-light{ background: var(--cream); color: var(--dark); }
.brand-name{ font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }

.nav-links{
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a{
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
}
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after{ transform: scaleX(1); transform-origin: left; }
.nav-links a:hover{ color: var(--ink); }

.nav-cta{ padding: 11px 18px; font-size: 0.86rem; }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span{
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

/* ---------- hero ---------- */
.hero{ padding-top: 20px; }

.hero-panel{
  background: var(--panel);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  align-items: stretch;
}

.hero-text{
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-heading{
  font-size: clamp(2.3rem, 4vw, 3.3rem);
  line-height: 1.1;
  font-weight: 500;
}
.hero-heading em{ font-size: 0.96em; color: var(--accent); }

.hero-sub{
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 46ch;
  margin: 22px 0 0;
}

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

.hero-note{
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.stat-row{
  display: flex;
  flex-wrap: wrap;
  gap: 24px 30px;
  margin: 40px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat{ flex: none; }
.stat dt{
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.9vw, 1.32rem);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.stat dd{
  margin: 5px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}

.hero-media{
  position: relative;
  overflow: hidden;
}
.hero-photo{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  filter: grayscale(0.25) contrast(1.05) brightness(0.98);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 9%);
  mask-image: linear-gradient(to right, transparent 0%, black 9%);
}

/* ---------- skool strip ---------- */
.skool-strip{
  background: var(--dark);
  color: var(--cream);
  margin-top: 96px;
  padding: 56px 0;
}
.skool-inner{ text-align: center; }
.skool-text{
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.55;
  max-width: 62ch;
  margin: 0 auto;
  color: var(--cream-soft);
}
.skool-text strong{ color: var(--cream); font-weight: 600; }
.skool-text em{ color: var(--accent); }
.skool-closer{
  display: inline-block;
  margin-top: 18px;
  font-size: 1.06em;
  font-weight: 500;
}

/* ---------- section head ---------- */
.section-head{
  max-width: 46ch;
  margin: 0 0 44px;
}
.section-head h2{
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
}
.section-sub{
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

/* ---------- who it's for (interactive checklist) ---------- */
.who{ padding-top: 110px; }

.check-list{
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.check-item{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 8px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  border-radius: 10px;
  transition: background .3s var(--ease);
}
.check-item:hover{ background: rgba(21,19,15,0.035); }
.check-item:focus-visible{ outline: 2px solid var(--ink); outline-offset: -2px; }

.check-box{
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.check-box svg{ width: 16px; height: 16px; }
.check-path{
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset .4s var(--ease) .05s;
}

.check-text{
  font-size: 1.04rem;
  line-height: 1.5;
  color: var(--ink-soft);
  transition: color .3s var(--ease);
}

.check-item.is-checked{ background: rgba(143,174,99,0.1); }
.check-item.is-checked .check-box{
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
  transform: scale(1.06);
}
.check-item.is-checked .check-path{ stroke-dashoffset: 0; }
.check-item.is-checked .check-text{ color: var(--ink); }

.who-footer{
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.who-note{
  color: var(--muted);
  font-size: 0.92rem;
  transition: opacity .3s var(--ease);
}
.who-fit{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  animation: fitIn .5s var(--ease);
}
.who-fit svg{ transition: transform .3s var(--ease); }
.who-fit:hover svg{ transform: translate(2px,-2px); }

@keyframes fitIn{
  from{ opacity: 0; transform: translateY(6px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ---------- results (ledger) ---------- */
.results{ padding-top: 110px; }

.results-ledger{
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.ledger-row{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
  padding: 34px 12px;
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
  transition: background .35s var(--ease);
}
.ledger-row:hover{ background: rgba(143,174,99,0.07); }
.ledger-row:hover .ledger-number{ transform: translateX(4px); }
.ledger-number{
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  transition: transform .35s var(--ease);
}
.ledger-label{
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 56ch;
}
.ledger-caption{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- testimonial ---------- */
.testimonial{ padding-top: 110px; }

.testimonial-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.testimonial-card{
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: var(--radius-md);
  background: var(--panel);
}

.stars{
  color: #c99a3f;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.testimonial-quote{
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  flex-grow: 1;
}

.hl{
  font-weight: 700;
  color: var(--ink);
  background-image: linear-gradient(rgba(143,174,99,0.38), rgba(143,174,99,0.38));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size 0.9s var(--ease);
  transition-delay: 0.35s;
}
.reveal.is-visible .hl{ background-size: 100% 100%; }
@media (prefers-reduced-motion: reduce){
  .hl{ background-size: 100% 100%; transition: none; }
}

.testimonial-attr{
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.case-name{
  margin: 0;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
}
.case-community{
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.case-avatar{
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 600;
  overflow: hidden;
}
.case-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-lg{
  width: 68px;
  height: 68px;
  font-size: 1.1rem;
}

.testimonial-card .badge{
  position: absolute;
  top: 26px;
  right: 28px;
}
.badge{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: #f4e2ae;
  color: #6b5211;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ---------- final cta ---------- */
.final-cta{ padding-block: 110px 90px; }

.cta-panel{
  background: var(--dark);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 76px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-panel h2{
  color: var(--cream);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  max-width: 18ch;
}
.cta-panel p{
  color: var(--cream-soft);
  max-width: 50ch;
  margin: 22px 0 34px;
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ---------- footer ---------- */
.footer{
  background: var(--dark);
  color: var(--cream-soft);
  padding: 48px 0;
}
.footer-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.footer .brand{ color: var(--cream); }
.footer-tagline{ margin: 6px 0 0; font-size: 0.92rem; color: var(--cream-soft); }
.footer-meta{ margin: 18px 0 0; font-size: 0.78rem; color: rgba(246,243,236,0.4); }

/* ---------- confetti ---------- */
.confetti-piece{
  position: fixed;
  top: 0;
  left: 0;
  width: 7px;
  height: 12px;
  pointer-events: none;
  z-index: 500;
  border-radius: 2px;
  opacity: 1;
  animation: confettiFall var(--dur, 1.1s) cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes confettiFall{
  0%{ transform: translate(0, 0) rotate(0deg); opacity: 1; }
  80%{ opacity: 1; }
  100%{ transform: translate(var(--dx, 0px), var(--dy, 260px)) rotate(var(--rot, 320deg)); opacity: 0; }
}

/* ---------- reveal on scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */
@media (max-width: 920px){
  .hero-panel{ grid-template-columns: 1fr; }
  .hero-text{ padding: 44px 28px 36px; order: 2; }
  .hero-media{ order: 1; height: 440px; }
  .hero-photo{
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 12%);
  }
  .stat-row{ gap: 28px; flex-wrap: wrap; }
  .testimonial-grid{ grid-template-columns: 1fr; }
  .ledger-row{ grid-template-columns: 1fr; gap: 8px; }
  .who, .results, .testimonial{ padding-top: 80px; }
  .skool-strip{ margin-top: 72px; }
}

@media (max-width: 720px){
  .nav-links{
    position: fixed;
    top: 66px;
    left: 16px;
    right: 16px;
    background: var(--cream);
    border-radius: var(--radius-md);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px;
    box-shadow: 0 20px 40px -18px rgba(0,0,0,0.25);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-links.is-open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a{
    padding: 10px 8px;
    width: 100%;
  }
  .nav-toggle{ display: flex; }
  .nav-cta{ display: none; }
  .hero-text{ padding: 36px 20px 30px; }
  .cta-panel{ padding: 54px 24px; }
  .check-item{ gap: 16px; padding: 20px 4px; }
  .check-text{ font-size: 0.96rem; }
  .who-footer{ flex-direction: column; align-items: flex-start; }
}
