/* B166ER — product and service detail pages. */

/* ------------------------------------------------------------------ hero */
.ph { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.ph-bd { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ph-bd .bdw { visibility: visible; top: 46%; transform: translate(-50%, -50%); }
.ph canvas.ph-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; }
.ph::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 29, .7) 22%, rgba(11, 11, 29, 0) 52%), linear-gradient(90deg, rgba(11, 11, 29, .75) 0%, rgba(11, 11, 29, 0) 50%); }
.ph-in { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(48px, 8vh, 96px); }
.ph-in .wrap { display: grid; gap: 26px; justify-items: start; }
.crumb { display: flex; align-items: center; gap: 12px; }
.crumb a { color: var(--fg2); transition: color .25s; }
.crumb a:hover { color: var(--fg); }
.ph h1 { font-family: var(--display); font-weight: 500; font-size: clamp(42px, 5.6vw, 92px); letter-spacing: -.025em; line-height: .98; max-width: 14ch; text-wrap: balance; }
.ph h1 em { font-style: normal; color: color-mix(in oklab, var(--c) 72%, #fff); }
.ph .sum { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--fg2); max-width: 54ch; text-wrap: pretty; }
.meta { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 6px; padding-top: 22px; border-top: 1px solid var(--line); width: min(100%, 860px); }
.meta div { display: grid; gap: 6px; }
.meta dt { font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--fg3); }
.meta dd { font-size: 15px; color: var(--fg); }
.meta dd a { display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid color-mix(in oklab, var(--c) 70%, transparent); padding-bottom: 2px; }
.meta dd a .arrow { width: 11px; height: 11px; color: var(--c); }
.cue { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(48px, 8vh, 96px); display: grid; justify-items: center; gap: 12px; color: var(--fg3); }
.cue b { width: 1px; height: 44px; background: rgba(238, 238, 251, .16); position: relative; overflow: hidden; }
.cue b::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--c); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }
@media (max-width: 760px) {
  .ph::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 29, .9) 40%, rgba(11, 11, 29, 0) 66%); }
  .ph-bd .bdw { top: 30%; }
  .cue { display: none; }
}

/* ------------------------------------------------------------------ sections */
.ds { position: relative; padding: clamp(88px, 11vw, 150px) 0; border-top: 1px solid var(--line); }
.ds-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 5vw, 72px); }
.ds-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 4.2vw, 64px); letter-spacing: -.025em; line-height: 1; max-width: 18ch; text-wrap: balance; }
.ds-head h2 .d { color: var(--dim); }

/* problem / answer */
.pa { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pa .big { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -.02em; line-height: 1.18; color: var(--fg); text-wrap: pretty; }
.pa .big span { color: var(--dim); }
.pa .ans { display: grid; gap: 18px; padding-top: 10px; }
.pa .ans p { font-size: 17px; line-height: 1.75; color: var(--fg2); text-wrap: pretty; }
.pa .ans .who { padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--fg2); }
.pa .ans .who b { display: block; font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg3); margin-bottom: 8px; }
@media (max-width: 900px) { .pa { grid-template-columns: 1fr; } }

/* features */
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); }
.feat { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px 16px; padding: 26px 0 28px; border-top: 1px solid var(--line); }
.feat .n { font-size: 12px; color: var(--fg3); font-variant-numeric: tabular-nums; padding-top: 6px; }
.feat h3 { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 1.7vw, 25px); letter-spacing: -.015em; line-height: 1.15; }
.feat p { grid-column: 2; font-size: 15.5px; line-height: 1.7; color: var(--fg2); text-wrap: pretty; }
.feat:hover h3 { color: color-mix(in oklab, var(--c) 55%, #fff); }
@media (max-width: 760px) { .feats { grid-template-columns: 1fr; } }

/* how it works: a rail with stations */
.steps { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 28px; padding-top: 40px; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line2); }
.steps::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: linear-gradient(90deg, var(--c), color-mix(in oklab, var(--c) 30%, transparent)); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease); }
.steps.in::after { transform: scaleX(1); }
.step { position: relative; display: grid; gap: 12px; align-content: start; }
.step::before { content: ''; position: absolute; left: 0; top: -40px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line2); transition: background .5s var(--ease) var(--d), border-color .5s var(--ease) var(--d), box-shadow .5s var(--ease) var(--d); }
.steps.in .step::before { background: var(--c); border-color: var(--c); box-shadow: 0 0 14px var(--c); }
.step .n { font-size: 12px; color: var(--fg3); font-variant-numeric: tabular-nums; }
.step h3 { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -.015em; line-height: 1.15; }
.step p { font-size: 15px; line-height: 1.7; color: var(--fg2); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; padding: 0 0 0 36px; gap: 36px; }
  .steps::before, .steps::after { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(0); }
  .steps.in::after { transform: scaleY(1); }
  .step::before { left: -36px; top: 4px; }
}

/* screens */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.shot { display: grid; gap: 14px; }
.shot:first-child:not(:only-child) { grid-column: 1 / -1; }
.frame { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line2); background: var(--bg2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02) inset; }
.frame .bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(238, 238, 251, .14); }
.frame .bar span { margin-left: 10px; font-size: 11.5px; color: var(--fg3); letter-spacing: .02em; }
.frame img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease-out); }
.shot:hover .frame img { transform: scale(1.015); }
.shot figcaption { font-size: 14px; color: var(--fg3); }
.shot.phone { grid-column: auto !important; justify-items: center; }
.shot.phone .frame { width: min(340px, 80%); border-radius: 34px; padding: 10px; }
.shot.phone .frame img { border-radius: 26px; }
.shots.one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }

/* value */
.vals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.val { position: relative; display: grid; gap: 14px; align-content: start; padding: clamp(28px, 3vw, 44px); background: var(--bg); isolation: isolate; min-height: 220px; }
.val::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px circle at var(--mx, 30%) var(--my, 0%), color-mix(in oklab, var(--c) 12%, transparent), transparent 60%); opacity: 0; transition: opacity .5s var(--ease); }
.val:hover::before { opacity: 1; }
.val .n { font-family: var(--display); font-size: 56px; font-weight: 300; line-height: 1; color: color-mix(in oklab, var(--c) 45%, transparent); }
.val h3 { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; line-height: 1.1; }
.val p { font-size: 15.5px; line-height: 1.7; color: var(--fg2); max-width: 46ch; }
@media (max-width: 760px) { .vals { grid-template-columns: 1fr; } }

/* specs */
.specs2 { display: grid; border-top: 1px solid var(--line2); }
.specs2 div { display: grid; grid-template-columns: minmax(140px, 260px) minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.specs2 dt { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--fg3); padding-top: 4px; }
.specs2 dd { font-size: 17px; color: var(--fg); line-height: 1.6; }
@media (max-width: 640px) { .specs2 div { grid-template-columns: 1fr; gap: 6px; } }

/* service blocks */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.cards3 .cd { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 2.6vw, 36px); background: var(--bg); min-height: 190px; transition: background .4s var(--ease); }
.cards3 .cd:hover { background: var(--bg2); }
.cards3 .cd .n { font-size: 12px; color: var(--fg3); font-variant-numeric: tabular-nums; }
.cards3 .cd h3 { font-family: var(--display); font-weight: 500; font-size: 23px; letter-spacing: -.015em; line-height: 1.15; }
.cards3 .cd p { font-size: 15px; line-height: 1.7; color: var(--fg2); }
@media (max-width: 1000px) { .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards3 { grid-template-columns: 1fr; } }
.pipe { display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; align-items: stretch; gap: 0; }
.pipe .pc { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 2.6vw, 36px); border: 1px solid var(--line2); border-radius: 18px; background: var(--bg2); }
.pipe .pc.mid { background: color-mix(in oklab, var(--c) 9%, var(--bg2)); border-color: color-mix(in oklab, var(--c) 40%, transparent); box-shadow: 0 0 60px -20px color-mix(in oklab, var(--c) 50%, transparent); }
.pipe .pc h3 { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -.015em; }
.pipe .pc p { font-size: 15.5px; line-height: 1.65; color: var(--fg2); }
.pipe .ar { display: grid; place-items: center; width: 56px; color: var(--c); }
.pipe .ar svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .pipe { grid-template-columns: 1fr; } .pipe .ar { width: auto; height: 44px; transform: rotate(90deg); } }
.punch { margin-top: clamp(32px, 4vw, 56px); font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -.02em; }
.punch span { color: var(--dim); }
.impact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line2); }
.impact .st { padding: 34px 28px 10px 0; }
.impact .st + .st { padding-left: 32px; border-left: 1px solid var(--line); }
.impact .v { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 8vw, 132px); letter-spacing: -.04em; line-height: .95; }
.impact .v small { font-size: .22em; letter-spacing: .02em; color: var(--fg2); margin-left: 10px; font-weight: 400; }
.impact .l { margin-top: 16px; font-size: 17px; color: var(--fg2); }
.src { margin-top: 26px; font-size: 13px; color: var(--fg3); }
.src a { border-bottom: 1px solid var(--line2); }
@media (max-width: 640px) { .impact { grid-template-columns: 1fr; } .impact .st + .st { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.chips2 { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--fg2); }
.chips2 b { font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg3); width: 100%; }
.rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.rel a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 18px; align-items: center; padding: 22px; background: var(--bg); transition: background .4s var(--ease); }
.rel a:hover { background: var(--bg2); }
.rel canvas { grid-row: 1 / span 2; width: 96px; height: 64px; }
.rel strong { font-family: var(--display); font-weight: 500; font-size: 22px; text-transform: uppercase; letter-spacing: -.01em; }
.rel small { font-size: 13px; color: var(--fg3); }

/* next + contact */
.nextp { position: relative; display: block; padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.nextp .lbl { display: block; margin-bottom: 18px; }
.nextp .nm { display: flex; align-items: center; gap: .3em; font-family: var(--display); font-weight: 500; font-size: clamp(56px, 11vw, 190px); letter-spacing: -.035em; line-height: .9; text-transform: uppercase; color: var(--fg); transition: color .5s var(--ease); }
.nextp .nm .arrow { width: .4em; height: .4em; color: var(--c); transition: transform .6s var(--ease-out); }
.nextp:hover .nm { color: color-mix(in oklab, var(--c) 70%, #fff); }
.nextp:hover .nm .arrow { transform: translateX(.12em); }
.nextp .sub { margin-top: 16px; font-size: 17px; color: var(--fg2); }
.nextp::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 20% 60%, color-mix(in oklab, var(--c) 12%, transparent), transparent 70%); opacity: 0; transition: opacity .6s var(--ease); }
.nextp:hover::before { opacity: 1; }
.talk { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; padding: clamp(64px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.talk h2 { font-family: var(--display); font-weight: 500; font-size: clamp(44px, 6vw, 96px); letter-spacing: -.03em; line-height: .92; text-transform: uppercase; }
.meta:empty { display: none; }
.impact.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.band { padding: clamp(56px, 7vw, 96px) 0; }
.band .impact .v { font-size: clamp(56px, 6.4vw, 112px); }
@media (max-width: 900px) { .impact.three { grid-template-columns: 1fr; } .impact.three .st + .st { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
