@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;1,9..144,500&family=Outfit:wght@400;500;600;700&family=Space+Mono&display=swap');

/* One evening palette: the page is always dark, like its night-time artwork. */
:root {
  color-scheme: dark;
  --page: #0b0b0f; --surface: #16161c; --text: #ffffff; --muted: #c4c5cb;
  --accent: #f9a7ca; --pink: #fda1c7; --on-pink: #2a1726; --pink-outline: #b88b9b;
  --line: #26262e; --ring: #2e2e36; --hover: #1d1c24;
  --hero-mid: #0b0b0fed; --hero-clear: #0b0b0f00;
  --display: 'Fraunces', Georgia, serif; --body: 'Outfit', sans-serif; --utility: 'Space Mono', monospace;
  --card-image-size: clamp(70px, 17.8dvh, 190px);
  font-family: var(--body); color: var(--text); background: var(--page); font-synthesis: none;
}
* { box-sizing: border-box; }
html { height: 100%; overflow: hidden; }
body { margin: 0; height: 100dvh; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
main, footer { width: 100%; min-width: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 42px; padding: 11px 22px; background: var(--pink); color: var(--on-pink); border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 600; transition: box-shadow .18s; }
.button:hover { background: #ffb9d6; }
.button.secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.button.secondary:hover { background: var(--hover); }
main { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 8px; padding-bottom: 14px; }
/* The artwork carries its own left and bottom shading, so the desktop shade only guards wide screens. */
.hero { position: relative; isolation: isolate; min-height: 0; margin-bottom: -4px; overflow: hidden; display: flex; align-items: center; container: hero / size; }
.hero-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, var(--page), var(--hero-clear) 18%); }
.hero-copy { width: min(62%, 800px); padding: clamp(12px, 3dvh, 36px) 0 clamp(12px, 3dvh, 36px) 44px; }
.hero-signature { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(10px, 2.4cqh, 22px); }
.hero-signature .eyebrow { margin: 0; }
.hero-signature > img { width: 22px; height: 22px; }
.hero-tagline { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.25; margin: 0 0 clamp(12px, 3.6cqh, 24px); letter-spacing: -.4px; font-variation-settings: 'SOFT' 0, 'WONK' 0; }
.eyebrow { margin: 0 0 clamp(8px, 1.5dvh, 18px); color: var(--accent); font-family: var(--utility); font-size: 9px; letter-spacing: 1.1px; text-transform: uppercase; line-height: 1.6; }
h1, h2 { font-family: var(--display); font-weight: 500; font-variation-settings: 'SOFT' 30, 'WONK' 1; }
h1 { font-size: clamp(38px, 7.8dvh, 86px); line-height: 1.05; letter-spacing: -3px; margin: 0 0 clamp(10px, 1.8dvh, 20px); }
h1 em { color: var(--accent); font-weight: 500; }
.intro { font-size: 13.3px; line-height: 21px; max-width: 372px; margin: 0 0 15px; text-wrap: pretty; }
.hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 11px; max-width: 375px; }
.hero-actions .button { min-height: 42px; font-size: 13px; gap: 12px; padding: 8px 16px; }
.hero-actions .secondary { border-color: var(--pink-outline); }
.hero-actions .mac-download { grid-column: 1 / -1; min-height: 48px; justify-content: flex-start; padding-inline: 14px 16px; border-color: var(--line); gap: 10px; }
.apple-icon { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.mac-download > span { text-align: left; line-height: 1.2; }
.mac-download small { display: block; font-size: 8.5px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.mac-download > .icon:last-child { margin-left: auto; }
.access-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 9px; color: var(--muted); font-size: 9.5px; margin: 14px 0 0; line-height: 1.5; }
.access-note strong { font-family: var(--utility); font-size: 8px; font-weight: 400; text-transform: uppercase; letter-spacing: .7px; color: var(--accent); padding: 3px 5px; border: 1px solid var(--ring); border-radius: 3px; }
.pathways, .discover { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; padding-inline: 26px; min-height: 0; }
.pathway { display: flex; align-items: center; gap: 14px; min-height: clamp(64px, 9.3dvh, 110px); padding: 10px 19px 10px 21px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: box-shadow .18s; }
.pathway:hover { background: var(--hover); }
.pathway-icon { width: 30px; height: 30px; color: var(--accent); stroke-width: 1.5; }
.pathway h2 { font-size: 17.5px; font-weight: 600; letter-spacing: -.4px; margin: 0 0 5px; line-height: 1.15; }
.pathway p { margin: 0; font-size: 10.3px; line-height: 1.5; color: var(--muted); }
.round-arrow { display: grid; place-items: center; width: 31px; height: 31px; flex-shrink: 0; border: 1px solid var(--ring); border-radius: 50%; margin-left: auto; color: var(--muted); }
.round-arrow .icon { width: 15px; height: 15px; }
.discovery-card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); position: relative; }
.card-image { height: var(--card-image-size); position: relative; overflow: hidden; border-radius: 9px 9px 0 0; background: #201c24; }
.card-image > img { width: 100%; height: 100%; object-fit: cover; }
.image-label { position: absolute; z-index: 1; bottom: 10px; left: 14px; color: #fff; font-size: 9px; font-weight: 500; letter-spacing: .2px; text-shadow: 0 1px 6px #000a; }
.card-copy { display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 6px 18px 6px 15px; }
.card-copy h2 { font-size: 19px; font-weight: 600; letter-spacing: -.5px; line-height: 1.2; margin: 0; }
.card-open { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; margin-left: auto; }
.card-open::after { content: ''; position: absolute; inset: 0; border-radius: 11px; }
.card-open:hover { color: var(--accent); }
.discovery-card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; padding: 6px 26px; border-top: 1px solid var(--line); }
.footer-links { display: flex; align-items: center; gap: 22px; }
.footer-links a { display: inline-flex; align-items: center; gap: 7px; padding-block: 3px; }
.footer-links a:hover { color: var(--accent); }
footer p, .footer-links { color: var(--muted); font-size: 9.5px; margin: 0; }
footer .icon { width: 14px; height: 14px; }
.skip { position: absolute; top: -60px; left: 16px; padding: 12px; background: var(--surface); z-index: 10; }
.skip:focus { top: 16px; }

/* Native modal dialogs occupy the top layer, above all page content. */
.detail-dialog { width: min(860px, calc(100% - 32px)); height: min(520px, calc(100dvh - 32px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); overflow: hidden; z-index: 100; box-shadow: 0 24px 100px #00000055; }
.detail-dialog::backdrop { background: #05060ac7; backdrop-filter: blur(8px); }
.dialog-close { position: absolute; z-index: 1; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 50%; font-size: 26px; line-height: 1; }
.detail-content { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); height: 100%; }
.detail-art { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: var(--focus, 60%) center; }
.detail-copy { padding: 48px 36px 32px; min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.detail-copy h2 { font-size: 37px; letter-spacing: -1.3px; line-height: 1.1; margin: 0 0 18px; }
.detail-copy > p:not(.eyebrow):not(.access-note) { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0 0 24px; }
.detail-copy .access-note { font-size: 9px; }

@media (max-width: 1100px) {
  .hero-copy { width: 58%; padding-left: 32px; }
  .hero-shade { background: linear-gradient(90deg, var(--page), var(--hero-mid) 30%, var(--hero-clear) 95%), linear-gradient(0deg, var(--page), var(--hero-clear) 23%); }
  .pathways, .discover { padding-inline: 24px; }
  .pathway { gap: 12px; padding: 14px; }
  .pathway h2 { font-size: 19px; }
  .pathway .round-arrow { display: none; }
  .card-copy { padding: 12px 14px; }
  .card-copy h2 { font-size: 18px; }
}
@media (max-height: 700px) { .intro { display: none; } }
@media (max-width: 760px) {
  :root { --card-image-size: clamp(54px, 11dvh, 96px); }
  main { gap: 10px; padding-bottom: 10px; }
  .hero { align-items: flex-end; }
  .hero-art { object-position: 70% 35%; }
  .hero-shade { background: linear-gradient(0deg, var(--page) 0%, var(--hero-mid) 30%, var(--hero-clear) 85%); }
  .hero-copy { width: 100%; padding: 18px 24px 10px; }
  .hero-tagline { font-size: 20px; margin-bottom: 18px; }
  .hero-signature > img { width: 25px; height: 25px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.6px; margin-bottom: 10px; }
  h1 { font-size: clamp(34px, 6dvh, 54px); letter-spacing: -1.8px; margin-bottom: 14px; }
  .intro { font-size: 13px; margin-bottom: 14px; max-width: 440px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { font-size: 12px; padding: 10px; gap: 6px; min-height: 46px; }
  .hero-actions .icon { width: 16px; height: 16px; }
  .access-note { font-size: 10px; margin-top: 12px; gap: 6px; }
  .access-note strong { font-size: 8px; padding: 3px 5px; }
  .pathways, .discover { padding-inline: 20px; gap: 8px; }
  .pathway { min-height: 54px; flex-direction: column; justify-content: center; gap: 5px; padding: 9px 5px; text-align: center; }
  .pathway-icon { width: 22px; height: 22px; }
  .pathway h2 { font-family: var(--body); font-size: 12px; font-weight: 500; letter-spacing: 0; margin: 0; }
  .pathway p, .pathway .round-arrow { display: none; }
  .image-label, .card-open > .icon { display: none; }
  .card-copy { padding: 10px 8px; }
  .card-copy h2 { font-size: 14px; letter-spacing: -.4px; }
  .card-open { position: absolute; inset: 0; width: 100%; height: 100%; }
  footer { padding: 10px 20px; gap: 12px; }
  .footer-links { width: 100%; justify-content: space-between; gap: 12px; font-size: 10px; }
  footer p { display: none; }
  .detail-dialog { width: calc(100% - 24px); height: min(620px, calc(100dvh - 24px)); border-radius: 14px; }
  .detail-content { grid-template-columns: 1fr; grid-template-rows: minmax(0, .6fr) minmax(0, 1fr); }
  .detail-copy { padding: 22px; }
  .detail-copy h2 { font-size: 30px; margin-bottom: 14px; }
  .detail-copy > p:not(.eyebrow):not(.access-note) { font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
}
@media (max-width: 370px) {
  .hero-copy { padding-inline: 20px; }
  .pathways, .discover { padding-inline: 14px; gap: 6px; }
  .card-copy h2 { font-size: 13px; }
  footer { padding-inline: 14px; }
}
@media (max-height: 620px) {
  :root { --card-image-size: 56px; }
  .pathway { min-height: 46px; padding-block: 8px; }
  .pathway p { display: none; }
  .hero-copy { padding-block: 12px; }
  h1 { font-size: clamp(30px, 7dvh, 44px); }
  .eyebrow { margin-bottom: 8px; }
  footer { padding-block: 8px; }
  .detail-content { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .detail-art { display: none; }
  .detail-copy { padding: 48px 24px 24px; }
  .detail-copy h2 { font-size: 30px; }
  .detail-copy > p:not(.eyebrow):not(.access-note) { font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
}
@media (max-height: 480px) and (min-width: 500px) {
  main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 8px; padding: 8px 18px; }
  .hero { grid-row: 1 / -1; border-radius: 10px; }
  .hero-copy { width: 100%; padding: 18px; }
  .hero-shade { background: linear-gradient(90deg, var(--hero-mid), var(--hero-mid) 20%, var(--hero-clear)); }
  h1 { font-size: clamp(27px, 9dvh, 40px); }
  .hero-actions .button { min-height: 34px; padding: 8px 12px; font-size: 11px; }
  .access-note { font-size: 7px; }
  .discover { grid-column: 2; grid-row: 1; padding: 0; }
  .discovery-card { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
  .card-image { height: 100%; min-height: 0; }
  .card-copy { padding: 8px; }
  .card-copy h2 { font-size: 13px; }
  .card-open { position: absolute; inset: 0; width: 100%; height: 100%; }
  .card-open > .icon, .image-label { display: none; }
  .pathways { grid-column: 2; grid-row: 2; padding: 0; gap: 6px; }
  .pathway { min-height: 38px; padding: 6px; gap: 6px; flex-direction: row; }
  .pathway-icon { width: 16px; height: 16px; }
  .pathway h2 { font-family: var(--body); font-size: 10px; letter-spacing: 0; margin: 0; }
  .round-arrow { display: none; }
  footer { padding: 7px 18px; }
  footer p { display: none; }
  .detail-copy { padding-top: 40px; }
  .detail-copy h2 { font-size: 28px; }
  .detail-copy .button { min-height: 36px; padding-block: 8px; }
}
@media (max-width: 370px) {
  .detail-copy { padding-inline: 18px; }
  .detail-copy h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .button, .pathway { transition: none; } }

/* Scale the hero to the space remaining after navigation and cards. */
.hero-copy { padding-block: clamp(8px, 4cqh, 30px); }
.hero-copy h1 { font-size: clamp(34px, min(16cqh, 16cqw), 110px); }
@container hero (max-height: 480px) {
  .intro { display: none; }
}
/* Phones keep the shorter hero: the intro would push the copy into the bright top of the art. */
@container hero (max-height: 640px) and (max-width: 760px) {
  .intro { display: none; }
}
@container hero (max-height: 400px) {
  .hero-copy { padding-block: 8px; }
  .hero-copy h1 { font-size: clamp(28px, min(12cqh, 13cqw), 50px); letter-spacing: -1.5px; margin-bottom: 10px; }
  .hero-signature { margin-bottom: 8px; }
  .hero-signature > img { width: 20px; height: 20px; }
  .hero-signature .eyebrow { font-size: 7px; letter-spacing: 1px; }
  .hero-tagline { font-size: 17px; margin-bottom: 12px; }
  .hero-actions .button { min-height: 36px; font-size: 11px; padding: 8px; gap: 6px; }
  .hero-actions .icon { width: 15px; height: 15px; }
  .mac-download small { font-size: 8px; margin-top: 2px; }
  .hero-copy .access-note { font-size: 8px; gap: 6px; margin-top: 8px; }
  .hero-copy .access-note strong { font-size: 7px; padding: 2px 4px; }
}
@container hero (max-height: 260px) {
  .hero-copy { padding-block: 6px; }
  .hero-signature { margin-bottom: 6px; }
  .hero-tagline { font-size: 15px; margin-bottom: 8px; }
  .hero-actions .button { font-size: 10px; white-space: nowrap; }
  .hero-copy .access-note { font-size: 7px; }
}
@container hero (max-height: 160px) {
  .hero-copy { padding-block: 6px; }
  .hero-copy .eyebrow { display: none; }
  .hero-copy h1 { font-size: 24px; line-height: 1.02; margin-bottom: 8px; letter-spacing: -1px; }
  .hero-actions .button { min-height: 32px; padding: 6px 12px; font-size: 11px; }
  .hero-copy .access-note { font-size: 7px; margin-top: 6px; }
}
