/* hero, drones, about, end */
.seq, .sign { position: absolute; inset: 0; width: 100%; height: 100%; }
.rise { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; }
.rise > b { display: inline-block; font-weight: inherit; will-change: transform; }

/* Full-bleed stages use the large viewport, so they still reach the bottom edge once Safari's toolbar slides away.
   Anything pinned to the bottom adds --tb (large minus small viewport) so it also clears the toolbar when it is out. */
#hero .stage, #drones .stage, #end .stage { height: 100vh; height: 100lvh; }

/* hero */
#hero { height: 170vh; }
/* v14: the first screen is the top of a resume: the role, three numbers and the two ways to act, under the name */
#hero .hero-foot {
  position: absolute; left: var(--pad-l); right: var(--pad-r); bottom: calc(var(--tb) + var(--safe-b) + clamp(20px, 4.4vh, 48px));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; column-gap: clamp(28px, 5vw, 96px);
}
#hero .hero-role { font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; font-size: clamp(24px, 2.3vw, 38px); }
#hero .hero-words { margin-top: 10px; font-weight: 600; letter-spacing: -0.015em; font-size: clamp(15px, 1.15vw, 18px); color: var(--soft); white-space: nowrap; }
#hero .hero-nums { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); column-gap: clamp(22px, 3.4vw, 64px); justify-content: center; }
#hero .hero-nums li { display: grid; row-gap: 8px; align-content: start; }
#hero .hn { font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-size: clamp(26px, 2.5vw, 42px); font-variant-numeric: tabular-nums; white-space: nowrap; }
#hero .hero-nums span { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--soft); max-width: 17ch; }
#hero .hero-nums li:first-child span { max-width: 22ch; }
#hero .hero-go { display: flex; align-items: center; gap: 10px; }
#hero .btn { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 2px; background: var(--ink); color: #01030a; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s; }
#hero .btn-quiet { background: transparent; color: var(--ink); border: 1px solid rgba(255, 255, 255, .5); }
@media (hover: hover) { #hero .btn:hover { background: #fff; } #hero .btn-quiet:hover { background: transparent; border-color: #fff; } }
@media (max-width: 1099px) {
  #hero .hero-foot { grid-template-columns: minmax(0, 1fr) auto; row-gap: 22px; }
  #hero .hero-nums { grid-column: 1 / -1; grid-row: 2; justify-content: start; }
  #hero .hero-go { grid-column: 2; grid-row: 1; }
}
@media (max-width: 640px) {
  #hero .hero-foot { grid-template-columns: minmax(0, 1fr); row-gap: 14px; bottom: calc(var(--tb) + var(--safe-b) + 18px); }
  #hero .hero-role { font-size: 24px; }
  #hero .hero-words { margin-top: 6px; font-size: 15px; }
  #hero .hero-nums { grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 12px; }
  #hero .hero-nums li { row-gap: 4px; }
  /* the headline figure takes the full row, its label beside it */
  #hero .hero-nums li:first-child { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; }
  #hero .hero-nums li:first-child span { max-width: none; }
  #hero .hn { font-size: clamp(21px, 6.4vw, 27px); }
  #hero .hero-nums span { font-size: 15px; line-height: 1.2; text-wrap: balance; }
  #hero .hero-go { grid-column: 1; grid-row: auto; }
  #hero .btn { height: 44px; flex: 1 1 auto; justify-content: center; }
  #hero .btn-quiet { flex: 0 0 auto; padding: 0 22px; }
}
@media (max-width: 640px) and (max-height: 620px) { #hero .hero-foot { row-gap: 12px; bottom: calc(var(--tb) + var(--safe-b) + 14px); } #hero .btn { height: 40px; } }

/* drones */
#drones { height: 175vh; margin-top: -40vh; }
#drones .film { position: absolute; inset: 0; opacity: 0; }
#drones .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#drones .film::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 6, 24, .7));
}
#drones .cap { position: absolute; left: var(--pad-l); bottom: calc(var(--tb) + var(--safe-b) + 11svh + clamp(20px, 5vh, 56px)); max-width: min(760px, 86vw); }
#drones .cap .lead { margin-top: 14px; color: var(--ink); }
#drones .cap { z-index: 2; }
#drones .bar { position: absolute; left: 0; right: 0; height: 11svh; background: #000; z-index: 1; }
#drones .bar-t { top: 0; transform: translateY(-101%); }
#drones .bar-b { bottom: 0; transform: translateY(101%); }
.is-mobile #drones .bar { display: none; }
/* phones: a deeper scrim under the caption so bright footage (the shoreline) never cuts through the title */
.is-mobile #drones .film::after { height: 56%; background: linear-gradient(180deg, transparent 0%, rgba(0, 6, 24, .82) 38%, rgba(0, 6, 24, .92) 100%); }

/* about */
#about { height: 150vh; }
#about .stage { display: flex; align-items: center; padding-top: 72px; }
#about .about-in { padding: 0 var(--pad-r) 0 var(--pad-l); max-width: 1500px; }
#about .display { max-width: 15ch; font-size: clamp(34px, min(7vw, 13vh), 128px); line-height: 1.02; }
#about .lead { margin-top: clamp(24px, 4vh, 44px); max-width: 46ch; color: var(--ink); text-wrap: pretty; }
#about .wd, #drones .wd, #end .wd { display: inline-block; white-space: nowrap; margin-right: .1em; }
#about .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
#about .w > b { display: inline-block; font-weight: inherit; will-change: transform; }

/* end: ocean, the plunge, sharks, the ask */
#end { height: 220vh; }
#end .stage { background: #01030a; }
#end .water { position: absolute; inset: 0; will-change: transform; }
#end .clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#end #sharks { opacity: 0; }
/* once under, the camera tilts up: the lit surface and the sharks slide to the bottom of the screen */
#end .water-top { position: absolute; inset: 0 0 auto 0; height: 22%; opacity: 0; background: linear-gradient(180deg, #01030a 0%, rgba(1, 3, 10, 0) 100%); }
#end .sign, #end .end-cta, #end .end-foot { z-index: 2; }
#end .end-cta { position: absolute; left: var(--pad-l); right: var(--pad-r); top: 37%; text-align: center; }
#end .end-cta .lead { color: var(--ink); }
#end .end-cta a {
  display: inline-block; margin-top: 12px; font-size: clamp(34px, 5.6vw, 104px); padding-bottom: .06em;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 3px no-repeat; transition: background-size .8s cubic-bezier(.7,0,.2,1);
}
#end .end-cta a:hover { background-size: 100% 3px; }
#end .end-cta a span { display: inline-block; font-size: .6em; vertical-align: .3em; transition: transform .5s var(--spring); }
#end .end-cta a:hover span { transform: translate(.1em, -.1em); }
/* the lit water surface slides to the bottom of the screen, right under the footer: a dark scrim keeps it legible */
#end .foot-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--tb) + var(--safe-b) + 120px); z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(1, 3, 10, .85), rgba(1, 3, 10, 0)); }
#end .end-foot { position: absolute; left: var(--pad-l); right: var(--pad-r); bottom: calc(var(--tb) + var(--safe-b) + 18px); display: flex; justify-content: space-between; gap: 16px; color: var(--soft); }

.is-mobile #hero .hero-cue { display: none; }
.is-mobile #drones .cap { bottom: calc(var(--tb) + var(--safe-b) + 9svh); }
.is-mobile #end .end-cta { top: 36%; }
.is-reduced #hero, .is-reduced #drones, .is-reduced #about { height: 100vh; margin-top: 0; }
.is-reduced #end { height: 100vh; }

/* short landscape screens (a phone on its side): the statement and the closing ask are sized by height */
@media (max-height: 480px) {
  #about .stage { align-items: flex-start; padding-top: 76px; }
  #about .display { font-size: clamp(26px, 6.2vh, 44px); max-width: none; text-wrap: balance; }
  #about .lead { font-size: 16px; margin-top: 12px; max-width: 90ch; text-wrap: wrap; }
  #end .end-cta, .is-mobile #end .end-cta { top: 46%; }
  #end .end-cta a { font-size: clamp(26px, 8vh, 44px); margin-top: 6px; }
  #drones .cap { bottom: calc(var(--tb) + var(--safe-b) + 11svh + 16px); }
  .is-mobile #drones .cap { bottom: calc(var(--tb) + var(--safe-b) + 22px); }
  #drones .cap .display { font-size: clamp(34px, 11vh, 60px); }
}

/* ---- v12 ---- */
/* "the line" fills a phone screen */
.is-mobile #about .display { font-size: clamp(36px, min(12.8vw, 8.4vh), 62px); max-width: none; line-height: 1; }
.is-mobile #about .lead { font-size: clamp(16px, 3.1vh, 20px); line-height: 1.35; max-width: none; margin-top: clamp(14px, 3vh, 24px); }
.is-mobile #hero .hero-words { font-size: 19px; }
/* the ending: under the ask, every way to reach him */
#end .end-cta .end-links { display: flex; flex-wrap: wrap; justify-content: center; column-gap: clamp(20px, 3vw, 44px); row-gap: 10px; margin-top: clamp(22px, 4vh, 40px); }
#end .end-cta .end-links a { margin: 0; padding: 6px 0; font-size: clamp(17px, 1.5vw, 22px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; background-size: 0 1.5px; }
#end .end-cta .end-links a:hover { background-size: 100% 1.5px; }
#end .end-cta .end-links i { font-style: normal; display: inline-block; font-size: .85em; }
#end .end-cta .end-links em { font-style: normal; font-weight: 500; color: var(--soft); margin-left: .35em; }
.is-mobile #end .end-cta { top: 39%; }
.is-mobile #end .end-cta a.display { font-size: clamp(30px, 8.6vw, 40px); }
.is-mobile #end .end-cta .end-links { flex-direction: column; align-items: center; row-gap: 4px; margin-top: 22px; }
.is-mobile #end .end-cta .end-links a { font-size: 18px; }
@media (max-height: 480px) { #end .end-cta .end-links { margin-top: 8px; row-gap: 0; } #end .end-cta .end-links a { font-size: 15px; padding: 2px 0; } }

/* v15: the longer drones caption breaks into even lines, never one orphan word */
#drones .cap .lead b { text-wrap: balance; }

/* v15, after the playbooks: what his results led to, and one of his own videos in a phone. */
#coach { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; background: #01030a; overflow: hidden; }
#coach .coach-in { width: 100%; max-width: 1500px; padding: clamp(96px, 16vh, 180px) var(--pad-r) clamp(72px, 12vh, 140px) var(--pad-l); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(32px, 6vw, 120px); align-items: center; }
#coach .display { max-width: 11ch; font-size: clamp(40px, min(7.2vw, 13vh), 120px); line-height: 1; }
#coach .lead { margin-top: clamp(22px, 4vh, 44px); max-width: 40ch; color: var(--ink); text-wrap: pretty; }
#coach .wd { display: inline-block; white-space: nowrap; margin-right: .1em; }
#coach .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
#coach .w > b { display: inline-block; font-weight: inherit; will-change: transform; }
#coach .coach-row { --draw: 1; position: relative; margin-top: clamp(36px, 7vh, 80px); padding-top: 18px; max-width: 920px; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; font-weight: 600; font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -0.012em; line-height: 1.35; }
#coach .coach-row::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--line); transform: scaleX(var(--draw)); transform-origin: 0 50%; }
#coach .coach-soon { color: var(--soft); text-align: right; }
#coach .coach-row2 { margin-top: 18px; }
#coach .coach-row2 .coach-what { flex: none; }
#coach .coach-row2 .coach-soon { text-align: left; max-width: 46ch; }
/* the phone: a black slab with a hairline edge, the video filling its glass, cobalt light behind it */
#coach .coach-reel { position: relative; perspective: 1400px; justify-self: end; }
#coach .coach-reel::before { content: ""; position: absolute; left: 50%; top: 50%; width: 190%; height: 120%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(42, 92, 255, .30), rgba(42, 92, 255, 0) 100%); pointer-events: none; }
#coach .phone { position: relative; width: clamp(230px, min(24vw, 38vh), 340px); aspect-ratio: 9 / 18.6; padding: 9px; border-radius: 13.5% / 6.6%; background: #05070d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 0 0 3px #01030a; transform-style: preserve-3d; will-change: transform, opacity; }
#coach .phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 11.4% / 5.4%; background: #000; }
#coach .phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#coach .phone-glare { position: absolute; inset: -20% 0; width: 46%; left: 27%; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, 0) 100%); transform: skewX(-18deg); pointer-events: none; will-change: transform; }
#coach .coach-reel figcaption { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--soft); }
#coach .reel-sound { font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .5); padding: 6px 0; min-height: 32px; cursor: pointer; white-space: nowrap; }
@media (hover: hover) { #coach .reel-sound:hover { border-bottom-color: #fff; } }
.is-reduced #coach .phone-glare { display: none; }
@media (max-width: 899px) {
  #coach .coach-in { grid-template-columns: minmax(0, 1fr); row-gap: clamp(40px, 8vh, 72px); padding-top: calc(96px + env(safe-area-inset-top, 0px)); }
  #coach .coach-reel { justify-self: center; }
  #coach .phone { width: min(64vw, 300px); }
  #coach .coach-reel figcaption { justify-content: center; gap: 18px; }
}
@media (max-width: 640px) { #coach .display { max-width: none; font-size: clamp(38px, 11.6vw, 56px); text-wrap: balance; } #coach .coach-row { flex-direction: column; gap: 4px; } #coach .coach-soon { text-align: left; } #coach .reel-sound { min-height: 44px; } }
