/* Simple Genius homepage: Process positioning (Sept 24 2026)
   Builds on home.css tokens (.ctr 1240px master grid, --pad-x gutters). */

/* ---------- Header: five links + CTA, collapse earlier ---------- */
@media (max-width: 1180px) and (min-width: 901px) {
  .hd__nav > a:not(.btn) { display: none; }
  .hd__menu { display: block; order: -1; margin-right: 0; }
  .hd__nav { gap: 8px; }
  .mnav:not([hidden]) { display: block; background: var(--black); border-top: 1px solid #262522; }
  .mnav__inner { display: flex; flex-direction: column; padding-block: 8px 24px; }
  .mnav a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 16px 0; border-bottom: 1px solid #262522; }
  .mnav a:last-child { border-bottom: 0; color: var(--yellow); }
  .hd.is-open, .hd.is-open.is-scrolled { background: var(--black); color: #fff; }
  .hd.is-open.is-scrolled .hd__logo img:first-child { opacity: 1; }
  .hd.is-open.is-scrolled .hd__logo .hd__logo-d { opacity: 0; }
}
@media (min-width: 1181px) { .hd__nav { gap: 30px; } }

/* ---------- Shared bits ---------- */
.ph-label { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font: 700 13px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ph-label::before { content: ''; width: 8px; height: 8px; background: var(--yellow); flex: none; }
.ph-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 5px; border-bottom: 1px solid currentColor; text-decoration: none; font: 700 14px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); transition: color 160ms ease, border-color 160ms ease; }
.ph-link:hover { color: var(--yellow-2); }
.ph-link span { transition: transform 160ms ease; }
.ph-link:hover span { transform: translateX(3px); }
.ph-link--light { color: #fff; }
.ph-link--light:hover { color: var(--yellow); }
.ph-sec { padding-block: 128px; }
section[id] { scroll-margin-top: 24px; }

/* ---------- 1. Hero: copy | video ---------- */
.hero--ph .hero__inner { padding-top: 168px; padding-bottom: 120px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; column-gap: 64px; text-align: left; }
.hero--ph .hero__h1 { font-size: clamp(52px, 4.6vw, 68px); line-height: 0.92; max-width: 13ch; margin: 0; text-wrap: balance; }
.hero__sub { margin: 30px 0 0; max-width: 30em; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.55; color: #cfcac0; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; margin-top: 44px; }
.hero--ph .hero__video { margin: 0; width: 100%; aspect-ratio: 16 / 9; outline: 0; box-shadow: none; border: 1px solid #2c2b28; border-radius: 4px; background: #151513; }
.hero__video > video { pointer-events: none; }
.hero__ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 26px 28px; background:
  linear-gradient(#232220, #232220) left 28px top 50% / calc(100% - 56px) 1px no-repeat; }
.hero__ph-t { font: 700 12px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: #8d897f; }
.hero__ph-t::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--yellow); vertical-align: 1px; }
.hero__ph-s { font: 500 13px/1.4 var(--font-body); color: #6f6c64; }

/* Hero entrance: words rise into frame one at a time, then the rest follows */
.hero__h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.02em 0.1em; margin: -0.06em -0.02em -0.1em; }
.hero__h1 .w > span { display: inline-block; animation: ph-rise 1000ms cubic-bezier(.2, .9, .25, 1) both; animation-delay: calc(var(--d) * 95ms + 120ms); }
.hero__h1 .w--end > span { animation: ph-rise 1000ms cubic-bezier(.2, .9, .25, 1) both, ph-glow 900ms ease 1250ms both; animation-delay: calc(var(--d) * 95ms + 120ms), 1250ms; }
.hero--ph .hero__sub, .hero--ph .hero__ctas { animation: ph-up 900ms cubic-bezier(.22, 1, .36, 1) both; }
.hero--ph .hero__sub { animation-delay: 780ms; }
.hero--ph .hero__ctas { animation-delay: 920ms; }
.hero--ph .hero__video { animation: ph-in 1300ms cubic-bezier(.22, 1, .36, 1) 450ms both; }
@keyframes ph-rise { from { transform: translateY(110%) rotate(4deg); } to { transform: none; } }
@keyframes ph-glow { from { color: #fff; } to { color: var(--yellow); } }
@keyframes ph-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ph-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero__h1 .w > span, .hero--ph .hero__sub, .hero--ph .hero__ctas, .hero--ph .hero__video { animation: none !important; }
  .hero__h1 .w--end > span { color: var(--yellow); }
}

/* ---------- 2. Experience ---------- */
.bfe { background: var(--warm); padding-top: 96px; padding-bottom: 80px; }
.bfe__h { margin: 0 0 48px; max-width: none; font-size: min(64px, 4.4vw); white-space: nowrap; }
.bfe__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 96px; align-items: start; }
.bfe__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; }
.bfe__ph { margin: 0; }
.bfe__ph img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #1c1b19; }
.bfe__ph figcaption { margin-top: 14px; font: 700 12px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.bfe__stats { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; grid-auto-flow: column; column-gap: 24px; margin: 0 0 14px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.bfe__stats dt { align-self: end; margin: 0; font: 800 clamp(26px, 2.3vw, 34px)/1 var(--font-display); letter-spacing: -0.025em; text-transform: uppercase; color: var(--ink); }
.bfe__stats dd { align-self: start; margin: 12px 0 0; font: 500 15px/1.4 var(--font-body); color: var(--muted); }
.bfe__copy { display: grid; gap: 22px; font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.bfe__copy p { margin: 0; max-width: 34em; }
.bfe__bridge { display: block; margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--ink); }
.bfe__iso { margin: 0; padding: 4px 0 4px 28px; border-left: 4px solid var(--yellow); font: 800 clamp(36px, 3.6vw, 52px)/0.98 var(--font-display); letter-spacing: -0.03em; text-transform: uppercase; color: var(--ink); max-width: none; white-space: nowrap; }
.bfe__today { margin-top: 28px; }
.bfe__today p { margin: 0; max-width: 24em; font: 700 clamp(28px, 2.7vw, 40px)/1.18 var(--font-display); letter-spacing: -0.025em; color: var(--ink); text-wrap: pretty; }

/* ---------- 3. The Simple Genius Process ---------- */
.proc { background: var(--white); padding-top: 104px; }
.proc__h { margin: 0; max-width: none; }
.proc__sub { margin: 18px 0 0; font: 700 clamp(24px, 2.4vw, 34px)/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--ink-2); }
.pr { position: relative; margin-top: 88px; --node: 14px; --lw: 2px; }
.pr__row { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 56px; }
.pr__row::before { content: ''; position: absolute; left: 0; right: 0; top: calc(var(--node) / 2 - var(--lw) / 2); height: var(--lw); background: var(--ink); transform-origin: left; }
.pr__row::after { content: ''; position: absolute; right: -2px; top: calc(var(--node) / 2 - 6px); border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid var(--ink); }
.pr__s { position: relative; padding-top: 44px; padding-left: var(--off, 0px); }
.pr__s:nth-child(2) { --off: 40px; }
.pr__s:nth-child(3) { --off: 80px; }
.pr__node { position: absolute; left: var(--off, 0px); top: 0; width: var(--node); height: var(--node); background: var(--ink); }
.pr__s:last-child .pr__node { background: var(--yellow); box-shadow: 0 0 0 var(--lw) var(--ink) inset; }
.pr__n { font: 800 2.3em/0.74 var(--font-display); letter-spacing: -0.06em; color: var(--ink); }
.pr__h { display: flex; align-items: flex-end; gap: 0.3em; margin: 0 0 18px; font: 800 clamp(30px, 2.8vw, 40px)/0.8 var(--font-display); letter-spacing: -0.025em; text-transform: uppercase; }
.pr__p { margin: 0; max-width: 28ch; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.proc__more { margin: 72px 0 0; }
.proc__close { margin: 72px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 64px; align-items: center; padding: 64px; background: var(--black); color: #fff; }
.proc__def-h { margin: 0 0 30px; font: 800 clamp(18px, 1.5vw, 22px)/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--yellow); }
.proc__pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.proc__pts li { position: relative; padding-left: 34px; max-width: 18em; font: 800 clamp(26px, 2.5vw, 36px)/1.08 var(--font-display); letter-spacing: -0.025em; text-transform: uppercase; color: #fff; text-wrap: balance; }
.proc__pts li::before { content: ''; position: absolute; left: 0; top: 0.36em; width: 11px; height: 11px; background: var(--yellow); }
.proc__go .btn { white-space: nowrap; }
.proc__go { display: grid; justify-items: start; align-content: center; gap: 18px; padding-left: 40px; align-self: stretch; border-left: 1px solid #34332f; }
.proc__go-t { margin: 0; font: 700 13px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: #bdb8ad; }

/* Process draws itself in once, when it enters view */
.ph-js .pr .pr__row::before { transform: scaleX(0); transition: transform 1300ms cubic-bezier(.22, 1, .36, 1); }
.ph-js .pr .pr__row::after { opacity: 0; transition: opacity 300ms ease 1150ms; }
.ph-js .pr .pr__node, .ph-js .pr .pr__s > * { opacity: 0; transition: opacity 600ms ease calc(var(--i) * 300ms + 150ms); }
.ph-js .pr.is-in .pr__row::before { transform: none; }
.ph-js .pr.is-in .pr__row::after, .ph-js .pr.is-in .pr__node, .ph-js .pr.is-in .pr__s > * { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ph-js .pr *, .ph-js .pr .pr__row::before, .ph-js .pr .pr__row::after { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- 6. Business CTA ---------- */
.fcta .fcta__copy p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ph-sec { padding-block: 104px; }
  .bfe { padding-block: 88px; }
  .proc { padding-top: 96px; }
  .hero--ph .hero__inner { column-gap: 44px; padding-top: 148px; padding-bottom: 96px; }
  .bfe__grid { column-gap: 56px; }
  .pr__row { column-gap: 36px; }
  .proc__close { padding: 48px; column-gap: 44px; }
  .proc__go { padding-left: 32px; }
}
@media (max-width: 900px) {
  .hero--ph .hero__inner { grid-template-columns: 1fr; row-gap: 48px; padding-top: 136px; padding-bottom: 72px; }
  .hero--ph .hero__h1 { max-width: 10ch; font-size: clamp(52px, 9vw, 76px); }
  .bfe__h { white-space: normal; font-size: clamp(40px, 7.4vw, 60px); max-width: 12ch; }
  .bfe__grid { grid-template-columns: 1fr; row-gap: 48px; }
  .bfe__bridge { margin-top: 56px; padding-top: 40px; row-gap: 28px; }
  .bfe__photos { max-width: 640px; }
  .pr { margin-top: 56px; }
  .pr__row { grid-template-columns: 1fr; }
  .pr__row::before, .pr__row::after { display: none; }
  .pr__s:not(:last-child)::before { content: ''; position: absolute; left: calc(var(--node) / 2 - var(--lw) / 2); top: 0; bottom: 0; width: var(--lw); background: var(--ink); }
  .pr__s { padding: 0 0 52px 48px; --off: 0px !important; }
  .pr__s:last-child { padding-bottom: 0; }
  .pr__p { max-width: 34ch; }
  .proc__close { margin-top: 72px; grid-template-columns: 1fr; row-gap: 36px; padding: 44px 40px; }
  .proc__go { padding: 32px 0 0; border-left: 0; border-top: 1px solid #34332f; }
}
@media (max-width: 600px) {
  .ph-sec { padding-block: 80px; }
  .bfe { padding-block: 72px; }
  .proc { padding-top: 72px; }
  .hero--ph .hero__inner { padding-top: 120px; padding-bottom: 56px; row-gap: 40px; }
  .hero--ph .hero__h1 { font-size: clamp(44px, 12.4vw, 58px); }
  .hero__ctas { gap: 20px; }
  .hero__ctas .btn { width: 100%; }
  .hero__ph { padding: 18px 20px; background-position: left 20px top 50%; background-size: calc(100% - 40px) 1px; }
  .bfe__h { margin-bottom: 36px; font-size: clamp(36px, 10.4vw, 44px); }
  .bfe__photos { gap: 12px; }
  .bfe__stats { column-gap: 16px; padding-bottom: 22px; }
  .bfe__stats dt { font-size: clamp(19px, 5.2vw, 24px); }
  .bfe__stats dd { font-size: 14px; }
  .bfe__copy, .bfe__today { font-size: 18px; }
  .bfe__iso { font-size: clamp(32px, 9vw, 40px); padding-left: 20px; }
  .pr__h { font-size: 28px; }
  .proc__close { padding: 36px 24px; }
  .proc__pts li { font-size: clamp(22px, 6.4vw, 28px); padding-left: 28px; }
  .bfe__iso { white-space: normal; }
  .bfe__today p { font-size: clamp(23px, 6.4vw, 28px); }
  .proc__go .btn { width: 100%; }
  .proc__go { justify-items: stretch; }
}

/* ---------- Hero: stacked and centered like simplegenius.com (headline, video, supporting line) ---------- */
.hero--ph .hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 128px; padding-bottom: 80px; }
.hero--ph .hero__copy { width: 100%; display: flex; justify-content: center; }
.hero--ph .hero__h1 { max-width: none; font-size: clamp(56px, 5vw, 76px); line-height: 0.92; text-wrap: balance; }
.hero--ph .hero__video { margin-top: 44px; width: min(100%, clamp(560px, 50vw, 780px)); outline: 10px solid #1a1917; box-shadow: 0 0 0 11px #2a2926; border: 1px solid #262522; }
.hero--ph .hero__sub { margin: 44px auto 0; max-width: 36em; text-align: center; }
.proc__close { margin-top: 64px; }
@media (max-width: 900px) {
  .hero--ph .hero__inner { padding-top: 120px; padding-bottom: 60px; }
  .hero--ph .hero__h1 { max-width: 11ch; font-size: clamp(48px, 9vw, 72px); }
}
@media (max-width: 600px) {
  .hero--ph .hero__inner { padding-top: 112px; padding-bottom: 52px; }
  .hero--ph .hero__h1 { max-width: 9ch; font-size: clamp(40px, calc((100vw - 44px) / 6.2), 58px); }
  .hero--ph .hero__video { margin-top: 36px; width: calc(100% - 16px); outline-width: 7px; box-shadow: 0 0 0 8px #2a2926; }
  .hero--ph .hero__sub { margin-top: 36px; font-size: 17px; }
  /* Experience headline on two lines, Process label on one line */
  .bfe__h { max-width: none; font-size: calc((100vw - 44px) / 9.4); line-height: 0.95; }
  .bfe__iso { white-space: nowrap; font-size: calc((100vw - 44px - 24px) / 14.6); padding-left: 16px; }
}

/* ---------- Mobile process steps: clean numbered timeline ---------- */
@media (max-width: 900px) {
  .pr { --node: 44px; }
  .pr__row { counter-reset: prs; }
  .pr__s { counter-increment: prs; padding: 0 0 44px 68px; min-height: var(--node); }
  .pr__s:not(:last-child)::before { left: calc(var(--node) / 2 - 1px); top: var(--node); bottom: 0; width: 2px; }
  .pr__node { left: 0 !important; display: grid; place-items: center; }
  .pr__node::after { content: counter(prs); font: 800 22px/1 var(--font-display); color: #fff; }
  .pr__s:last-child .pr__node { box-shadow: none; }
  .pr__s:last-child .pr__node::after { color: var(--ink); }
  .pr__n { display: none; }
  .pr__h { display: block; margin: 0 0 10px; padding-top: 11px; font-size: 26px; line-height: 0.9; }
  .pr__p { font-size: 17px; }
}
.hero__h1 .br-m { display: none; }
.hero--ph .hero__inner { row-gap: 0; }
@media (max-width: 600px) {
  .hero--ph .hero__h1 .br-m { display: inline; }
  .hero--ph .hero__h1 { max-width: none; font-size: clamp(36px, calc((100vw - 44px) / 8.1), 54px); }
}
