/* Stepped silhouettes, repeating print and the centered studio masthead. */
:root {
  --pixel-cut: polygon(0 8px,4px 8px,4px 4px,8px 4px,8px 0,
    calc(100% - 8px) 0,calc(100% - 8px) 4px,calc(100% - 4px) 4px,
    calc(100% - 4px) 8px,100% 8px,100% calc(100% - 8px),
    calc(100% - 4px) calc(100% - 8px),calc(100% - 4px) calc(100% - 4px),
    calc(100% - 8px) calc(100% - 4px),calc(100% - 8px) 100%,
    8px 100%,8px calc(100% - 4px),4px calc(100% - 4px),
    4px calc(100% - 8px),0 calc(100% - 8px));
  --pixel-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath fill='%238A93AF' opacity='.21' d='M0 0h1.4v1.4H0z'/%3E%3C/svg%3E");
  --pixel-drift: url("../assets/pixel-drift.svg");
  --ease-settle: cubic-bezier(.18,.78,.22,1);
}
.site-head { position: relative; z-index: 4; background: var(--brand-surface); border-bottom-color: #cfcfcf; }
.site-head::after {
  content: ""; position: absolute; height: 3px; width: 32px; left: calc(50% - 16px); bottom: -2px;
  background: linear-gradient(to right,var(--brand) 0 16px,transparent 16px 20px,var(--brand-slate) 20px 24px,transparent 24px 28px,var(--brand-accent) 28px);
}
.head-row {
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center; min-height: 75px; column-gap: 20px;
}
.head-row > .logo { grid-column: 2; grid-row: 1; justify-self: center; }
.head-row > .logo img { width: clamp(158px,15vw,211px); }
.main-nav { margin-left: 0; gap: clamp(15px,2.3vw,34px); }
.head-row > .main-nav { grid-column: 1; grid-row: 1; }
.head-actions { grid-column: 3; grid-row: 1; justify-self: end; gap: clamp(10px,1.65vw,24px); }
.main-nav a { position: relative; }
.main-nav a::after {
  content: ""; position: absolute; bottom: 4px; left: 0;
  width: 4px; height: 4px; background: var(--brand-accent);
  box-shadow: 4px -4px var(--brand-accent); transform: scale(0); transform-origin: left bottom;
}
.main-nav a:is(:hover,:focus-visible,[aria-current])::after { transform: scale(1); }
.main-nav a:hover { text-decoration: none; }
.site-head .mobile-nav { grid-column: 1; grid-row: 1; justify-self: start; }
.head-actions .search-btn, .mobile-nav > summary, .close {
  min-width: 44px; min-height: 44px; border-radius: 0;
}
.head-actions .search-btn:hover, .mobile-nav > summary:hover, .close:hover { background-color: var(--brand-mist); }
/* Structural backgrounds stay on surfaces and away from long lines of text. */
.inner-main, .home-main, .footer { background-image: var(--pixel-paper); }
.inner-main { position: relative; isolation: isolate; }
.inner-main::before, .inner-main::after, .hero::before, .hero::after {
  content: ""; position: absolute; top: 0; pointer-events: none;
  background: var(--pixel-drift) top left / 100% auto no-repeat;
}
.inner-main::before, .inner-main::after {
  width: min(17vw,220px); height: min(26vw,330px); z-index: -1; opacity: .47;
}
.inner-main::before, .hero::before { left: 0; }
.inner-main::after, .hero::after { right: 0; transform: scale(-1,1); }
.inner-main > .band {
  background-image: var(--pixel-paper);
  background-color: color-mix(in srgb,var(--brand-surface) 40%,white);
}
.catalog-band { background-color: #fff; background-image: var(--pixel-paper); }
.help-band {
  background-image: linear-gradient(95deg,transparent 54%,#232532),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath fill='%23D8D9FF' opacity='.2' d='M0 0h1.5v1.5H0z'/%3E%3C/svg%3E");
}
.footer { position: relative; }
.footer::before {
  content: ""; position: absolute; left: max(14px,calc((100% - var(--max))/2)); top: -6px;
  width: 6px; height: 6px; background: var(--brand-accent);
  box-shadow: 6px -6px var(--brand-accent),12px -12px var(--brand-accent);
}
.hero {
  display: block; width: 100%; min-height: 0; position: relative; isolation: isolate;
  overflow: hidden; padding: clamp(40px,4.1vw,60px) 0 0;
  background-color: var(--brand-surface); background-image: var(--pixel-paper);
}
.hero::before, .hero::after {
  width: clamp(150px,24vw,380px); height: 100%; z-index: -1;
}
.hero::after { top: -12px; background-position: 0 9%; }
.hero-copy { text-align: center; padding: 0; }
.hero .kicker { margin: 0 0 14px; gap: 9px; letter-spacing: .115em; }
.hero h1 { font-size: clamp(55px,7.4vw,108px); line-height: .99; letter-spacing: -.07em; }
.hero h1 .hero-word { white-space: nowrap; }
.hero h1 .pixel-period {
  display: inline-block; width: .115em; height: .115em; margin-left: .035em;
  overflow: hidden; vertical-align: .015em; color: transparent; background: var(--brand-accent);
}
.hero .intro { max-width: 55ch; margin: 17px auto 21px; font-size: clamp(15px,1.15vw,17px); }
.hero .btns { justify-content: center; gap: 9px; }
/* An uncut hit area and focus outline surround the pixel silhouette. */
.btn, .site-head .btn, .help-split .btn,
.pillbar button, .stops button {
  position: relative; isolation: isolate; border: 0; border-radius: 0; background: transparent;
}
.btn::before, .pillbar button::before, .stops button::before {
  content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--pixel-cut); background: var(--button-fill);
}
.btn.dark, .btn.dark:hover:not(:disabled), .btn.light, .btn.light:hover, .btn:disabled,
.btn:disabled:hover, .site-head .btn.dark, .site-head .btn.dark:hover,
.help-split .btn { background: transparent; }
.btn { --button-fill: var(--brand-accent); min-height: 44px; padding: 11px 19px; }
.btn.light { --button-fill: #e1e1e9; }
.help-split .btn { --button-fill: var(--brand-surface); }
.site-head .btn.dark { --button-fill: var(--brand); }
.btn.dark:hover:not(:disabled) { --button-fill: #ff7933; }
.btn.light:hover { --button-fill: var(--brand-mist); }
.site-head .btn.dark:hover { --button-fill: var(--brand-accent); }
.btn:disabled { --button-fill: #e6e6e8; }
.pillbar { background: #e7e7eb; border-radius: 0; }
.pillbar button[aria-pressed="true"] { --button-fill: white; box-shadow: none; background: transparent; }
.stops button { --button-fill: #eeeef1; }
.stops button[aria-pressed="true"] { --button-fill: var(--ink); background: transparent; }
.btn:focus-visible, .pillbar button:focus-visible, .stops button:focus-visible { outline: 3px solid #6654a6; outline-offset: 2px; }
.btn .icon, .text-link .icon { stroke-linecap: square; stroke-linejoin: miter; }
@media (max-width: 760px) {
  .head-row { min-height: 61px; width: calc(100% - 24px); }
  .head-actions .btn { display: none; }
  .head-row > .logo img { width: clamp(148px,38vw,184px); }
  .hero { padding-top: 43px; }
  .hero h1 { max-width: 13ch; margin-inline: auto; font-size: clamp(49px,10.7vw,71px); line-height: .98; }
  .hero .intro { max-width: 43ch; }
  .hero::before, .hero::after { width: min(19vw,130px); opacity: .8; }
}
@media (max-width: 480px) {
  .hero-copy { width: calc(100% - 26px); }
  .hero .intro { max-width: 36ch; font-size: 15px; margin: 15px auto 18px; padding-inline: 3px; }
  .hero .btn { font-size: 13px; padding: 10px 14px; }
  .hero::before, .hero::after { width: 17vw; }
  .inner-main::before, .inner-main::after { opacity: .23; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .btn .icon, .text-link .icon, .guide-list .icon, .app-row > .icon, .main-nav a::after {
    transition: transform .24s var(--ease-settle);
  }
  .btn:not(:disabled):active { transform: translateY(2px); }
  .btn:not(:disabled):hover .icon, .text-link:hover .icon, .guide-list a:hover .icon, .app-row:hover > .icon { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .app-card:hover, .editor-card:hover { transform: none; }
}
@media (forced-colors: active) {
  .btn, .site-head .btn, .help-split .btn, .pillbar button, .stops button { border: 1px solid ButtonText; }
  .pillbar button[aria-pressed="true"], .stops button[aria-pressed="true"] { border: 3px double Highlight; }
  .hero h1 .pixel-period { background: CanvasText; }
}
.motion-example { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; padding-block: 12px; }
.motion-example button[hidden] { display: none; }
/* Briefly resolve a low-resolution print into the real paper artwork. */
