/* Portfolio sites ("kind": "portfolio"). Loaded after site.css and theme.css, so it reuses the
   theme tokens (--bg, --surface, --fg, --muted, --accent, --accent-soft, --line, --ok, --closed).
   Layout: an editorial page of big serif headlines in one color; the hero shows the
   sample sites on a phone, with dots to switch between them.
   Elements marked .js-only are hidden until portfolio.js adds .js to <html>. */

:root { --pf-tint: color-mix(in srgb, var(--accent) 5%, var(--bg)); --pf-shadow: 0 30px 60px -36px color-mix(in srgb, var(--fg) 55%, transparent); }
html:not(.js) .js-only { display: none !important; }

body.pf { padding-bottom: 0; }
.pf h1, .pf h2, .pf h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; }
.pf h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.04; }
.pf h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.01em; }
.pf em { font-style: normal; color: var(--accent); }
.pf .eyebrow { color: var(--accent); }
.pf .btn { border-radius: 999px; white-space: nowrap; }
.pf .btn-primary { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.pf .btn-primary:hover { filter: none; background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.pf .btn-ghost { color: var(--fg); border-color: var(--line); background: var(--surface); }
.pf .btn-ghost:hover { border-color: var(--fg); background: var(--surface); }
.pf .btn[disabled]:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* Header */
.pf .top .wrap { padding-block: 20px; }
.pf .wordmark { font-size: 1.3rem; }
.pf .nav a { font-size: 0.97rem; }

/* Hero */
.pf-hero { overflow-x: clip; }
.pf-hero .wrap { display: grid; gap: 40px; padding-block: 24px 56px; align-items: center; }
@media (min-width: 900px) { .pf-hero .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; padding-block: 48px 88px; } }
.pf-hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.pf-hero h1 { font-size: clamp(2.6rem, 6.8vw, 5.2rem); line-height: 1.02; letter-spacing: -0.015em; max-width: 14ch; }
.pf-hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }

.pf-phone-wrap { display: grid; justify-items: center; gap: 18px; position: relative; }
.pf-phone-wrap::before { content: ""; position: absolute; inset: 8% -6% 16%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); }
.pf-phone { margin: 0; width: min(300px, 78vw); max-width: 100%; aspect-ratio: 390 / 780; padding: 10px; border-radius: 46px; background: var(--fg);
  box-shadow: var(--pf-shadow), inset 0 0 0 2px color-mix(in srgb, var(--bg) 18%, var(--fg)); }
/* The screen is clipped twice (clip-path, plus the image's own radius) because Safari drops an
   overflow:hidden radius while a child animates, which showed square corners on iPhones. */
.pf-phone-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; clip-path: inset(0 round 36px); isolation: isolate; background: var(--surface); }
.pf-screen[hidden] { display: none; }
.pf-screen { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: inherit; }
.js .pf-screen { animation: pf-in 0.35s ease both; }
@keyframes pf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Dots under the phone, one per sample site. The button is a 32px tap target around a 10px dot. */
.pf-chips { display: flex; justify-content: center; align-items: center; gap: 4px; }
.pf-arrow { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--fg); cursor: pointer; }
.pf-arrow:first-child { margin-right: 6px; }
.pf-arrow:last-child { margin-left: 6px; }
.pf-arrow:hover { border-color: var(--fg); }
.pf-chip { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.pf-chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--fg) 45%, var(--bg)); transition: background 0.2s ease, transform 0.2s ease; }
.pf-chip:hover::before { background: color-mix(in srgb, var(--fg) 70%, var(--bg)); }
.pf-chip[aria-pressed="true"]::before { background: var(--fg); transform: scale(1.2); }

/* Section shell */
.pf-block .wrap { padding-block: 72px; display: grid; gap: 36px; }
@media (min-width: 900px) { .pf-block .wrap { padding-block: 104px; } }
.pf-tint { background: var(--pf-tint); }
.pf-head { display: grid; gap: 14px; max-width: 760px; }
.pf-head > p { color: var(--muted); font-size: 1.1rem; max-width: 58ch; }
@media (min-width: 900px) { .pf-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; gap: 64px; } }

/* Services */
.pf-services { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 48px; }
@media (min-width: 760px) { .pf-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf-services li { display: grid; gap: 8px; align-content: start; padding-block: 22px; border-top: 1px solid var(--line); }
.pf-services p { color: var(--muted); max-width: 56ch; }

/* Work: alternating rows with a browser frame and a phone, with plenty of room between them */
.pf-work { display: grid; gap: 120px; }
@media (min-width: 900px) { .pf-work { gap: 160px; } }
.pf-row { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .pf-row { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 56px; }
  .pf-row:nth-child(even) { grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr); }
  .pf-row:nth-child(even) .pf-visual { order: 2; }
}
.pf-visual { position: relative; display: block; padding: 0 0 28px; max-width: 100%; }
.pf-browser { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--pf-shadow); transition: transform 0.3s ease; }
.pf-visual:hover .pf-browser { transform: translateY(-4px); }
.pf-dots { display: block; height: 26px; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 16px 50%, var(--line) 4px, transparent 5px), radial-gradient(circle at 32px 50%, var(--line) 4px, transparent 5px), radial-gradient(circle at 48px 50%, var(--line) 4px, transparent 5px); }
.pf-browser img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
/* "Open the live demo" sits on every screenshot (the one button per sample), so it's clear the
   picture opens a working site; it lifts and turns the accent color on hover or focus. */
.pf-browser { position: relative; }
.pf-open { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 14px 26px; border-radius: 999px; background: var(--fg); color: var(--bg); border: 1px solid var(--fg);
  font: 700 1.05rem var(--font-body); box-shadow: var(--pf-shadow); transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.pf-visual:hover .pf-open, .pf-visual:focus-visible .pf-open { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); transform: translateX(-50%) translateY(-3px); }
.pf-visual:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 14px; }
.pf-visual:hover .pf-browser { box-shadow: 0 36px 70px -34px color-mix(in srgb, var(--fg) 65%, transparent); }
@media (max-width: 560px) { .pf-open { bottom: 10px; padding: 7px 14px; font-size: 0.85rem; } }
.pf-mini { position: absolute; right: 4%; bottom: 0; width: 22%; max-width: 150px; height: auto; aspect-ratio: 390 / 780; object-fit: cover; object-position: top;
  border: 5px solid var(--fg); border-radius: 18px; background: var(--surface); box-shadow: var(--pf-shadow); }
.pf-row-copy { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.pf-row-copy h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.pf-row-copy h3 a { color: var(--fg); text-decoration: none; }
.pf-row-copy h3 a:hover { color: var(--accent); }
.pf-row-copy > p:not(.pf-label) { color: var(--muted); }
.pf-gets { margin-top: 6px; font-weight: 600; color: var(--fg); }
.pf-bullets { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; list-style: disc; }
.pf-bullets li::marker { color: var(--accent); }
/* Quote prompt after the demos: a full-width band that's hard to miss but sits in the flow (not sticky). */
.pf-after-work { display: grid; gap: 20px; align-items: center; margin-top: 56px; padding: clamp(24px, 4vw, 40px); border-radius: 22px;
  background: var(--fg); color: var(--bg); }
@media (min-width: 760px) { .pf-after-work { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; } }
.pf-after-work div { display: grid; gap: 8px; }
.pf .pf-after-work h3 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.1; }
.pf-after-work p { color: color-mix(in srgb, var(--bg) 80%, var(--fg)); max-width: 52ch; }
.pf .pf-after-work .btn-primary { background: var(--bg); color: var(--fg); border-color: var(--bg); min-height: 56px; padding-inline: 28px; font-size: 1.05rem; }
.pf .pf-after-work .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

/* Process */
.pf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 760px) { .pf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .pf-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; } }
/* Each step: the doodle on top, then the name, then the text. No numbers: the order reads left to right. */
.pf-steps li { display: grid; row-gap: 10px; align-content: start; align-items: start; padding-top: 18px; border-top: 2px solid var(--fg); }
/* Side by side, the steps share rows, so a name that wraps to two lines doesn't push its text out of line. */
@media (min-width: 760px) { .pf-steps li { grid-row: span 3; grid-template-rows: subgrid; padding-bottom: 24px; } }
@media (min-width: 1000px) { .pf-steps li { padding-right: 28px; } }
/* Step text uses the same upright serif as the About note; text-wrap keeps the four columns' lines even. */
.pf-steps h3 { font-size: 1.25rem; align-self: end; }
.pf-steps p { font: 400 1.1rem/1.55 var(--font-display); color: var(--fg); text-wrap: pretty; }
/* Doodles: small line drawings (engine/doodles.py) in the accent color. */
.pf-doodle { display: block; width: 56px; height: 56px; color: var(--accent); }
.pf-steps .pf-doodle { margin-bottom: 4px; }
.pf-doodle .pf-fill { fill: var(--bg); }  /* a card drawn over another hides the lines behind it */
.pf-about-doodles { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.pf-about-doodles li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.97rem; }
.pf-about-doodles .pf-doodle { width: 48px; height: 48px; flex: none; }
@media (min-width: 900px) {
  .pf-about-main { grid-template-columns: minmax(0, 1fr) auto; column-gap: 64px; }
  .pf-about-main > .pf-head, .pf-about-main > .pf-about-text { grid-column: 1; }
  .pf-about-doodles { grid-column: 2; grid-row: 1 / span 2; align-self: center; flex-direction: column; gap: 26px; margin: 0; }
}

/* Pricing (optional): compact "starting at" rows next to the heading, just above contact */
.pf-prices { list-style: none; margin: 0; padding: 0; display: grid; }
.pf-prices > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 24px; row-gap: 6px; padding-block: 22px; border-top: 1px solid var(--line); }
.pf-prices > li:last-child { border-bottom: 1px solid var(--line); }
.pf-prices > li > div { display: contents; }
.pf-prices h3 { grid-column: 1; grid-row: 1; }
.pf-prices > li > div > p { grid-column: 1 / -1; grid-row: 2; color: var(--muted); max-width: 44ch; }
.pf-price { grid-column: 2; grid-row: 1; font: 400 clamp(1.5rem, 3vw, 2.1rem)/1.1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; margin: 0; }
.pf-prices-wrap { display: grid; gap: 14px; }
/* A doodle sits in its own column to the left of the name, note and list. */
.pf-prices > li.pf-has-doodle { grid-template-columns: 48px minmax(0, 1fr) auto; }
.pf-has-doodle .pf-doodle { grid-column: 1; grid-row: 1 / span 3; align-self: start; width: 48px; height: 48px; }
.pf-has-doodle h3 { grid-column: 2; }
.pf-prices > li.pf-has-doodle > div > p, .pf-has-doodle .pf-includes { grid-column: 2 / -1; }
.pf-has-doodle .pf-price { grid-column: 3; }
.pf-includes { grid-column: 1 / -1; grid-row: 3; margin: 4px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 0.95rem; display: grid; gap: 4px; list-style: disc; }

/* About (optional): right under the hero, so it gets a dividing line instead of a tint */
/* About reads like a short note from Grant: upright serif body text, set larger than the rest of the page. */
.pf-about-main { display: grid; gap: 18px; }
.pf-about-text { display: grid; gap: 16px; }
.pf-about-text p { font: 400 clamp(1.15rem, 1.8vw, 1.3rem)/1.55 var(--font-display); color: var(--fg); max-width: 58ch; }
.pf-about-photo { margin: 0; max-width: 420px; }
.pf-about-photo img { display: block; width: 100%; height: auto; border-radius: 18px; }

/* Photos (optional): Grant's own shots, inside the about block */
.pf-photos-wrap { display: grid; gap: 20px; margin-top: 12px; }
.pf-photos-head { display: grid; gap: 8px; }
.pf-photos-head p { color: var(--muted); max-width: 60ch; }
.pf-photos { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.pf-photos figure { margin: 0; }
.pf-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.pf-zoom { display: block; border-radius: 14px; cursor: zoom-in; }
.pf-zoom img { transition: transform 0.25s ease, filter 0.25s ease; }
.pf-zoom:hover img { filter: brightness(1.05); }
/* Lightbox (portfolio.js): the dialog covers the screen; the photo sits centered at its own shape. */
.pf-lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 56px 16px;
  border: 0; background: transparent; display: none; place-items: center; }
.pf-lightbox[open] { display: grid; }
.pf-lightbox::backdrop { background: rgb(10 12 20 / 0.95); }
html:has(.pf-lightbox[open]) { overflow: hidden; }
.pf-lightbox img { max-width: min(100%, 1000px); max-height: 100%; width: auto; height: auto; border-radius: 10px; box-shadow: 0 20px 60px rgb(0 0 0 / 0.5); }
.pf-lightbox button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / 0.14); color: #fff; cursor: pointer; }
.pf-lightbox button:hover, .pf-lightbox button:focus-visible { background: rgb(255 255 255 / 0.28); }
.pf-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pf-lb-close { top: 12px; right: 12px; }
.pf-lb-prev, .pf-lb-next { top: 50%; transform: translateY(-50%); }
.pf-lb-prev { left: 12px; }
.pf-lb-next { right: 12px; }
@media (max-width: 600px) { .pf-lb-prev, .pf-lb-next { top: auto; bottom: 8px; transform: none; } .pf-lightbox { padding-bottom: 64px; } }
@media (prefers-reduced-motion: no-preference) {
  .pf-zoom:hover img { transform: scale(1.015); }
  .pf-lightbox[open] img { animation: pf-in 0.25s ease both; }
}

/* Pricing terms */
.pf-terms { display: grid; gap: 10px; margin-top: 16px; }
.pf-terms h3 { font-size: 1.15rem; }
/* Same 48px doodle column as the pricing cards above, so the heading and list line up with their text. */
.pf-terms { grid-template-columns: 48px minmax(0, 1fr); column-gap: 24px; }
.pf-terms > .pf-doodle { grid-column: 1; grid-row: 1 / span 2; width: 48px; height: 48px; }
.pf-terms > .pf-doodle ~ * { grid-column: 2; }
.pf-terms ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.pf-faq { display: grid; gap: 12px; }
.pf-faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 0 22px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease, opacity 0.7s ease; }
.pf-faq details:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); transform: translateY(-2px); }
.pf-faq details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--pf-shadow); }
.pf-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding-block: 20px; font-weight: 600; font-size: 1.08rem; }
.pf-faq summary::-webkit-details-marker { display: none; }
.pf-q { flex: 1; min-width: 0; }
.pf-q-icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); transition: background 0.25s ease, transform 0.3s ease; }
.pf-q-icon::before, .pf-q-icon::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--accent); transition: background 0.25s ease; }
.pf-q-icon::after { transform: rotate(90deg); }
.pf-faq details[open] .pf-q-icon { background: var(--accent); transform: rotate(45deg); }
.pf-faq details[open] .pf-q-icon::before, .pf-faq details[open] .pf-q-icon::after { background: var(--accent-fg); }
.pf-faq details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }
.pf-faq details[open] p { animation: pf-rise 0.35s ease both; }
.pf-ask { display: grid; gap: 12px; justify-items: start; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.pf-ask p { font-weight: 600; color: var(--fg); }
@media (min-width: 900px) { .pf-faq-head { position: sticky; top: 32px; } }

/* Closing contact band: inverted colors */
.pf-close { background: var(--fg); color: var(--bg); --muted: color-mix(in srgb, var(--bg) 78%, var(--fg)); }
.pf-close .wrap { padding-block: 80px; display: grid; gap: 40px; }
@media (min-width: 900px) { .pf-close .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-block: 112px; align-items: start; } }
.pf-close h2 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1; }
.pf-close em { color: var(--accent-soft); }
.pf-close .head { display: grid; gap: 14px; }
/* Paper plane doodle (doodles.SEND) filling the empty bottom-left beside the form on wide screens. */
.pf-send { display: none; color: var(--accent-soft); }
@media (min-width: 900px) {
  .pf-close .wrap { align-items: stretch; }
  .pf-close .head { display: flex; flex-direction: column; }
  .pf-send { display: block; width: min(100%, 440px); height: auto; margin-top: auto; padding-top: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Once it scrolls into view the trail draws itself in, then the plane settles into place. */
  .pf-send.pf-reveal .pf-send-mask { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(0.45, 0, 0.2, 1) 0.2s; }
  .pf-send.pf-reveal .pf-send-plane { opacity: 0; transform: translate(-18px, 12px); transition: opacity 0.5s ease 1.2s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 1.2s; }
  .pf-send.pf-shown .pf-send-mask { stroke-dashoffset: 0; }
  .pf-send.pf-shown .pf-send-plane { opacity: 1; transform: none; }
}
.pf-close .head > p, .pf-close .form-note, .pf-close .req { color: var(--muted); }
.pf-close .ph-tag { color: inherit; }
.pf-close a { color: var(--bg); }
.pf-close .contact-form { max-width: none; padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: var(--bg); color: var(--fg); --muted: color-mix(in srgb, var(--fg) 70%, var(--bg)); }
.pf-close .contact-form .form-note, .pf-close .contact-form .req { color: var(--muted); }
.pf-close .contact-form .btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pf-email { font-size: 1.05rem; }

.pf footer .wrap { padding-block: 32px; }

/* Motion. Load-in for the hero, scroll reveals (classes added by
   portfolio.js, so nothing is hidden without JS), and small hover lifts. All of it is off
   with prefers-reduced-motion. */
@keyframes pf-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.pf-hero-copy > * { animation: pf-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.pf-hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.pf-hero-copy > :nth-child(3) { animation-delay: 0.18s; }
.pf-hero-copy > :nth-child(4) { animation-delay: 0.28s; }
.pf-phone-wrap { animation: pf-rise 1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.pf-hero h1 em { font-style: normal; }
.pf-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--pf-delay, 0ms); }
.pf-reveal.pf-shown { opacity: 1; transform: none; }
.pf-mini { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pf-visual:hover .pf-mini { transform: translateY(-12px) rotate(-3deg); }
.pf .btn span[aria-hidden] { display: inline-block; transition: transform 0.2s ease; }
.pf .btn:hover span[aria-hidden] { transform: translateX(4px); }

/* Opening a demo: the screenshot grows into the demo's window (cross-document view transition,
   same origin). portfolio.js names the clicked screenshot; frame.css names the demo's window.
   Browsers without support just open the page. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(demo-window) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }
}

@media (prefers-reduced-motion: reduce) {
  .js .pf-screen, .pf-hero-copy > *, .pf-phone-wrap { animation: none; }
  .pf-reveal { opacity: 1; transform: none; transition: none; }
  .pf-browser, .pf-mini, .pf .btn span[aria-hidden], .pf-faq details, .pf-q-icon, .pf-chip::before, .pf-open { transition: none; }
  .pf-faq details[open] p { animation: none; }
}
@media print { .pf-chips { display: none; } .pf-reveal { opacity: 1 !important; transform: none !important; } .pf-close { background: none; color: inherit; } }

@media (max-width: 560px) {
  .pf .wordmark small { display: none; }
}
