/* The Wheel Apizza Pub — Mediterranean sun */

:root {
  --terra: #b5462e;
  --terra-deep: #8f3520;
  --clay: #cc8d6b;
  --olive: #5f7233;
  --sea: #1f6f8b;
  --sea-deep: #164f63;
  --sky: #8eb9f0;
  --sand: #f4e3c6;
  --sand-light: #faf1e0;
  --plaster: #fbf5ea;
  --umber: #6e4e30;
  --ink: #2d180a;

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Mulish", system-ui, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 6px;

  /* soft plaster grain */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .43 0 0 0 0 .3 0 0 0 0 .19 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* majolica tile: a four-petal star on sand, quartered in sea and terracotta */
  --tile:
    radial-gradient(circle at 50% 50%, var(--sand) 0 14%, var(--terra) 15% 20%, transparent 21%),
    radial-gradient(circle at 0 0, var(--sand) 0 22%, transparent 23%),
    radial-gradient(circle at 100% 0, var(--sand) 0 22%, transparent 23%),
    radial-gradient(circle at 0 100%, var(--sand) 0 22%, transparent 23%),
    radial-gradient(circle at 100% 100%, var(--sand) 0 22%, transparent 23%),
    conic-gradient(from 45deg, var(--sea) 0 25%, var(--sand-light) 0 50%, var(--sea) 0 75%, var(--sand-light) 0);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--plaster) var(--noise);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: .005em;
}

h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--terra); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }

p { margin: 0 0 1em; }

a { color: var(--sea-deep); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--terra); }

:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.lead { font-size: 1.18rem; }
.small { font-size: .92rem; }

.kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--olive);
  margin-bottom: .35rem;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: var(--sand); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.5rem;
  border-radius: 999px 999px 999px 999px;
  background: var(--terra);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--terra);
  box-shadow: 0 4px 0 var(--terra-deep);
}
.btn:hover { color: #fff; background: var(--terra-deep); border-color: var(--terra-deep); }
.btn-ghost { background: transparent; color: var(--sea-deep); border-color: var(--sea); box-shadow: 0 4px 0 var(--sea); }
.btn-ghost:hover { background: var(--sea); border-color: var(--sea); color: #fff; }
.btn-small { min-height: 2.6rem; padding: .45rem 1.1rem; font-size: .95rem; box-shadow: 0 3px 0 var(--terra-deep); }
.btn-big { font-size: 1.1rem; padding: 1rem 1.8rem; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .7rem var(--gutter);
  background: rgb(251 245 234 / .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgb(110 78 48 / .18);
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--serif); font-size: 1.45rem; color: var(--terra); text-decoration: none;
}
.brand-wheel {
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background:
    radial-gradient(circle, var(--terra) 0 18%, transparent 19% 62%, var(--terra) 63% 100%),
    repeating-conic-gradient(var(--terra) 0 6deg, transparent 6deg 45deg);
  -webkit-mask: radial-gradient(circle, #000 0 70%, transparent 71%);
          mask: radial-gradient(circle, #000 0 70%, transparent 71%);
}
.topbar nav { order: 3; width: 100%; }
.topbar ul { display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.topbar nav a {
  display: inline-block; padding: .2rem 0;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem;
  background: linear-gradient(var(--terra), var(--terra)) 0 100% / 100% 2px no-repeat;
  background-size: 0 2px;
}
.topbar nav a:hover { color: var(--terra); background-size: 100% 2px; }
.topbar .btn-small { margin-left: auto; }

@media (min-width: 46rem) {
  .topbar { flex-wrap: nowrap; }
  .topbar nav { order: 0; width: auto; margin-left: auto; }
  .topbar .btn-small { margin-left: 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(2rem, 6vw, 4.5rem);
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgb(204 141 107 / .28), transparent 70%),
    radial-gradient(40rem 26rem at 0% 100%, rgb(142 185 240 / .18), transparent 70%);
}
.hero-inner {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; gap: 2.5rem; align-items: end;
}
.hero-name {
  font-size: clamp(3rem, 12vw, 6.4rem);
  line-height: .95;
  color: var(--terra);
  margin-bottom: .3em;
}
.hero-headline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--sea-deep);
  line-height: 1.15;
  margin-bottom: .6em;
}
.hero-sub { max-width: 34rem; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0 1.4rem; }
.hero-rating { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .98rem; color: var(--umber); }
.hero-rating strong { color: var(--ink); font-size: 1.1rem; }
.stars { color: var(--terra); letter-spacing: .1em; }

.arch-frame {
  padding: 12px;
  border-radius: 100vmax 100vmax 0 0;
  background: var(--tile);
  background-size: 34px 34px;
  box-shadow: 0 30px 60px -30px rgb(45 24 10 / .5);
}
.arch {
  position: relative; overflow: hidden;
  border-radius: 100vmax 100vmax 0 0;
  background: var(--clay);
}
.arch img { width: 100%; height: 100%; object-fit: cover; scale: 1.18; }
.hero-arch .arch { aspect-ratio: 4 / 5; }
.hero-arch .arch img { object-position: 45% 60%; }
.hero-arch { max-width: 30rem; width: 100%; justify-self: center; }
.arch-caption, figcaption {
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--umber);
  margin-top: .6rem; text-align: center;
}

@media (min-width: 56rem) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
  .hero-text { padding-bottom: 3rem; }
}

/* the tile band — the signature: each tile flips in on its own */
.tile-band {
  display: flex; overflow: hidden;
  margin-top: clamp(2rem, 5vw, 3rem);
  border-block: 4px solid var(--terra);
  background: var(--terra);
  perspective: 900px;
}
.tile-band span {
  flex: 0 0 auto;
  width: clamp(56px, 8vw, 84px); aspect-ratio: 1;
  background: var(--tile);
  background-size: 100% 100%;
  border-right: 2px solid var(--sand);
}
.tile-band span:nth-child(3n+2) { filter: hue-rotate(-120deg) saturate(.75); }
.tile-band span:nth-child(4n+3) { filter: hue-rotate(155deg) saturate(.8) brightness(1.05); }

/* ---------- highlights ---------- */
.highlights { padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(2.5rem, 6vw, 4rem); }
.hl-grid {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap);
  display: grid; gap: 1.25rem; perspective: 1200px;
}
.hl-tile {
  position: relative;
  padding: 2rem 1.6rem 1.7rem;
  color: #fff;
  border-radius: var(--radius);
  border: 8px solid transparent;
  background: var(--tile);
  background-size: 22px 22px;
  background-origin: border-box;
  box-shadow: inset 0 0 0 100vmax var(--bg);
}
.hl-tile h3 { font-size: 1.7rem; color: #fff; }
.hl-tile p { margin: 0; }
.hl-terra { --bg: var(--terra); }
.hl-sea { --bg: var(--sea); }
.hl-olive { --bg: var(--olive); }
.hl-motif {
  display: block; width: 3rem; height: 3rem; margin-bottom: 1rem;
  border-radius: 100vmax 100vmax 0 0;
  border: 2px solid rgb(255 255 255 / .8);
  background: radial-gradient(circle at 50% 100%, rgb(255 255 255 / .35) 0 40%, transparent 41%);
}
@media (min-width: 50rem) {
  .hl-grid { grid-template-columns: repeat(3, 1fr); }
  .hl-tile:nth-child(2) { translate: 0 1.5rem; }
}

/* ---------- arcade edges between sections ---------- */
.arcade {
  height: 28px;
  background-repeat: repeat-x;
  background-size: 56px 28px;
  background-position: 50% 100%;
}
.arcade-to-white { background-color: transparent; background-image: radial-gradient(circle at 50% 100%, var(--sand) 0 27px, transparent 28px); }
.arcade-to-sea { background-image: radial-gradient(circle at 50% 100%, var(--sea-deep) 0 27px, transparent 28px); }
.arcade-from-sea {
  background-color: var(--sea-deep);
  background-image: radial-gradient(circle at 50% 100%, var(--plaster) 0 27px, transparent 28px);
}

.tile-rule {
  height: 22px;
  background: var(--tile);
  background-size: 22px 22px;
  border-block: 3px solid var(--terra);
}

/* ---------- about ---------- */
.about {
  background: var(--sand) var(--noise);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}
.about-grid { display: grid; gap: 3rem; }
.about-text { max-width: 38rem; }
.aside-note {
  font-style: italic;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--olive);
  background: rgb(255 255 255 / .45);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about-photos { display: grid; gap: 1.5rem; align-content: start; }
.photo-arch { margin: 0; }
.photo-arch .arch { aspect-ratio: 3 / 4; outline: 10px solid var(--plaster); outline-offset: -1px; box-shadow: 0 0 0 12px var(--terra); }
.photo-arch.tall .arch { aspect-ratio: 4 / 5; }
.photo-tile { margin: 0; }
.photo-tile img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  border: 8px solid transparent;
  background: var(--tile);
  background-size: 22px 22px;
  background-origin: border-box;
}
@media (min-width: 56rem) {
  .about-grid { grid-template-columns: 1.1fr .9fr; gap: 4.5rem; align-items: start; }
  .about-photos { grid-template-columns: 1fr .8fr; padding-top: 2rem; }
  .about-photos .photo-tile { align-self: end; margin-left: -4rem; margin-bottom: -2rem; position: relative; }
  .about-photos .photo-tile figcaption { text-align: left; }
}

.sourcing {
  margin-top: clamp(3rem, 7vw, 5rem);
  display: grid; gap: 1.6rem;
}
.sourcing-intro h3 { color: var(--olive); font-size: clamp(1.7rem, 4vw, 2.3rem); }
.sourcing-intro p { max-width: 34rem; }
.source-tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); gap: .8rem;
  perspective: 1000px;
}
.source-tiles li {
  display: grid; place-items: center; text-align: center;
  min-height: 6.5rem; padding: 1rem;
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.15;
  color: var(--ink);
  background: var(--plaster);
  border: 6px double var(--olive);
  border-radius: var(--radius);
}
.source-tiles li:nth-child(even) { border-color: var(--sea); }
@media (min-width: 56rem) {
  .sourcing { grid-template-columns: .8fr 1.2fr; align-items: center; }
}

/* ---------- menu ---------- */
.menu { padding-block: clamp(3rem, 7vw, 5rem); }
.menu-head { display: grid; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.menu-head .lead { max-width: 34rem; }
.menu-arch { max-width: 20rem; justify-self: center; width: 100%; }
.menu-arch .arch { aspect-ratio: 1 / 1.15; }
@media (min-width: 50rem) {
  .menu-head { grid-template-columns: 1.4fr 1fr; }
  .menu-arch { justify-self: end; }
}

.start-title { color: var(--sea-deep); }
.start-tiles {
  list-style: none; margin: 0 0 3.5rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem;
  perspective: 1200px;
}
.start-tiles li {
  padding: 1.3rem 1.3rem 1.1rem;
  background: var(--sand-light);
  border-radius: var(--radius);
  border-top: 6px solid var(--terra);
}
.start-tiles li:nth-child(3n+2) { border-top-color: var(--sea); }
.start-tiles li:nth-child(3n) { border-top-color: var(--olive); }
.start-tiles h4 { font-size: 1.45rem; color: var(--ink); margin-bottom: .35em; }
.start-tiles p { margin: 0; font-size: .98rem; }

.menu-board {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
}
.menu-card {
  --edge: var(--terra);
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--radius);
  border: 12px solid transparent;
  background: var(--tile);
  background-size: 24px 24px;
  background-origin: border-box;
  box-shadow: inset 0 0 0 2px var(--edge), inset 0 0 0 100vmax var(--plaster);
}
.menu-card-sea { --edge: var(--sea); }
.menu-card-olive { --edge: var(--olive); }
.menu-card h3 {
  font-size: 1.5rem; color: var(--edge);
  padding-bottom: .55rem; margin-bottom: 1rem;
  border-bottom: 2px dotted var(--clay);
}
.menu-card-wide { grid-column: 1 / -1; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.items li { padding: .55rem .5rem; border-radius: 4px; }
.items li:hover { background: rgb(204 141 107 / .16); }
.items p { margin: .15rem 0 0; font-size: .95rem; color: #4d3523; }
.item-row { display: flex; align-items: baseline; gap: .5rem; }
.item-name { font-weight: 800; letter-spacing: .01em; }
.item-row::after {
  content: ""; order: 1; flex: 1 1 1rem; min-width: 1rem;
  border-bottom: 2px dotted rgb(110 78 48 / .35); translate: 0 -.25em;
}
.price {
  order: 2; font-family: var(--serif); font-size: 1.2rem; color: var(--terra-deep);
}
@media (min-width: 50rem) {
  .items-2col { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}

.menu-photos { display: grid; gap: 1.2rem; margin-top: 2.5rem; }
@media (min-width: 40rem) { .menu-photos { grid-template-columns: 1fr 1fr; } }

/* ---------- brewery ---------- */
.brewery {
  background: var(--sea-deep);
  color: var(--sand-light);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}
.brewery h2 { color: var(--sand); }
.brewery h3 { color: var(--sky); }
.brewery .kicker { color: var(--sky); }
.brewery a { color: var(--sky); }
.brew-grid { display: grid; gap: 2.5rem; align-items: center; }
.brew-arch { max-width: 26rem; width: 100%; justify-self: center; }
.brew-arch .arch { aspect-ratio: 4 / 5; outline-color: var(--sea-deep); box-shadow: 0 0 0 12px var(--clay); }
.brewery figcaption { color: var(--sand); }
@media (min-width: 56rem) {
  .brew-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
}

.taplist { margin-block: clamp(2.5rem, 6vw, 4rem); }
.taplist h3 { font-size: 1.4rem; }
.marquee {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  background: var(--sand);
  color: var(--ink);
  border-block: 5px solid var(--terra);
  box-shadow: 0 -11px 0 -1px var(--clay), 0 11px 0 -1px var(--clay);
}
.marquee li {
  padding: .9rem 1.3rem;
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; white-space: nowrap;
  border-right: 2px dotted var(--clay);
}
.marquee small { display: block; font-family: var(--sans); font-size: .85rem; font-weight: 700; color: var(--umber); margin-top: .2rem; }

.can-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1.2rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.can-row .arch { outline-color: var(--sea-deep); box-shadow: 0 0 0 8px var(--clay); }
.can-row .arch img { scale: 1; transition: scale .6s ease; }
@media (min-width: 50rem) { .can-row { grid-template-columns: repeat(4, 1fr); } }

.brewer-grid { display: grid; gap: 2rem; }
.brewer h3 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.brewer p { max-width: 40rem; }
.media-tile {
  align-self: start;
  padding: 1.8rem 1.6rem;
  background: var(--sand-light);
  color: var(--ink);
  border-radius: 100vmax 100vmax var(--radius) var(--radius) / 9rem 9rem var(--radius) var(--radius);
  padding-top: 3.5rem;
  border: 3px solid var(--clay);
}
.media-tile h3 { color: var(--terra); text-align: center; }
.media-tile h4 { font-size: 1.3rem; color: var(--sea-deep); margin-top: 1.3rem; }
.media-tile p:last-child { margin-bottom: 0; }
@media (min-width: 56rem) {
  .brewer-grid { grid-template-columns: 1.3fr 1fr; gap: 4rem; }
}

/* ---------- reviews ---------- */
.reviews { padding-block: clamp(3rem, 7vw, 5rem); }
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.reviews-head h2 { margin: 0; }
.rating-big { display: flex; align-items: center; gap: .8rem; margin: 0; color: var(--umber); font-weight: 700; line-height: 1.25; }
.rating-big .num {
  display: grid; place-items: center;
  width: 4.4rem; height: 5rem;
  border-radius: 100vmax 100vmax 0 0;
  background: var(--terra); color: #fff;
  font-family: var(--serif); font-size: 1.9rem; font-weight: 400;
  padding-top: .5rem;
}
.quote-grid { display: grid; gap: 1.2rem; }
.quote {
  margin: 0;
  padding: 1.6rem 1.5rem;
  background: var(--sand-light);
  border-radius: var(--radius);
  border-left: 6px solid var(--sea);
}
.quote p { font-size: 1.05rem; }
.quote footer { font-weight: 800; color: var(--umber); font-size: .95rem; }
.quote-feature { background: var(--terra); color: #fff; border-left-color: var(--clay); }
.quote-feature p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; }
.quote-feature footer { color: var(--sand); }
@media (min-width: 56rem) {
  .quote-grid { grid-template-columns: 1fr 1.4fr 1fr; align-items: start; }
  .quote-feature { margin-top: -1rem; }
}

/* ---------- visit ---------- */
.visit {
  background:
    radial-gradient(50rem 30rem at 100% 100%, rgb(204 141 107 / .3), transparent 70%),
    var(--sand) var(--noise);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.visit-grid { display: grid; gap: 3rem; align-items: start; }
.visit-arch { max-width: 26rem; width: 100%; justify-self: center; }
.visit-arch .arch { aspect-ratio: 3 / 4; }
.visit-info .lead { max-width: 34rem; }
.visit-info .btn-big { margin: .5rem 0 2.2rem; }
.visit-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.info-tile {
  padding: 1.3rem 1.3rem 1.1rem;
  background: var(--plaster);
  border-radius: var(--radius);
  border: 6px double var(--sea);
}
.info-tile h3 { font-size: 1.4rem; color: var(--sea-deep); margin-bottom: .4rem; }
.info-tile p { margin-bottom: .4rem; }
.info-tile a { font-weight: 700; overflow-wrap: anywhere; }
.hours-tile { grid-column: 1 / -1; border-color: var(--terra); }
.hours-tile h3 { color: var(--terra); }
.hours { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hours th { text-align: left; font-weight: 700; padding: .35rem 0; }
.hours td { text-align: right; padding: .35rem 0; font-variant-numeric: tabular-nums; }
.hours tr + tr { border-top: 1px dotted rgb(110 78 48 / .35); }
.hours .late td { color: var(--terra-deep); font-weight: 800; }
@media (min-width: 56rem) {
  .visit-grid { grid-template-columns: .85fr 1.15fr; gap: 4.5rem; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--sand); }
.footer-inner { padding-block: 2.5rem 3rem; text-align: center; }
.footer-name { font-family: var(--serif); font-size: 2rem; color: var(--clay); margin-bottom: .4rem; }
.site-footer a { color: var(--sand); }
.site-footer a:hover { color: var(--clay); }
.site-footer :focus-visible { outline-color: var(--sky); }
.site-footer .small { font-style: italic; opacity: .85; margin: 0; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes tile-flip {
    from { opacity: 0; transform: rotateY(-95deg); }
    60%  { opacity: 1; }
    to   { opacity: 1; transform: rotateY(0); }
  }

  /* hero band: tiles turn over one by one on arrival */
  .tile-band span {
    transform-origin: 0 50%;
    animation: tile-flip .7s cubic-bezier(.2, .7, .3, 1.15) both;
    animation-delay: calc(500ms + var(--i) * 70ms);
  }

  /* tiles further down flip as they scroll into view */
  @supports (animation-timeline: view()) {
    .flip {
      transform-origin: 50% 50%;
      animation: tile-flip linear both;
      animation-timeline: view();
      animation-range: entry calc(var(--i, 0) * 8%) entry calc(70% + var(--i, 0) * 8%);
    }
  }

  .btn { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--terra-deep); }
  .topbar nav a { transition: background-size .25s ease, color .2s ease; }
  .items li { transition: background-color .2s ease; }
  /* translate/rotate rather than transform, so hover doesn't fight the flip animation */
  .start-tiles li, .source-tiles li, .info-tile { transition: translate .25s ease, rotate .25s ease; }
  .start-tiles li:hover, .source-tiles li:hover, .info-tile:hover { translate: 0 -4px; rotate: -.6deg; }
  .can-row figure:hover .arch img { scale: 1.07; }
  .brand-wheel { transition: transform .6s ease; }
  .brand:hover .brand-wheel { transform: rotate(180deg); }
}
