/* ben lopes — shared styles: liquid glass + motion */

:root {
  --ink: #0b0b0c;
  --muted: #86868b;
  /* spring curves (damped springs, like ios) */
  --spring: linear(0, 0.017, 0.061, 0.124, 0.198, 0.279, 0.361, 0.442, 0.519, 0.591, 0.657, 0.717, 0.77, 0.816, 0.856, 0.889, 0.918, 0.941, 0.96, 0.976, 0.988, 0.997, 1.004, 1.008, 1.012, 1.014, 1.015, 1.015, 1.015, 1.014, 1.013, 1.012, 1.011, 1.01, 1.008, 1.007, 1.006, 1.005, 1.004, 1.003, 1);
  --bounce: linear(0, 0.028, 0.101, 0.203, 0.32, 0.443, 0.562, 0.674, 0.773, 0.857, 0.927, 0.982, 1.024, 1.053, 1.071, 1.081, 1.084, 1.081, 1.075, 1.066, 1.057, 1.046, 1.036, 1.027, 1.019, 1.012, 1.006, 1.001, 0.998, 0.996, 0.994, 0.993, 0.993, 0.993, 0.994, 0.994, 0.995, 0.996, 0.997, 0.998, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #fff; }
html, body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #0a84ff; outline-offset: 3px; }

/* page-to-page morph (chrome, edge, safari 18.2+) */
@view-transition { navigation: auto; }
::view-transition-group(capsule) { animation-duration: .75s; animation-timing-function: var(--spring); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }


/* ---------- liquid glass ---------- */

.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-tint, rgba(255, 255, 255, .16));
  -webkit-backdrop-filter: blur(var(--glass-blur, 12px)) saturate(180%) brightness(1.06);
  backdrop-filter: blur(var(--glass-blur, 12px)) saturate(180%) brightness(1.06);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .75),
    inset 0 -1px 1px rgba(255, 255, 255, .2),
    inset 0 0 14px rgba(255, 255, 255, .14),
    0 8px 24px -8px rgba(0, 0, 0, .22),
    0 2px 6px rgba(0, 0, 0, .06);
}
/* chromium also bends what's behind the glass, like a lens */
html.refract .glass {
  backdrop-filter: url(#liquid-lens) blur(var(--glass-blur, 12px)) saturate(180%) brightness(1.06);
}
/* bright rim, lit from the top left */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, .95) 0%,
    rgba(255, 255, 255, .15) 35%,
    rgba(255, 255, 255, .05) 65%,
    rgba(255, 255, 255, .55) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
/* a highlight that follows the pointer */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(140px circle at var(--gx, 30%) var(--gy, -20%), rgba(255, 255, 255, .45), transparent 60%);
  opacity: .55;
  transition: opacity .4s var(--ease-out);
  pointer-events: none;
}

/* glass sitting on a white page: a clear bead with a faint rainbow rim */
.glass.on-white {
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(242, 243, 247, .82));
  box-shadow:
    inset 0 1px 1px #fff,
    inset 0 -2px 4px rgba(120, 130, 160, .10),
    0 10px 28px -10px rgba(40, 50, 90, .28),
    0 2px 6px rgba(40, 50, 90, .08),
    0 0 0 .5px rgba(0, 0, 0, .06);
}
.glass.on-white::before {
  padding: 1.25px;
  background: conic-gradient(from 200deg,
    rgba(255, 170, 200, .55), rgba(150, 200, 255, .6), rgba(170, 255, 225, .45),
    rgba(255, 240, 160, .5), rgba(255, 170, 200, .55));
}
.glass.on-white::after {
  background: radial-gradient(90px circle at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, 1), transparent 70%);
}

@media (prefers-reduced-transparency: reduce) {
  .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(250, 250, 252, .96); color: var(--ink); }
}


/* ---------- welcome page ---------- */

.welcome {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.line {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.6;
  text-align: center;
}
.w {
  display: inline-block;
  opacity: 0;
  animation: word-in 1s var(--spring) forwards;
  animation-delay: calc(150ms + var(--i) * 85ms);
}
@keyframes word-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

.pill {
  view-transition-name: capsule;
  display: inline-block;
  margin-left: .15em;
  padding: .2em .65em .26em;
  border-radius: 999px;
  vertical-align: baseline;
  transform: scale(var(--s, 1));
  transition: transform .6s var(--bounce);
  animation: pill-in 1.1s var(--bounce) backwards;
  animation-delay: 600ms;
}
.pill:hover { --s: 1.07; }
.pill:hover::after { opacity: 1; }
.pill:active { --s: .94; transition-duration: .25s; }
@keyframes pill-in {
  from { opacity: 0; transform: scale(.6); filter: blur(6px); }
  to   { opacity: 1; transform: scale(1); filter: blur(0); }
}
/* a light sweep across the glass now and then */
.pill .sheen-clip {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.pill .sheen {
  position: absolute;
  inset: -20% auto -20% -40%;
  width: 35%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .95), transparent);
  transform: translateX(0) skewX(-18deg);
  animation: sheen 7s var(--ease-out) 1.5s infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%   { transform: translateX(0) skewX(-18deg); }
  14%  { transform: translateX(520%) skewX(-18deg); }
  100% { transform: translateX(520%) skewX(-18deg); }
}

/* leaving the welcome page: the words drift away first */
html.leaving .w {
  animation: word-out .32s var(--ease-out) forwards;
  animation-delay: calc((5 - var(--i)) * 35ms);
}
@keyframes word-out {
  from { opacity: 1; transform: none; filter: blur(0); }
  to   { opacity: 0; transform: translateY(-10px); filter: blur(8px); }
}


/* ---------- homepage ---------- */

/* soft color in the background so the glass has something to bend */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ambient i {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  opacity: .42;
  animation: drift 38s ease-in-out infinite alternate;
}
.ambient i:nth-child(1) { left: -30vmax; top: -34vmax; background: radial-gradient(closest-side, #ffc6a3, transparent); }
.ambient i:nth-child(2) { right: -34vmax; top: 4vmax; background: radial-gradient(closest-side, #a9d3f7, transparent); animation-duration: 46s; animation-direction: alternate-reverse; }
.ambient i:nth-child(3) { left: 10vmax; bottom: -46vmax; background: radial-gradient(closest-side, #ddd0ff, transparent); animation-duration: 52s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(8vmax, 6vmax) scale(1.12); }
}

/* floating glass capsule at the top */
.topbar {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.capsule {
  view-transition-name: capsule;
  --glass-tint: rgba(255, 255, 255, .5);
  --glass-blur: 18px;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  transform: scale(var(--s, 1));
  transition: transform .6s var(--bounce);
}
.capsule:hover { --s: 1.05; }
.capsule:hover::after { opacity: 1; }
.capsule:active { --s: .95; transition-duration: .25s; }
.capsule .back {
  width: 8px;
  height: 8px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  margin: 0 2px 0 1px;
  opacity: .55;
}

.page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 24px 72px;
}

.intro { margin: 0 4px 30px; }
.intro h1 {
  margin: 0;
  font-size: clamp(38px, 5.5vw, 52px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.05;
}
.intro p {
  margin: 8px 0 0;
  font-size: 17px;
  color: var(--muted);
}
.intro h1, .intro p { animation: rise .9s var(--spring) backwards; }
.intro h1 { animation-delay: 120ms; }
.intro p  { animation-delay: 200ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
}
/* the big title fades as you scroll, like ios */
@supports (animation-timeline: scroll()) {
  .intro { animation: intro-out linear both; animation-timeline: scroll(); animation-range: 0 140px; }
  @keyframes intro-out { to { opacity: 0; transform: translateY(-14px) scale(.98); filter: blur(4px); } }
}

/* the grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  perspective: 1000px;
}

.tile {
  --r: 30px;
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  color: #fff;
  cursor: pointer;
  transform: translateY(var(--lift, 0)) scale(var(--s, 1)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s var(--spring), box-shadow .5s var(--ease-out);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 30px -16px rgba(0, 0, 0, .35);
  animation: tile-in 1s var(--spring) backwards;
  animation-delay: calc(260ms + var(--i) * 90ms);
}
@keyframes tile-in {
  from { opacity: 0; transform: translateY(28px) scale(.92); filter: blur(8px); }
}
.tile:hover {
  --lift: -6px;
  --s: 1.02;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 30px 60px -24px var(--bg), 0 18px 36px -20px rgba(0, 0, 0, .35);
}
.tile:active { --s: .97; --lift: 0px; transition-duration: .3s; }
.tile.soon { cursor: default; }

.tile .cover { position: absolute; inset: 0; }

/* shine that follows the pointer */
.tile .glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .38), transparent 46%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity .4s var(--ease-out);
  pointer-events: none;
}
.tile:hover .glare { opacity: 1; }

.tile .label {
  --glass-tint: rgba(18, 22, 32, .16);
  position: absolute;
  z-index: 4;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 10px 15px 11px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  transition: transform .6s var(--spring);
}
.tile:hover .label { transform: translateY(-3px); }
.tile:hover .label::after, .tile:hover .go::after { opacity: 1; }

.tile .go {
  --glass-tint: rgba(18, 22, 32, .14);
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  transition: transform .6s var(--bounce);
}
.tile .go svg { width: 14px; height: 14px; }
.tile .go svg.lk { width: 11px; height: 14px; margin-top: -1px; }
.tile:hover .go { transform: scale(1.12) rotate(-8deg); }
.tile.soon:hover .go { transform: none; }

/* trusty clean co. cover */
.cover-trusty .logo {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 70%;
  transform: translate(-50%, -50%);
  transition: transform .8s var(--spring);
}
.tile:hover .cover-trusty .logo { transform: translate(-50%, -50%) scale(1.04); }
.cover-trusty .sparkle {
  position: absolute;
  width: var(--sz);
  left: var(--x);
  top: var(--y);
  color: var(--c, #fff);
  animation: twinkle 3.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  transition: translate .8s var(--bounce);
}
.cover-trusty .sparkle svg { display: block; width: 100%; height: auto; }
.tile:hover .cover-trusty .sparkle { translate: var(--hx, 0) var(--hy, 0); }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50%      { transform: scale(.72) rotate(18deg); opacity: .75; }
}

/* photo cover (trico office interiors) */
.cover-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease-out);
}
.tile:hover .cover-photo img { transform: scale(1.09); }
.cover-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 18, 36, .35), transparent 45%);
}

/* northwest storage and disposal cover */
.cover-nw {
  background-image: repeating-linear-gradient(-45deg, rgba(28, 35, 41, .07) 0 3px, transparent 3px 24px);
  animation: tread 16s linear infinite;
}
@keyframes tread { to { background-position: 68px 0; } }
.cover-nw svg {
  position: absolute;
  left: -2%;
  bottom: 0;
  width: 104%;
  height: auto;
}
.nw-pod-in   { animation: drop 1s cubic-bezier(.35, .05, .4, 1) backwards; animation-delay: calc(500ms + var(--i) * 90ms); }
.nw-bin-in   { animation: roll-in 1.1s var(--spring) backwards; animation-delay: calc(950ms + var(--i) * 90ms); }
.nw-wheel, .nw-wheel-h { transform-box: fill-box; transform-origin: center; }
.nw-wheel    { animation: spin 1.1s var(--ease-out) backwards; animation-delay: calc(950ms + var(--i) * 90ms); }
.tile:hover .nw-pod     { animation: hop .7s var(--bounce); }
.tile:hover .nw-bin     { animation: nudge .9s var(--spring); }
.tile:hover .nw-wheel-h { animation: spin .9s var(--ease-out); }
@keyframes drop {
  0%   { transform: translateY(-320px); }
  62%  { transform: translateY(0); }
  76%  { transform: translateY(-16px); }
  88%  { transform: translateY(0); }
  94%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}
@keyframes roll-in { from { transform: translateX(340px); } }
@keyframes spin    { from { transform: rotate(0); } to { transform: rotate(-540deg); } }
@keyframes hop     { 0%, 100% { transform: none; } 35% { transform: translateY(-18px); } }
@keyframes nudge   { 0%, 100% { transform: none; } 40% { transform: translateX(-14px); } }

/* opening a site: the square grows to fill the screen first */
.zoom {
  position: fixed;
  z-index: 50;
  overflow: hidden;
  pointer-events: none;
}
.zoom .cover { position: absolute; }
.zoom .cover-photo img { transform: none; }
.zoom * { animation: none !important; }

.foot {
  margin-top: 56px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- "i want one of these" + contact sheet ---------- */

.page { padding-bottom: 150px; transition: transform .6s var(--spring), filter .45s var(--ease-out), border-radius .6s var(--spring); }
html.sheet-open { overflow: hidden; }
html.sheet-in .page {
  transform: scale(.93) translateY(8px);
  filter: brightness(.9) saturate(.9);
  border-radius: 28px;
}

.want {
  --glass-tint: rgba(255, 255, 255, .58);
  --glass-blur: 18px;
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 23px 15px 19px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
  transform: translateX(-50%) scale(var(--s, 1));
  transition: transform .6s var(--bounce), opacity .35s var(--ease-out);
  animation: want-in 1.1s var(--bounce) 1s backwards;
}
.want svg { width: 17px; height: 17px; transition: transform .8s var(--bounce); }
.want:hover { --s: 1.05; }
.want:hover svg { transform: rotate(90deg) scale(1.1); }
.want:hover::after { opacity: 1; }
.want:active { --s: .95; transition-duration: .25s; }
@keyframes want-in { from { opacity: 0; transform: translateX(-50%) translateY(40px) scale(.8); } }
html.sheet-in .want { opacity: 0; transform: translateX(-50%) scale(.86); pointer-events: none; }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 12, 20, .26);
  opacity: 0;
  transition: opacity .45s var(--ease-out);
}
html.sheet-in .scrim { opacity: 1; }

.sheet {
  --glass-tint: rgba(250, 250, 252, .84);
  --glass-blur: 30px;
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 50%;
  width: min(460px, calc(100% - 16px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  border-radius: 36px;
  outline: none;
  transform: translate(-50%, 100vh);
  transition: transform .62s var(--spring);
}
html.sheet-in .sheet { transform: translate(-50%, 50%); }

.sheet-head {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 20px 16px 10px;
  touch-action: none;
  cursor: grab;
}
.sheet-head:active { cursor: grabbing; }
.grabber {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 36px;
  height: 5px;
  margin-left: -18px;
  border-radius: 3px;
  background: rgba(60, 60, 67, .28);
}
.sheet-head h2 { margin: 0; text-align: center; font-size: 17px; font-weight: 700; }
.circle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: transform .5s var(--bounce), opacity .25s;
}
.circle svg { width: 16px; height: 16px; }
.circle.glass { --glass-tint: rgba(255, 255, 255, .7); }
.circle:hover:not(:disabled) { transform: scale(1.07); }
.circle:active:not(:disabled) { transform: scale(.92); transition-duration: .2s; }
.send { background: var(--ink); color: #fff; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5); }
.send:disabled { opacity: .22; cursor: default; }
.send.busy svg { animation: bob .7s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-3px); } }

.sheet-body { overflow-y: auto; padding: 2px 16px 18px; overscroll-behavior: contain; }
.sheet-sub { margin: 2px 8px 18px; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.4; }

.group {
  margin-bottom: 14px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .05);
}
.group input, .group textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 13px 16px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.group > * + * {
  background-image: linear-gradient(rgba(60, 60, 67, .18), rgba(60, 60, 67, .18));
  background-position: 16px 0;
  background-size: calc(100% - 16px) 1px;
  background-repeat: no-repeat;
}
.group textarea { min-height: 92px; resize: none; line-height: 1.35; }
.group input::placeholder, .group textarea::placeholder { color: rgba(60, 60, 67, .42); }
.group input:focus, .group textarea:focus { background-color: rgba(255, 255, 255, .55); }

.group-label { margin: 0 16px 7px; font-size: 13px; color: var(--muted); }
.seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
  padding: 3px;
  border-radius: 13px;
  background: rgba(118, 118, 128, .14);
}
.seg label { position: relative; z-index: 1; text-align: center; cursor: pointer; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 4px; border-radius: 10px; font-size: 14px; }
.seg input:checked + span { font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid #0a84ff; outline-offset: -2px; }
.seg-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04);
  opacity: 0;
  transform: translateX(calc(var(--seg, 0) * 100%)) scale(var(--ss, .9));
  transition: transform .55s var(--spring), opacity .25s var(--ease-out);
}
.seg.picked .seg-thumb { opacity: 1; --ss: 1; }
.seg.picked:active .seg-thumb { --ss: .95; }

.form-status { margin: 2px 8px 0; text-align: center; font-size: 14px; line-height: 1.4; color: var(--muted); }
.form-status:empty { display: none; }
.form-status.error { color: #d70015; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sent { padding: 24px 10px 34px; text-align: center; }
.sent h3 { margin: 16px 0 6px; font-size: 24px; }
.sent p { margin: 0; color: var(--muted); }
.check { width: 76px; height: 76px; fill: none; stroke: #34c759; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .6s var(--ease-out) .05s forwards; }
.check path { stroke-width: 4; stroke-dasharray: 34; stroke-dashoffset: 34; animation: draw .45s var(--ease-out) .45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sent:not([hidden]) h3, .sent:not([hidden]) p { animation: rise .7s var(--spring) .5s backwards; }

@media (max-width: 700px) {
  .page { padding: 96px 14px 130px; }
  .want { bottom: 18px; }
  .sheet { bottom: 8px; border-radius: 34px; }
  html.sheet-in .sheet { transform: translate(-50%, 0); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { --r: 22px; }
  .tile .label { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 8px 11px 9px; border-radius: 14px; font-size: 13px; }
  .tile .go { top: 8px; right: 8px; min-width: 32px; height: 32px; padding: 0 10px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .w { opacity: 1; }
  @view-transition { navigation: none; }
}
