/* myoptix.ch - logo orange and the espresso of the flyers, with a body face built for
   people with low vision. */

@font-face { font-family: "Atkinson"; src: url("/files/fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/files/fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/files/fonts/bricolage-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --orange: #f29431;
  --orange-soft: #ffe8bd;
  --orange-ink: #a4520a;
  --espresso: #1c0e07;
  --espresso-2: #2c1a10;
  --espresso-3: #4a3224;
  --paper: #fffaf3;
  --card: #ffffff;
  --ink: #2a1c14;
  --muted: #6f5e52;
  --line: #eadfce;
  --red: #cc0927;
  --radius: 14px;
  --wrap: 1180px;
  --display: "Bricolage", "Atkinson", Georgia, serif;
  --body: "Atkinson", Verdana, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--body);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
/* No underlines anywhere: links inside running text are told apart by colour and weight */
a, a:hover, a:focus, a:active { text-decoration: none; }
a { color: var(--orange-ink); transition: color .15s ease; }
a:hover { color: var(--espresso); }
.article a:not(.btn):not(.flyer), .side-info a, .fineprint a { font-weight: 700; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; color: var(--espresso); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 2.2rem 0 .7rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
p { margin: 0 0 1.05rem; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--espresso); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header */
.site-head { background: var(--espresso); color: #fff; position: relative; z-index: 20; }
.head-top { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; }
.logo { display: block; margin-right: auto; }
.logo img { display: block; width: clamp(140px, 19vw, 200px); height: auto; }
.head-glas img { display: block; height: 50px; width: auto; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--orange); color: var(--espresso);
  font: 700 1.05rem/1.2 var(--body); text-decoration: none;
  padding: .75rem 1.2rem; border: 0; border-radius: 999px; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #ffab52; color: var(--espresso); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--orange-ink); box-shadow: inset 0 0 0 2px var(--orange); }
.btn--ghost:hover { background: var(--orange); }

.nav { border-top: 1px solid var(--espresso-3); }
.nav > .wrap > ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav a { color: #fff; text-decoration: none; display: block; }
.nav > .wrap > ul > li { position: relative; }
.nav > .wrap > ul > li > a { padding: .8rem .95rem; font-weight: 700; }
.nav > .wrap > ul > li:first-child > a { padding-left: 0; }
.nav > .wrap > ul > li > a:hover,
.nav > .wrap > ul > li:focus-within > a,
.nav li.is-current > a { color: var(--orange); }
.badge { display: inline-block; background: var(--red); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .05em; border-radius: 4px; padding: .05rem .35rem; margin-left: .35rem; vertical-align: .12em; }
.sub {
  position: absolute; left: 0; top: 100%; min-width: 270px; max-width: 360px;
  list-style: none; margin: 0; padding: .45rem;
  background: var(--espresso-2); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease;
}
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: .42rem .7rem; border-radius: 8px; font-size: 1rem; line-height: 1.3; }
.sub a:hover { background: var(--espresso-3); color: var(--orange); }

/* Mobile menu: a native popover, so opening, closing, Esc and tap-outside work without JS.
   It slides in from the right; browsers without exit animation simply close it at once. */
.head-termin { white-space: nowrap; }
.head-termin .sm { display: none; }
.menu-btn, .menu-close { background: none; border: 0; padding: 0; cursor: pointer; width: 46px; height: 46px; flex: none; }
.menu-btn { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menu-btn span { display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--orange); }

.mpanel {
  position: fixed; inset: 0 0 0 auto; margin: 0; border: 0;
  width: min(88vw, 400px); height: 100dvh; max-height: none;
  padding: .7rem 1.25rem 1.5rem; overflow-y: auto; overscroll-behavior: contain;
  background: var(--espresso-2); color: #fff;
  box-shadow: -20px 0 50px rgba(0,0,0,.4);
  interpolate-size: allow-keywords;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.22,.8,.24,1), display .38s allow-discrete, overlay .38s allow-discrete;
}
.mpanel:popover-open { display: flex; flex-direction: column; transform: none; }
@starting-style { .mpanel:popover-open { transform: translateX(100%); } }
.mpanel::backdrop {
  background: rgba(28,14,7,0);
  transition: background .38s ease, display .38s allow-discrete, overlay .38s allow-discrete;
}
.mpanel:popover-open::backdrop { background: rgba(28,14,7,.6); }
@starting-style { .mpanel:popover-open::backdrop { background: rgba(28,14,7,0); } }
html:has(.mpanel:popover-open) { overflow: hidden; }

.mpanel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.mpanel-head img { display: block; width: 130px; height: auto; }
.menu-close { position: relative; margin-right: -.5rem; }
.menu-close::before, .menu-close::after { content: ""; position: absolute; left: 10px; right: 10px; top: 22px; height: 3px; border-radius: 2px; background: var(--orange); transition: transform .3s ease; }
.menu-close::before { transform: rotate(45deg); }
.menu-close::after { transform: rotate(-45deg); }
.menu-close:hover::before { transform: rotate(135deg); }
.menu-close:hover::after { transform: rotate(45deg); }

.mpanel-list, .mpanel-list ul { list-style: none; margin: 0; padding: 0; }
.mpanel-list > li { border-bottom: 1px solid var(--espresso-3); }
.mpanel-list > li > a, .mpanel summary { display: flex; align-items: center; min-height: 54px; padding: .4rem 0; color: #fff; font: 700 1.3rem/1.2 var(--display); cursor: pointer; list-style: none; }
.mpanel summary::-webkit-details-marker { display: none; }
.mpanel summary::after { content: ""; width: .6rem; height: .6rem; margin: 0 .35rem 0 auto; border: solid var(--orange); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform .28s ease; }
.mpanel details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.mpanel-list > li.is-current > a, .mpanel-list > li.is-current summary { color: var(--orange); }
.mpanel details::details-content { block-size: 0; overflow: clip; transition: block-size .28s ease, content-visibility .28s allow-discrete; }
.mpanel details[open]::details-content { block-size: auto; }
.mpanel details ul { padding-bottom: .7rem; }
.mpanel details a { display: block; padding: .5rem 0 .5rem .9rem; color: #f3e9dd; line-height: 1.3; font-size: 1.05rem; }
.mpanel details a:hover { color: var(--orange); }
.mpanel-foot { margin-top: auto; padding-top: 1.5rem; display: grid; gap: .8rem; justify-items: center; }
.mpanel-foot .btn { width: 100%; justify-content: center; }
.mpanel-tel { color: #fff; font-weight: 700; }
.mpanel-glas { display: block; margin-top: .3rem; }
.mpanel-glas img { display: block; height: 50px; width: auto; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .head-glas { display: none; }
  .head-top { padding: .6rem 0; gap: .5rem; }
  .head-termin { padding: .6rem 1rem; font-size: 1rem; }
}
@media (max-width: 560px) {
  .head-termin .lg { display: none; }
  .head-termin .sm { display: inline; }
  .logo img { width: 128px; }
}

/* Home */
/* Taller than the 1600x512 banners. The crop stops short of the text baked into them. */
.fader { position: relative; aspect-ratio: 2.8; background: var(--espresso-2); overflow: hidden; }
.home-grid h1 { margin-bottom: 1.1rem; }
.fader img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 25% 50%; opacity: 0; animation: fade 18s infinite; }
.fader img:nth-child(1) { animation-delay: 0s; opacity: 1; }
.fader img:nth-child(2) { animation-delay: 6s; }
.fader img:nth-child(3) { animation-delay: 12s; }
@keyframes fade { 0% { opacity: 0; } 4% { opacity: 1; } 33% { opacity: 1; } 38% { opacity: 0; } 100% { opacity: 0; } }

.strip { background: var(--orange-soft); color: var(--espresso); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem 2.2rem; padding: .7rem 0; font-size: 1.08rem; line-height: 1.4; }
.strip a { color: inherit; font-weight: 700; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding: clamp(2.2rem, 5vw, 4rem) 0; align-items: start; }
.eyebrow { font: 700 .92rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); margin: 0 0 .6rem; }
.note { border-left: 4px solid var(--orange); padding: .25rem 0 .25rem 1rem; font-weight: 700; }
.ringlist { list-style: none; margin: 1rem 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: .55rem 1.5rem; }
.ringlist li { position: relative; padding-left: 1.7rem; font-weight: 700; }
.ringlist li::before { content: ""; position: absolute; left: .3rem; top: .3em; width: .45rem; height: .85rem; border: solid var(--orange-ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.flyer { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 45px rgba(28,14,7,.22); transition: transform .2s ease; }
.flyer:hover { transform: translateY(-3px) rotate(-.4deg); }
.flyer img { display: block; width: 100%; }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.2rem; margin: .4rem 0 1rem; }
.logos img { max-height: 58px; width: auto; }
.swiss { display: block; max-height: 56px; width: auto; margin: 0 0 1.2rem; }

/* Inner pages */
.page-head { background: var(--orange-soft); color: var(--espresso); padding: clamp(1.5rem, 4vw, 2.6rem) 0; overflow: hidden; }
.crumbs { font-size: .95rem; margin: 0 0 .55rem; color: var(--muted); }
.crumbs a { color: var(--orange-ink); }
.crumbs span { margin: 0 .3rem; }

.layout { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.5rem); padding: clamp(1.8rem, 4vw, 3.2rem) 0 clamp(2.6rem, 5vw, 4.5rem); align-items: start; }
.layout--single { display: block; }
.side { position: sticky; top: 1rem; }
.side ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.side a { display: block; padding: .38rem .9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; line-height: 1.3; }
.side a:hover { color: var(--orange-ink); }
.side a.is-current { border-left-color: var(--orange); color: var(--espresso); font-weight: 700; }
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; order: 2; border-top: 1px solid var(--line); padding-top: 1.4rem; }
}
.article { max-width: 72ch; }
.article--wide { max-width: none; }
.article > :first-child { margin-top: 0; }
.article img.float { float: right; width: min(42%, 280px); margin: .3rem 0 1rem 1.6rem; border-radius: var(--radius); }
.article::after { content: ""; display: block; clear: both; }
.article table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.4rem; }
.article th, .article td { border-bottom: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.article .lead { font-size: 1.28rem; line-height: 1.5; }
.article hr { border: 0; border-top: 2px solid var(--orange-soft); margin: 1.8rem 0; }
@media (max-width: 560px) { .article img.float { float: none; display: block; width: 100%; margin: 0 0 1.2rem; } }

.price-tag { display: inline-flex; flex-direction: column; background: var(--orange); color: var(--espresso); border-radius: var(--radius); padding: .5rem 1rem; line-height: 1.1; margin: 0 0 1.2rem; }
.price-tag small { font-size: .85rem; font-weight: 700; }
.price-tag b { font: 700 1.8rem/1.05 var(--display); }
.see-also { display: flex; flex-wrap: wrap; gap: .7rem; margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr)); gap: 1.7rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); height: 100%; display: flex; flex-direction: column; overflow: hidden; color: var(--ink); text-decoration: none; position: relative; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(28,14,7,.14); color: var(--ink); }
/* The box clips the photo, so the hover zoom stays inside its frame */
.card-media { overflow: hidden; background: var(--orange-soft); }
.card-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-img { transform: scale(1.05); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.card h2 { font-size: 1.55rem; margin: 0 0 .6rem; overflow-wrap: anywhere; hyphens: auto; }
.card p { margin: 0; font-size: 1.08rem; line-height: 1.5; color: var(--muted); }
/* A lone card takes the full row: photo beside the text */
.cards > li:only-child { grid-column: 1 / -1; }
.cards > li:only-child .card { flex-direction: row; }
.cards > li:only-child .card-media { position: relative; width: 52%; flex: none; min-height: 400px; }
.cards > li:only-child .card-img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.cards > li:only-child .card-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.6rem, 4vw, 3.4rem); }
.cards > li:only-child .card h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 1rem; }
.cards > li:only-child .card p { font-size: 1.28rem; line-height: 1.55; }
@media (max-width: 760px) {
  .cards > li:only-child .card { flex-direction: column; }
  .cards > li:only-child .card-media { width: 100%; min-height: 0; }
  .cards > li:only-child .card-img { position: static; height: auto; aspect-ratio: 16 / 10; }
}
.card .price { position: absolute; z-index: 1; top: .7rem; right: .7rem; background: var(--orange); color: var(--espresso); font-weight: 700; border-radius: 999px; padding: .18rem .7rem; font-size: .95rem; }

/* Glas-Preise */
.table-wrap { overflow-x: auto; margin: .9rem 0 .6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.price-table { border-collapse: collapse; width: 100%; min-width: 660px; }
.price-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.price-table td:first-child { text-align: left; font-weight: 700; min-width: 170px; position: sticky; left: 0; background: var(--card); }
.price-table td small { display: block; font-weight: 400; font-size: .85rem; line-height: 1.35; color: var(--muted); margin-top: .2rem; }
.price-table tr:last-child td { border-bottom: 0; background: var(--orange-soft); }
.price-table .typ-logo { width: 118px; max-width: 100%; height: auto; }
.price-table .glas-icon { width: 70px; max-width: 100%; height: auto; }
.price-table .no { color: #b9aa9c; }
.price-table svg { width: 1.2rem; height: 1.2rem; vertical-align: -.15em; }
.ok { color: #2d7a2d; }
.st-bronze { color: #c47a2c; } .st-sibler { color: #9a9a9a; } .st-gold { color: #e39a1f; } .st-master { color: #6d6d6d; } .st-green { color: #7d9200; } .st-red { color: #c1272d; } .st-spezial { color: #e2471a; }
.price-till { display: block; font-size: .85rem; color: var(--muted); }
.price { font: 700 1.2rem/1.2 var(--display); color: var(--espresso); white-space: nowrap; }
.price-description { font-weight: 400; }

/* Forms: posted urlencoded on purpose, nothing on this site uses multipart */
.form { display: grid; gap: 1.05rem; max-width: 640px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
label, legend { display: block; font-weight: 700; margin-bottom: .3rem; }
.req { color: var(--orange-ink); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: .72rem .85rem; font: inherit; color: var(--ink);
  background: var(--card); border: 2px solid var(--line); border-radius: 10px;
}
input:focus, select:focus, textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(242,148,49,.28); }
textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .3rem; flex: none; accent-color: var(--orange-ink); }
.hp { position: absolute; left: -9999px; }
.fineprint { font-size: .95rem; color: var(--muted); }
.side-info { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; margin-bottom: 1.2rem; }
.side-info h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.side-photo { display: block; width: 100%; height: auto; border-radius: 10px; margin-bottom: 1rem; }
.side-info p:last-child { margin-bottom: 0; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 0 .9rem; margin: 0; }
.hours dt { font-weight: 700; } .hours dd { margin: 0; }
.columns { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .columns { grid-template-columns: minmax(0, 1fr); } }

.doctors td small { color: var(--muted); }
.shop-photo { display: block; width: 100%; border-radius: var(--radius); margin-bottom: 1.2rem; }

/* Success and error pages after a form */
.result { padding: clamp(2.2rem, 6vw, 4.5rem) 0 clamp(2.6rem, 6vw, 5rem); max-width: 860px; }
.result-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(2rem, 6vw, 3.6rem) clamp(1.4rem, 6vw, 4rem); text-align: center; box-shadow: 0 24px 55px rgba(28,14,7,.1); }
.result-icon { display: block; width: 92px; height: 92px; margin: 0 auto 1.4rem; fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.result--error .result-icon { stroke: var(--red); }
.result-card h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-bottom: .9rem; }
.result-lead { font-size: 1.22rem; line-height: 1.55; max-width: 34em; margin: 0 auto 1.8rem; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.result-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.2rem 2rem; margin: 2rem 0 0; padding: 0 .4rem; }
.result-facts dt { font-weight: 700; color: var(--orange-ink); }
.result-facts dd { margin: 0; }
.result-facts a { font-weight: 700; }

/* Footer */
.site-foot { background: var(--espresso); color: #e9dccd; padding: 2.4rem 0 1.5rem; font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.8rem; }
.site-foot h2 { color: var(--orange); font-size: 1.05rem; margin: 0 0 .5rem; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--orange); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot .hours { color: #e9dccd; }
.foot-base { border-top: 1px solid var(--espresso-3); margin-top: 1.8rem; padding-top: 1rem; font-size: .92rem; }

@media (max-width: 760px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 1.06rem; line-height: 1.6; }
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.35rem; margin-top: 1.8rem; }
  .strip .wrap { gap: 0 .9rem; padding: .4rem 0; font-size: .84rem; }
  .home-grid { padding: 1.7rem 0 2.4rem; gap: 2.2rem; }
  .home-grid h1 { margin-bottom: .9rem; }
  .note { font-size: 1rem; line-height: 1.5; }
  .ringlist { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .page-head { padding: 1.2rem 0 1.3rem; }
  .card-body { padding: 1.1rem 1.2rem 1.3rem; }
  .card h2 { font-size: 1.35rem; }
  .card p { font-size: 1rem; }
  .cards { gap: 1.2rem; }
  .cards > li:only-child .card h2 { font-size: 1.6rem; }
  .cards > li:only-child .card p { font-size: 1.05rem; }
  .btn { font-size: 1rem; }
}

/* Motion. Everything is visible without it: browsers lacking scroll-driven animation
   simply show the content, and nothing is ever hidden from search engines. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes drift { from { transform: scale(1); } to { transform: scale(1.02); } }
  @keyframes appear { from { opacity: 0; } to { opacity: 1; } }

  /* On load: the page title, then its intro */
  .page-head h1, .home-grid h1 { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
  .crumbs { animation: appear .6s ease both; }
  .strip .wrap > * { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
  .strip .wrap > :nth-child(2) { animation-delay: .1s; }
  .strip .wrap > :nth-child(3) { animation-delay: .2s; }

  /* Success page: the card rises, then the circle and the tick draw themselves */
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  .result-card { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
  .result-facts { animation: appear .6s ease .55s both; }
  .result-icon circle, .result-icon path { stroke-dasharray: 1; animation: draw .6s ease .2s both; }
  .result-icon path { animation-delay: .65s; animation-duration: .4s; }

  /* Banners: crossfade with a slow push-in */
  .fader img { animation: fade 18s infinite, drift 18s linear infinite; }

  /* On scroll: each block rises into place as it enters the screen */
  @supports (animation-timeline: view()) {
    .cards > li,
    .article > *,
    .columns > *,
    .ringlist li,
    .home-grid > div:first-child > :not(h1),
    .home-grid > div:last-child {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 16%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .fader img { opacity: 0; animation: none !important; }
  .fader img:nth-child(1) { opacity: 1; }
}
@media print {
  .site-head, .site-foot, .side, .strip { display: none; }
}
