/* Magic Education: the paper-and-ink tools department of Magic Institution. */
@view-transition { navigation: auto; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body.products-page { margin: 0; overflow-x: clip; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.6; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid #65559b; outline-offset: 5px; }
::selection { background: #d7e56f; color: var(--ink); }
.page-width { width: min(1240px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.eyebrow { font: 10px/1.5 var(--font-code); letter-spacing: .09em; text-transform: uppercase; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 20; padding: 12px 20px; color: var(--paper); background: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.products-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--gutter); border-bottom: 1px solid var(--brand-line-paper); }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { display: block; width: 154px; height: auto; }
.products-header nav { display: flex; align-items: center; gap: 30px; }
.products-header nav a { display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; text-decoration: none; }
.products-header nav a[aria-current] { box-shadow: inset 0 -2px #65559b; }
.products-header nav a:hover { color: #65559b; }
.products-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; padding-block: 84px 90px; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 8px; color: #5e5b56; margin-bottom: 26px; }
.status-dot { width: 6px; height: 6px; background: #536b46; border-radius: 50%; }
h1 { font-size: clamp(42px, 4.9vw, 72px); font-weight: 600; line-height: 1.08; letter-spacing: -.065em; }
h1 em, .makers h2 em { font-family: var(--font-ceremony); font-weight: 400; letter-spacing: -.055em; }
h1 em { color: #66567e; }
.hero-lede { max-width: 44ch; margin-top: 24px; color: #57544e; font-size: 17px; line-height: 1.7; }
.button { min-height: 50px; padding: 13px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; font-size: 14px; font-weight: 600; line-height: 1.45; text-decoration: none; border: 1px solid transparent; transition: background .18s, transform .18s; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--paper-2); }
.button-dark:hover { background: #34314d; }
.hero-cta { margin-top: 28px; }
.hero-caption { margin-top: 14px; font-size: 11px; color: #68645c; }
.tool-directory { position: relative; border: 1px solid #c5bca9; background: var(--paper-2); box-shadow: 7px 7px 0 -1px var(--paper), 7px 7px 0 #c5bca9, 14px 14px 0 -1px var(--paper), 14px 14px 0 #c5bca9, 0 20px 50px #342b4810; padding: 24px 28px 18px; transform: rotate(1deg); }
.tool-directory::before { content: ''; position: absolute; width: 92px; height: 23px; top: -13px; left: 36%; background: #c3b99570; border: 1px solid #b7a97830; transform: rotate(-6deg); }
.directory-head { display: flex; align-items: center; justify-content: space-between; color: #6c665b; }
.directory-number { font: 32px/1 var(--font-code); color: #655777; letter-spacing: -.1em; }
.directory-number span { font-size: 19px; vertical-align: super; margin-left: 3px; }
.directory-title { margin: 18px 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -.035em; }
.tool-directory nav a { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: center; padding: 18px 0; text-decoration: none; border-top: 1px solid var(--brand-line-paper); }
.directory-index { font: 10px/1 var(--font-code); color: #817866; }
.tool-directory strong { display: block; font-size: 15px; font-weight: 500; }
.tool-directory small { display: block; font-size: 12px; color: #68645c; margin-top: 2px; }
.tool-directory a:hover strong { color: #65559b; text-decoration: underline; text-underline-offset: 4px; }
.directory-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--brand-line-paper); padding-top: 20px; margin-top: 6px; color: #766e60; }
.stamp { border: 1px solid #746286; padding: 4px 8px; color: #746286; font: 10px/1.4 var(--font-code); letter-spacing: .12em; transform: rotate(-8deg); }
.catalog { padding-block: 35px 64px; border-top: 1px solid var(--brand-line-paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading .eyebrow, .faq .eyebrow { color: #726a5e; margin-bottom: 10px; }
h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; font-weight: 500; letter-spacing: -.05em; }
.section-heading > p { font-size: 13px; line-height: 1.6; color: #68645c; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.product { --accent: #345872; --tint: #e2e7e4; display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid #d3caba; border-top: 3px solid var(--accent); background: var(--paper-2); scroll-margin-top: 24px; }
.product-market { --accent: #775b29; --tint: #eee4c9; }
.product-hire { --accent: #665477; --tint: #e9e2ed; }
.product-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; color: var(--accent); }
.product-logo { display: block; width: clamp(112px, 13vw, 150px); height: auto; object-fit: contain; }
.product-audience { color: var(--accent); font-size: 11px; margin-bottom: 8px; }
.product h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -.06em; }
.product-pitch { margin-top: 20px; font-size: 18px; line-height: 1.45; letter-spacing: -.025em; font-weight: 500; }
.product-description { margin-top: 12px; font-size: 13px; line-height: 1.75; color: #625d53; min-height: 69px; }
.features { padding: 20px 0 24px; margin: 20px 0 0; list-style: none; border-top: 1px solid var(--brand-line-paper); display: grid; gap: 12px; }
.features li { padding-left: 19px; position: relative; font-size: 13px; line-height: 1.55; }
.features li::before { content: '+'; position: absolute; left: 0; color: var(--accent); font-family: var(--font-code); }
.product-bottom { margin-top: auto; }
.price { padding-top: 22px; border-top: 1px solid var(--brand-line-paper); }
.price-label { display: block; font-size: 12px; color: #625d53; }
.price strong { display: block; font-size: 38px; font-weight: 500; line-height: 1.4; letter-spacing: -.055em; }
.price strong span { font-size: 17px; letter-spacing: -.02em; }
.price p { font-size: 12px; color: #625d53; min-height: 39px; }
summary { cursor: pointer; }
.plan-details { margin-top: 12px; border-block: 1px dashed #c9bfad; }
.plan-details summary { min-height: 56px; padding: 15px 18px 15px 0; font-size: 12px; font-weight: 500; position: relative; list-style: none; }
.plan-details summary::after { content: '+'; position: absolute; right: 0; top: 15px; }
.plan-details[open] summary::after { content: '−'; }
summary::-webkit-details-marker { display: none; }
.plan-details > div { padding-bottom: 18px; font-size: 12px; }
.plan-details p + p { margin-top: 12px; }
.plan-details a { display: inline-block; margin-top: 12px; color: var(--accent); }
.product-note { display: flex; align-items: center; min-height: 58px; font-size: 11px; color: #625d53; margin-top: 12px; border-block: 1px dashed #c9bfad; }
.button-product { display: flex; background: var(--accent); color: #fff; margin-top: 20px; gap: 8px; padding-inline: 15px; font-size: 13px; }
.button-product:hover { background: color-mix(in srgb, var(--accent) 85%, #121524); }
.secondary-link, .secondary-note { display: flex; align-items: center; justify-content: center; min-height: 44px; text-align: center; margin-top: 4px; font-size: 11px; gap: 5px; }
.secondary-note { color: #625d53; font-size: 10px; }
.catalog-note { margin-top: 22px; font-size: 12px; color: #68645c; }
.makers { background: var(--night); color: var(--paper); }
.makers-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-block: 65px; }
.makers .eyebrow { color: #c4bba7; }
.makers h2 { margin-top: 22px; font-size: clamp(40px, 4.4vw, 58px); line-height: 1.05; }
.makers h2 em { color: #d1c0db; }
.makers-seal { display: inline-block; margin-top: 28px; border: 1px solid #918574; color: #c4bba7; padding: 7px 12px; font: 9px/1.5 var(--font-code); letter-spacing: .12em; transform: rotate(-5deg); text-align: center; }
.makers-copy { padding-top: 5px; }
.makers-copy > p { max-width: 48ch; font-size: 16px; line-height: 1.85; color: #dbd5c7; }
.makers-copy > p + p { margin-top: 18px; }
.authors { border-top: 1px solid var(--brand-line-dark); margin-top: 26px; padding-top: 20px; }
.authors p { margin-top: 8px; font-size: 15px; line-height: 1.6; }
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; padding-block: 76px; }
.faq-intro { font-size: 13px; color: #625d53; margin-top: 22px; line-height: 1.9; }
.faq-items details { border-bottom: 1px solid #c9bfad; }
.faq-items details:first-child { border-top: 1px solid #c9bfad; }
.faq-items summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; padding: 20px 0; font-size: 15px; font-weight: 500; line-height: 1.5; }
.faq-items summary::after { content: '+'; font: 20px/1 var(--font-code); color: #746286; }
.faq-items details[open] summary::after { content: '−'; }
.faq-items details > div { padding: 0 26px 22px 0; font-size: 14px; color: #625d53; line-height: 1.8; }
.products-footer { border-top: 1px solid #c9bfad; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; padding-block: 38px; }
.footer-inner p { margin-top: 12px; color: #68645c; font: italic 16px/1.6 var(--font-ceremony); }
.footer-inner nav { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-inner nav a { display: inline-flex; align-items: center; min-height: 38px; font-size: 12px; text-decoration: none; }
.footer-inner nav a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--brand-line-paper); padding-block: 18px; display: flex; justify-content: space-between; gap: 20px; color: #68645c; font-size: 10px; }
@media (max-width: 1050px) {
  .products-hero { gap: 44px; }
  .tool-directory { padding-inline: 20px; }
  .directory-title { font-size: 18px; }
  .tool-directory strong { font-size: 13px; }
  .product { padding: 20px; }
  .product-top .eyebrow { font-size: 8px; }
  .product-pitch { font-size: 16px; }
  .product-description { min-height: 91px; }
}
@media (max-width: 820px) {
  .products-hero { grid-template-columns: 1fr; gap: 52px; padding-block: 54px 60px; }
  h1 { font-size: clamp(42px, 8vw, 66px); }
  .hero-lede { max-width: 52ch; }
  .tool-directory { width: calc(100% - 14px); max-width: 540px; justify-self: center; transform: none; }
  .tool-directory strong { font-size: 15px; }
  .directory-title { font-size: 20px; }
  .product-grid { grid-template-columns: 1fr; gap: 20px; }
  .product { padding: 28px; }
  .product-top { margin-bottom: 18px; }
  .product-top .eyebrow { font-size: 10px; }
  .product h3 { font-size: 34px; }
  .product-pitch { font-size: 20px; }
  .product-description, .price p { min-height: 0; }
  .product-description, .features li { font-size: 14px; }
  .secondary-note { font-size: 11px; }
  .makers-inner { gap: 36px; }
  .faq { grid-template-columns: 1fr; gap: 30px; padding-block: 54px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .products-header { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 18px 8px; }
  .brand img { width: 144px; }
  .products-header nav { width: 100%; justify-content: space-between; gap: 16px; }
  .products-header nav a { font-size: 13px; }
  .products-hero { padding-top: 38px; }
  .hero-copy > .eyebrow { font-size: 9px; gap: 6px; margin-bottom: 22px; }
  h1 { font-size: clamp(36px, 10.5vw, 54px); }
  .hero-lede { font-size: 15px; margin-top: 20px; }
  .hero-cta { width: 100%; margin-top: 24px; }
  .hero-caption { font-size: 10px; }
  .tool-directory { padding: 20px 18px 16px; }
  .directory-head .eyebrow { font-size: 9px; }
  .tool-directory strong { font-size: 13px; }
  .directory-foot .eyebrow { font-size: 9px; }
  .stamp { font-size: 8px; }
  .section-heading { align-items: flex-start; }
  .section-heading > p { display: none; }
  .catalog { padding-block: 28px 40px; }
  .product { padding: 24px; }
  .product h3 { font-size: 32px; }
  .makers-inner { grid-template-columns: 1fr; gap: 36px; padding-block: 44px; }
  .makers-copy > p { font-size: 15px; }
  .makers-seal { margin-top: 24px; }
  .faq-items summary { font-size: 14px; }
  .footer-inner { gap: 24px 14px; }
  .footer-inner nav a { min-height: 44px; font-size: 11px; }
  .footer-bottom { font-size: 9px; gap: 10px; }
  .footer-bottom .eyebrow { font-size: 8px; }
}
/* Motion follows the school's paper, pearl light and institutional seals. */
.products-hero { position: relative; isolation: isolate; }
.products-hero::before { content: ''; position: absolute; z-index: -1; pointer-events: none; inset: 5% 0 8%; border-radius: 45%; background: radial-gradient(ellipse at 25% 35%, #c5b8dc70, transparent 55%), radial-gradient(ellipse at 75% 65%, #b9d4cc80, transparent 55%); filter: blur(32px); animation: bureau-light 16s ease-in-out infinite alternate; animation-play-state: paused; }
.products-hero.motion-visible::before, .makers.motion-visible::before { animation-play-state: running; }
.hero-copy h1 em { position: relative; display: inline-block; }
.hero-copy h1 em::after { content: ''; position: absolute; inset: auto 0 -5px; height: 2px; background: currentColor; opacity: .35; transform-origin: left; animation: bureau-underline 1.1s cubic-bezier(.2,.7,.2,1) both; }
.tool-directory { transform: perspective(1000px) rotate(1deg) rotateX(var(--lean-x, 0deg)) rotateY(var(--lean-y, 0deg)); transition: transform .35s ease-out, box-shadow .35s; }
.tool-directory nav a { transition: padding .25s, background .25s; }
.tool-directory nav a:hover, .tool-directory nav a:focus-visible { padding-inline: 10px; background: #66547709; }
.product { position: relative; isolation: isolate; transform: perspective(1200px) rotateX(var(--lean-x, 0deg)) rotateY(var(--lean-y, 0deg)); transition: transform .35s ease-out, box-shadow .35s, border-color .35s; }
.product::before { content: ''; position: absolute; z-index: -1; pointer-events: none; inset: 0; opacity: 0; background: radial-gradient(circle at var(--light-x, 50%) var(--light-y, 30%), var(--tint), transparent 65%); transition: opacity .4s; }
.product:focus-within { box-shadow: 0 12px 30px #30254212; }
.product-logo { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.features li::before { transition: transform .3s; }
.features li:hover::before { transform: rotate(90deg); }
.makers { position: relative; isolation: isolate; overflow: hidden; }
.makers::before { content: ''; position: absolute; z-index: -1; pointer-events: none; width: 65%; height: 120%; right: -10%; top: -10%; background: radial-gradient(ellipse, #88719a30, transparent 65%); animation: bureau-light 18s ease-in-out infinite alternate; animation-play-state: paused; }
.makers-seal { transition: transform .3s; }
.makers-seal:hover { transform: rotate(0); }
.button:active { transform: translateY(1px) scale(.985); }
.motion-paused *, .motion-paused::before, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
@keyframes bureau-light { from { transform: translate3d(-2%, -1%, 0) scale(.95) rotate(-3deg); } to { transform: translate3d(2%, 2%, 0) scale(1.05) rotate(3deg); } }
@keyframes bureau-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) {
  .product:hover { box-shadow: 0 18px 38px #30254215; border-color: var(--accent); }
  .product:hover::before { opacity: .55; }
  .product:hover .product-logo { transform: translateY(-5px) rotate(-3deg); }
}
@media (max-width: 820px) {
  .tool-directory { transform: none; }
  .products-hero::before { filter: blur(20px); }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover, .button:active, .product, .product:hover .product-logo { transform: none; }
}


/* Cinematic motion pass — borrows the school's sense of movement without its heavy 3D scene. */
.products-hero { min-height: 620px; overflow: hidden; }
.products-aurora {
  position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%;
  pointer-events: none; opacity: .78;
  mask-image: linear-gradient(90deg, #000 0 72%, transparent 100%);
}
.products-glyph-field {
  --gx: 0px; --gy: 0px; position: absolute; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.products-glyph-field > span {
  position: absolute; display: block; color: #65559b;
  font: 600 clamp(80px, 11vw, 170px)/1 var(--font-code);
  letter-spacing: -.12em; opacity: .055;
  transform: translate3d(var(--gx), var(--gy), 0) rotate(var(--gr, 0deg));
  animation: products-glyph-drift var(--gd, 9s) ease-in-out infinite alternate;
  will-change: transform;
}
.products-glyph-field > span:nth-child(1) { left: -3%; top: 12%; --gr: -9deg; --gd: 9s; }
.products-glyph-field > span:nth-child(2) { left: 38%; top: -10%; --gr: 8deg; --gd: 11s; }
.products-glyph-field > span:nth-child(3) { right: 4%; bottom: -8%; --gr: -6deg; --gd: 12s; }
.products-glyph-field > span:nth-child(4) { right: 24%; top: 9%; --gr: 12deg; --gd: 10s; font-size: clamp(70px, 8vw, 120px); }
.products-glyph-field > span:nth-child(5) { left: 27%; bottom: 4%; --gr: -12deg; --gd: 13s; font-size: clamp(64px, 7vw, 105px); }
.status-dot { box-shadow: 0 0 0 0 #536b4666; animation: products-status-pulse 2.4s ease-out infinite; }

.tool-directory { overflow: hidden; }
.tool-directory::after {
  content: ''; position: absolute; inset: -45% -80%; pointer-events: none;
  background: linear-gradient(110deg, transparent 43%, #fff9 50%, transparent 57%);
  transform: translateX(-38%) rotate(-4deg); opacity: 0; transition: opacity .25s;
}
.tool-directory:hover::after, .tool-directory:focus-within::after {
  opacity: .48; animation: products-paper-sheen 1.15s ease-out 1;
}

.product-tape {
  position: relative; z-index: 4; width: 104%; margin: -22px -2% 58px; overflow: hidden;
  border-block: 1px solid #242135; background: var(--ink); color: var(--paper-2);
  transform: rotate(-1.35deg); box-shadow: 0 12px 24px #2f294011;
}
.product-tape__track {
  display: flex; width: max-content; padding: 11px 0 10px; white-space: nowrap;
  font: 600 11px/1 var(--font-code); letter-spacing: .12em; text-transform: uppercase;
  will-change: transform;
}
.product-tape__track span { display: block; padding-right: 1.1em; }

.product { overflow: hidden; transform-style: preserve-3d; will-change: transform; }
.product::after {
  content: ''; position: absolute; z-index: 3; inset: -35%; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, #fff8 48%, #ffffff16 52%, transparent 60%);
  transform: translate3d(-46%, 0, 0) rotate(7deg); opacity: 0;
  transition: transform .75s cubic-bezier(.2,.7,.2,1), opacity .25s;
}
.product > * { position: relative; z-index: 4; }
.product-logo { filter: drop-shadow(0 10px 20px #31283c10); transform-origin: 50% 65%; }
.product h3, .product-pitch, .price strong { transform: translateZ(16px); }

.button-product { position: relative; overflow: hidden; }
.button-product::after {
  content: '→'; margin-left: auto; font: 16px/1 var(--font-code); transition: transform .25s ease;
}
.button-product:hover::after, .button-product:focus-visible::after { transform: translateX(4px); }

.makers::after {
  content: 'MAGIC / TOOLS / 03½'; position: absolute; right: -1.5vw; bottom: -2vw;
  pointer-events: none; color: #fff; font: 700 clamp(52px, 8vw, 118px)/.8 var(--font-code);
  letter-spacing: -.09em; opacity: .018; transform: rotate(-5deg);
}
.makers-seal.motion-stamped { animation: products-stamp .55s cubic-bezier(.2,.9,.25,1.15) both; }
.faq-items details { transition: background .25s, padding-inline .25s; }
.faq-items details:hover, .faq-items details:focus-within { background: #66547708; padding-inline: 12px; }

@media (hover: hover) and (pointer: fine) {
  .product:hover::after { opacity: .34; transform: translate3d(44%, 0, 0) rotate(7deg); }
  .product:hover {
    transform: perspective(1200px) translateY(-8px) rotateX(var(--lean-x, 0deg)) rotateY(var(--lean-y, 0deg));
    box-shadow: 0 28px 54px #30254218;
  }
  .product:hover .product-logo { transform: translateY(-8px) rotate(-5deg) scale(1.045); }
}
@keyframes products-glyph-drift { 0% { translate: -8px -5px; } 100% { translate: 10px 12px; } }
@keyframes products-status-pulse {
  0% { box-shadow: 0 0 0 0 #536b4666; }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}
@keyframes products-paper-sheen {
  0% { transform: translateX(-42%) rotate(-4deg); }
  100% { transform: translateX(42%) rotate(-4deg); }
}
@keyframes products-stamp {
  0% { opacity: 0; scale: 1.65; rotate: -16deg; filter: blur(3px); }
  58% { opacity: 1; scale: .94; rotate: -3deg; filter: blur(0); }
  100% { opacity: 1; scale: 1; rotate: -5deg; }
}
@media (max-width: 820px) {
  .products-hero { min-height: auto; }
  .products-aurora { opacity: .52; mask-image: linear-gradient(#000 0 68%, transparent 100%); }
  .products-glyph-field > span { opacity: .035; }
  .product-tape { margin-top: -8px; margin-bottom: 44px; }
}
@media (max-width: 520px) {
  .products-glyph-field > span:nth-child(2), .products-glyph-field > span:nth-child(4) { display: none; }
  .product-tape__track { padding-block: 9px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .products-aurora { display: none; }
  .products-glyph-field > span, .status-dot, .makers-seal.motion-stamped { animation: none !important; }
  .product-tape__track { transform: none !important; }
}


/* Glass glyph pass — closer to the floating symbols used on school.html. */
.products-hero {
  overflow: visible;
}
.products-aurora {
  left: 50%;
  right: auto;
  width: 100vw;
  max-width: none;
  transform: translateX(-50%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 74%, transparent 100%);
}
.products-glyph-field {
  --px: 0;
  --py: 0;
  left: 50%;
  right: auto;
  width: 100vw;
  max-width: none;
  transform: translateX(-50%);
  overflow: visible;
  perspective: 900px;
}
.products-glyph-field .product-glyph {
  position: absolute;
  display: block;
  width: auto;
  height: auto;
  color: inherit;
  opacity: 1;
  font: 800 var(--gs, clamp(58px, 7vw, 108px))/1 var(--font-code);
  letter-spacing: -.08em;
  transform-style: preserve-3d;
  transform: translate3d(var(--gx), var(--gy), 0);
  animation:
    product-glyph-emerge 1.45s cubic-bezier(.2,.8,.2,1) both,
    product-glyph-float var(--gd, 9s) ease-in-out infinite alternate;
  animation-delay: calc(.3s + var(--gi, 0) * .11s), var(--delay, 0s);
  will-change: transform;
}
.product-glyph__body {
  position: relative;
  display: block;
  transform-style: preserve-3d;
  transform:
    rotateX(calc(var(--py) * -22deg + var(--tilt-x, 8deg)))
    rotateY(calc(var(--px) * 28deg + var(--tilt-y, -10deg)));
  transition: transform .75s cubic-bezier(.2,.7,.2,1);
}
.product-glyph__slice,
.product-glyph__face {
  position: absolute;
  inset: 0 auto auto 0;
  transform: translateZ(var(--z));
}
.product-glyph__body > :first-child { position: relative; }
.product-glyph__slice {
  color: hsl(calc(260 - var(--shade) * 65) 36% calc(82% - var(--shade) * 28%));
}
.product-glyph__face {
  color: transparent;
  background: linear-gradient(135deg, #fff 5%, #e3d6fb 32%, #a9e0ea 61%, #fde6d2 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px #ffffffd8;
  filter: drop-shadow(0 0 13px #ffffffa8);
}
.products-glyph-field .product-glyph::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -22%;
  height: 15%;
  border-radius: 50%;
  background: #5a5f8a2d;
  filter: blur(9px);
  transform: translateZ(-38px);
}
.products-glyph-field .product-glyph.product-glyph--1 { --gi: 0; --gd: 8s;  --gs: clamp(66px, 7vw, 110px); left: 5%;  top: 9%;  --tilt-y: -16deg; }
.products-glyph-field .product-glyph.product-glyph--2 { --gi: 1; --gd: 10s; --gs: clamp(48px, 5vw, 82px);  left: 28%; top: 4%;  --delay: -3s; --tilt-y: 13deg; }
.products-glyph-field .product-glyph.product-glyph--3 { --gi: 2; --gd: 11s; --gs: clamp(74px, 8vw, 126px); right: 3%; top: 12%; --delay: -5s; --tilt-y: 17deg; }
.products-glyph-field .product-glyph.product-glyph--4 { --gi: 3; --gd: 9s;  --gs: clamp(60px, 6.5vw, 104px); left: 8%;  bottom: 5%; --delay: -2s; }
.products-glyph-field .product-glyph.product-glyph--5 { --gi: 4; --gd: 12s; --gs: clamp(50px, 5.5vw, 88px);  right: 24%; bottom: 2%; --delay: -7s; --tilt-x: -12deg; }
.products-glyph-field .product-glyph.product-glyph--6 { --gi: 5; --gd: 8.7s;--gs: clamp(52px, 6vw, 96px);  left: 47%; top: 15%; --delay: -4s; --tilt-y: 10deg; }
.products-glyph-field .product-glyph.product-glyph--7 { --gi: 6; --gd: 10.8s;--gs: clamp(44px, 4.8vw, 76px); right: 8%; bottom: 21%; --delay: -6s; --tilt-x: 13deg; }
.products-glyph-field .product-glyph.product-glyph--8 { --gi: 7; --gd: 9.6s;--gs: clamp(46px, 5vw, 80px);  left: 37%; bottom: 12%; --delay: -8s; --tilt-y: -18deg; }

@keyframes product-glyph-emerge {
  from { opacity: 0; translate: 0 26px; scale: .18; filter: blur(7px); }
  62% { opacity: 1; filter: none; }
  to { opacity: .82; translate: 0 0; scale: 1; }
}
@keyframes product-glyph-float {
  from { rotate: -3deg; translate: 0 0; }
  to { rotate: 4deg; translate: 0 -18px; }
}
@media (max-width: 820px) {
  .products-aurora {
    mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 86%, transparent 100%);
  }
  .products-glyph-field .product-glyph { opacity: .72; }
  .products-glyph-field .product-glyph.product-glyph--2,
  .products-glyph-field .product-glyph.product-glyph--6,
  .products-glyph-field .product-glyph.product-glyph--8 { display: none; }
}
@media (max-width: 520px) {
  .products-glyph-field .product-glyph.product-glyph--4,
  .products-glyph-field .product-glyph.product-glyph--7 { display: none; }
  .products-glyph-field .product-glyph.product-glyph--1 { left: -1%; top: 12%; }
  .products-glyph-field .product-glyph.product-glyph--3 { right: -2%; top: 18%; }
  .products-glyph-field .product-glyph.product-glyph--5 { right: 9%; bottom: 6%; }
}
@media (prefers-reduced-motion: reduce) {
  .products-glyph-field .product-glyph { animation: none !important; }
  .product-glyph__body { transform: none !important; }
}


/* Mobile composition cleanup: keep the cinematic effect around the copy, not under the whole card. */
@media (max-width: 820px) {
  .products-hero {
    gap: 30px;
    padding-block: 42px 38px;
    overflow: hidden;
  }

  .hero-copy,
  .tool-directory {
    position: relative;
    z-index: 2;
  }

  .products-aurora {
    top: -24px;
    bottom: auto;
    height: 58%;
    width: 118vw;
    opacity: .42;
    mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  }

  .products-glyph-field {
    top: 0;
    bottom: auto;
    height: 54%;
    overflow: hidden;
    opacity: .88;
  }

  .products-glyph-field .product-glyph {
    opacity: .58;
  }

  .products-glyph-field .product-glyph.product-glyph--1 {
    display: block;
    left: -3%;
    top: 8%;
    --gs: 58px;
  }

  .products-glyph-field .product-glyph.product-glyph--3 {
    display: block;
    right: -2%;
    top: 19%;
    --gs: 64px;
  }

  .products-glyph-field .product-glyph.product-glyph--5 {
    display: block;
    right: 6%;
    bottom: 2%;
    --gs: 48px;
  }

  .products-glyph-field .product-glyph.product-glyph--2,
  .products-glyph-field .product-glyph.product-glyph--4,
  .products-glyph-field .product-glyph.product-glyph--6,
  .products-glyph-field .product-glyph.product-glyph--7,
  .products-glyph-field .product-glyph.product-glyph--8 {
    display: none;
  }

  .tool-directory {
    width: 100%;
    max-width: 560px;
    margin-top: 4px;
    justify-self: center;
    box-shadow:
      5px 5px 0 -1px var(--paper),
      5px 5px 0 #c5bca9,
      10px 10px 0 -1px var(--paper),
      10px 10px 0 #c5bca9,
      0 14px 34px #342b480d;
  }

  .hero-caption {
    margin-bottom: 2px;
  }
}

@media (max-width: 520px) {
  .products-hero {
    gap: 24px;
    padding-top: 34px;
    padding-bottom: 30px;
  }

  .hero-copy > .eyebrow {
    margin-bottom: 18px;
  }

  .hero-lede {
    margin-top: 18px;
    line-height: 1.62;
  }

  .hero-cta {
    margin-top: 22px;
  }

  .products-aurora {
    top: -10px;
    height: 56%;
    width: 132vw;
    opacity: .34;
  }

  .products-glyph-field {
    height: 51%;
  }

  .products-glyph-field .product-glyph.product-glyph--1 {
    left: -8%;
    top: 9%;
    --gs: 50px;
  }

  .products-glyph-field .product-glyph.product-glyph--3 {
    right: -7%;
    top: 17%;
    --gs: 54px;
  }

  .products-glyph-field .product-glyph.product-glyph--5 {
    right: 4%;
    bottom: 0;
    --gs: 40px;
  }

  .tool-directory {
    padding: 20px 18px 15px;
  }

  .tool-directory nav a {
    padding-block: 16px;
  }
}
