/* Homepage: each section, top to bottom. */
/* the kit pins every main > section to whole screens; this page sets each height itself */
main > :is(section, .section) { height: auto; padding: 0; background: none; }
main > :is(section, .section) > .wrap { height: auto; }
main > .sky-hero { height: 100svh !important; min-height: 640px; }
main > .weather { height: 170svh !important; }
.say { font-family: var(--font-display); font-stretch: 86%; font-weight: 650; letter-spacing: -0.012em; line-height: .92; margin: 0; text-shadow: 0 2px 24px rgb(0 0 0 / .16); }


/* 1. hero */
.sky-hero { position: relative; }
.sky-hero__pin { height: 100%; display: grid; place-items: center; padding: var(--nav) var(--gut) 0; }
.sky-hero__stack { display: grid; justify-items: center; text-align: center; gap: clamp(10px, 1.8svh, 18px); }
.sky-hero h1 { font-size: clamp(40px, min(6.4vw, 9svh), 100px); max-width: 20ch; text-wrap: balance; }
.sky-hero h1 .hold { display: block; }
.sky-hero__lead { font-size: var(--t-lead); line-height: 1.45; max-width: 58ch; margin: 0; text-wrap: pretty; }

/* 2. the statement, word by word */
.statement { min-height: 100svh; display: grid; align-content: center; padding-block: var(--s-9) !important; }
.statement h2 { font-size: clamp(56px, 9.5vw, 156px); max-width: 11ch; }
.statement h2 span { display: inline-block; opacity: var(--o, 1); transition: opacity .2s linear; }
.statement p { font-size: var(--t-lead); line-height: 1.5; max-width: 50ch; margin: var(--s-6) 0 0; }
.statement__note { --tint: rgb(8 46 160 / .42); padding: var(--s-5) var(--s-6); text-shadow: none !important; }
@media (max-width: 639px) { .statement__note { padding: var(--s-4) var(--s-5); } }

/* 3. through the weather: a held screen while one cloud sheet passes over it */
.weather { height: 190svh; position: relative; }
.weather__hold { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
.weather__line { position: relative; z-index: 2; color: #0b2a8a; font-size: clamp(36px, 5vw, 72px); text-align: center; opacity: 0; text-shadow: none; }
.weather__end { display: grid; justify-items: center; gap: var(--s-4); }
.weather__sub { margin: 0; font-size: var(--t-lead); color: #0b2a8a; opacity: 0; }
.weather__w { position: absolute; left: 50%; top: 50%; margin: 0; white-space: nowrap; font-size: clamp(28px, 3.6vw, 52px);
  translate: calc(-50% + var(--x)) calc(-50% + var(--y)); opacity: 0; text-shadow: 0 2px 24px rgb(0 0 0 / .25); }
@media (max-width: 639px) { .weather__w { translate: calc(-50% + var(--x) * .4) calc(-50% + var(--y)); } }

/* 4. products on glass */
.glass { --tint: rgb(8 50 170 / .3); border-radius: 24px; }
#products { padding-block: calc(var(--nav) + var(--s-8)) var(--s-10) !important; }
#products h2 { font-size: clamp(36px, 4.2vw, 60px); max-width: 18ch; margin-bottom: var(--s-4); font-stretch: 100%; font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; }
#products .lead { font-size: var(--t-lead); max-width: 56ch; margin: 0 0 var(--s-8); color: var(--p-muted); }
.prod__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: 0 var(--s-2); }
.prod__head h3 { margin: 0; font-size: var(--t-card); font-weight: 500; }
.prod__head h3 a { color: inherit; }
.prod__tag { font: 500 13px/1 var(--font-mono); color: var(--p-muted); }
.prod p { margin: 0; padding: 0 var(--s-2) var(--s-2); max-width: 52ch; }

/* shared block: a big statement heading, a lead, then glass cards */
main > .block { padding-block: calc(var(--nav) + var(--s-8)) var(--s-9); }
.block__h { font-size: clamp(36px, 4.2vw, 60px); max-width: 18ch; margin-bottom: var(--s-4); font-stretch: 100%; font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; }
.block__lead { font-size: var(--t-lead); max-width: 56ch; margin: 0 0 var(--s-8); color: var(--p-muted); }
.block__lead a, .prod p a, .card-g h3 a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.card-g { padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; color: inherit; text-decoration: none; }
.card-g h3 { margin: 0; font-size: var(--t-card); font-weight: 500; }
.card-g p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: var(--s-2) 0 0; }
.chips li { font: 500 13px/1 var(--font-mono); padding: 6px 9px; border-radius: 999px; }
.shot { border-radius: 10px; overflow: clip; aspect-ratio: 16 / 10; background: #12161f; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.term { aspect-ratio: 16 / 10; border-radius: 10px; background: #0f1420; color: #d8e1f3; padding: 16px; display: grid; align-content: start; gap: 8px; font: 13px/1.4 var(--font-mono); }
.term b { color: #7cc4ff; font-weight: 500; }
.term__ok { color: #8ee0a6; }
.term--inline { aspect-ratio: auto; padding: 12px 14px; }
.cards4 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gutter); }
.cards4 > :nth-child(-n + 2) { grid-column: span 3; } .cards4 > :nth-child(n + 3) { grid-column: span 2; }
@media (max-width: 1023px) { .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards4 > * { grid-column: auto !important; } .cards4 > :last-child { grid-column: 1 / -1 !important; } }
@media (max-width: 639px) { .cards4 { grid-template-columns: minmax(0, 1fr); } .cards4 > :last-child { grid-column: auto !important; } }
.note { min-height: 180px; align-content: space-between; }
.note h3 { font-size: var(--t-h3); line-height: 1.2; }
.note__meta { font: 500 13px/1 var(--font-mono); color: var(--p-muted); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); padding-top: var(--s-6); }
.steps__line { position: absolute; left: 0; right: 0; top: 8px; width: 100%; height: 10px; overflow: visible; }
.steps__line line { stroke: rgb(255 255 255 / .7); stroke-width: 2; vector-effect: non-scaling-stroke; }
.step { display: grid; gap: var(--s-3); align-content: start; }
.step__dot { position: absolute; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #ffc658; box-shadow: 0 0 0 5px rgb(255 198 88 / .25); }
.step { position: relative; padding-top: var(--s-5); }
.step__no { font: 500 13px/1 var(--font-mono); color: var(--p-muted); }
.step h3 { margin: 0; font-family: var(--font-display); font-stretch: 86%; font-weight: 650; font-size: clamp(36px, 4vw, 56px); line-height: 1; }
.step p { margin: 0; max-width: 36ch; }
.step__gives { font: 13px/1.5 var(--font-mono); color: var(--p-muted); }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.person { padding: var(--s-5); display: grid; grid-template-columns: 200px 1fr; gap: var(--s-5); align-items: start; }
/* the portrait: photo underneath, anime on top; the pixel swap paints the change on a canvas over both */
.person__photo { position: relative; width: 200px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: clip; background: #0b4fe0; cursor: pointer; box-shadow: 0 20px 40px -24px rgb(0 0 0 / .45); }
.person__photo:focus-visible { outline: 2px solid #ffc658; outline-offset: 3px; }
.person__photo img, .person__photo .swap__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; border-radius: 0; }
.person__photo [data-to] { opacity: 0; }
.person__photo .swap__canvas { opacity: 0; }
.person__photo[data-state="swap"] .swap__canvas { opacity: 1; }
.person__photo[data-state="to"] [data-to] { opacity: 1; }
/* without the script (or with reduced motion) the anime portrait simply fades in */
.person__photo:not([data-state]) [data-to] { transition: opacity .4s ease; }
.person__photo:not([data-state]):is(:hover, :focus-visible) [data-to] { opacity: 1; }
.person h3 { margin: 0; font-size: var(--t-card); font-weight: 500; }
.person__role { margin: 4px 0 var(--s-3); font: 500 13px/1.3 var(--font-mono); color: var(--p-muted); }
.person p { margin-top: 0; }
@media (max-width: 1023px) { .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .cards3, .steps, .team { grid-template-columns: minmax(0, 1fr); }
  .term span { overflow-wrap: anywhere; }
  .steps__line { display: none; }
  .person { grid-template-columns: minmax(0, 1fr); } .person__photo { width: min(100%, 260px); }
}


/* 5. landing: the light turns gold over the cloud sea */
.landing { position: relative; min-height: 100svh; padding-top: calc(var(--nav) + var(--s-10)) !important; overflow: clip; }
.landing .wrap { position: relative; z-index: 1; }
.landing h2 { font-size: clamp(48px, 7vw, 112px); max-width: 12ch; }
.landing p { font-size: var(--t-lead); max-width: 44ch; margin: var(--s-5) 0 var(--s-6); }
.foot-row { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding-block: var(--s-5); font-size: 14px; text-shadow: 0 1px 8px rgb(0 0 0 / .35); }
.foot-row .wrap { display: flex; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.foot-row a { color: inherit; }

@media (max-width: 639px) {
  .sky-hero .btn-row { flex-direction: column; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .weather { height: auto; } .weather__hold { position: relative; height: auto; padding-block: 15svh; display: grid; gap: 12px; } .weather__line, .weather__sub { opacity: 1; color: #fff; } .weather__w { position: static; translate: none; opacity: 1; text-align: center; }
}
