:root {
  --ink: #141a33;
  --muted: #5c627a;
  --line: #e4e7f0;
  --paper: #ffffff;
  --wash: #f4f5f8;
  --cobalt: #1d4ed8;
  --cobalt-deep: #1740b3;
  --tint: #e8edfb;
  --tint-strong: #b9c8f5;
  --mist: #f4f5f8;
  --dots: radial-gradient(circle at 1.5px 1.5px, rgba(20, 26, 51, 0.11) 1.5px, transparent 2px) 0 0 / 22px 22px;

  --display: "Bricolage Grotesque", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Type scale. Body text in DM Sans, titles in Bricolage Grotesque at 750. */
  --text-xs: 13px;   /* tags, captions, fine print */
  --text-sm: 15px;   /* nav, buttons, labels, card copy, footer */
  --text-md: 17px;   /* body and section intros */
  --text-lead: clamp(18px, 1.6vw, 20px); /* the paragraph under a page title */
  --title-sm: 19px;  /* list item titles */
  --title-md: 22px;  /* card titles */
  --title-lg: clamp(28px, 3vw, 36px);  /* sub-section titles */
  --title-xl: clamp(32px, 4vw, 44px);  /* section titles (h2) */

  --stamp: 176px;
  --nav-h: 84px;
  --page-pad: 56px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--text-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.35);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
}

/* Header */

.nav {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.wordmark span {
  color: var(--cobalt);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: var(--text-sm);
}

.nav-links a {
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--cobalt);
}

.location {
  color: var(--muted);
}

/* Hero: the name as four postage stamps, filling the first screen below the header */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-content: center;
  align-items: center;
  min-height: calc(100svh - var(--nav-h));
  padding: clamp(16px, 3svh, 40px) 0;
}

h1 {
  max-width: 12.5ch;
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: clamp(52px, min(7.2vw, 10.2svh), 92px);
  font-weight: 750;
  font-variation-settings: "wdth" 90;
  letter-spacing: -0.03em;
  line-height: 0.96;
  text-wrap: balance;
}

.intro {
  max-width: 36ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-lead);
  line-height: 1.55;
}

/* Hero index: what we do, one scannable row each, tagged in the stamp colours */

.offer-index {
  max-width: 34rem;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1.5px solid var(--line);
}

.offer-index li {
  border-top: 1.5px solid var(--line);
}

.offer-index a {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 4px 18px;
  align-items: baseline;
  padding: 14px 4px;
  text-decoration: none;
  transition: background 160ms ease;
}

.offer-index strong {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--display);
  font-size: var(--title-sm);
  font-weight: 750;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.offer-index strong::before {
  width: 12px;
  height: 14px;
  flex: none;
  border-radius: 2px;
  background: var(--tag);
  box-shadow: inset 0 0 0 1.5px var(--tag-edge, transparent);
  content: "";
  transform: rotate(-6deg);
}

.oi-products { --tag: var(--cobalt); }
.oi-cloud { --tag: var(--ink); }
.oi-global { --tag: var(--tint); --tag-edge: var(--cobalt); }

.offer-index span {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.offer-index a:hover {
  background: linear-gradient(90deg, var(--tint), transparent);
}

.offer-index a:hover strong {
  color: var(--cobalt);
}

.intro-note {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Each stamp is lifted off the sheet and laid down, its shadow tightening as it lands.
   It catches the light once, then the postmark is pressed across the corner. */
.sheet {
  --ease-lay: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(2, var(--stamp));
  gap: 18px 20px;
  padding: 12px;
  animation: thud 320ms var(--ease-out) 1620ms;
}

.slot {
  animation: lay 1000ms var(--ease-lay) var(--d) both;
}

.slot:nth-child(1) { --r: -5deg; --x: -16px; --d: 100ms; }
.slot:nth-child(2) { --r: 3deg; --x: 14px; --d: 220ms; margin-top: 22px; }
.slot:nth-child(3) { --r: 2deg; --x: -10px; --d: 340ms; }
.slot:nth-child(4) { --r: -3deg; --x: 12px; --d: 460ms; margin-top: 22px; }

@keyframes lay {
  from {
    opacity: 0;
    transform: translate(var(--x), -36px) rotate(calc(var(--r) * -1.6)) scale(1.06);
  }
  40% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: rotate(var(--r));
  }
}

@keyframes settle {
  from {
    filter: drop-shadow(0 38px 36px rgba(20, 26, 51, 0.08)) drop-shadow(0 12px 14px rgba(20, 26, 51, 0.05));
  }
}

@keyframes sheen {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}

@keyframes thud {
  40% { transform: scale(0.994); }
}

/* Perforated edge: a dotted field of holes, with the artwork covering all but a thin border. */
.stamp {
  position: relative;
  width: var(--stamp);
  height: calc(var(--stamp) + 32px);
  padding: 10px;
  background: radial-gradient(circle, transparent 5px, #fff 5.5px) -8px -8px / 16px 16px;
  filter: drop-shadow(0 14px 22px rgba(20, 26, 51, 0.14)) drop-shadow(0 2px 3px rgba(20, 26, 51, 0.08));
  transition: transform 520ms var(--ease-out), filter 520ms var(--ease-out);
}

.stamp:hover {
  transform: translateY(-6px) rotate(-2deg) scale(1.02);
  filter: drop-shadow(0 24px 30px rgba(20, 26, 51, 0.16)) drop-shadow(0 4px 6px rgba(20, 26, 51, 0.08));
}

.slot:nth-child(even) .stamp:hover {
  transform: translateY(-6px) rotate(2.5deg) scale(1.02);
}

.slot .stamp {
  animation: settle 1000ms var(--ease-lay) var(--d) backwards;
}

.face {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 14px 16px 12px;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
}

.face::after {
  position: absolute;
  inset: 6px;
  border: 1.5px solid currentColor;
  opacity: 0.22;
  content: "";
  pointer-events: none;
}

/* A band of light that crosses the print once on landing, and again on hover. */
.slot .face::before {
  position: absolute;
  z-index: 1;
  inset: -20% -40%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.34) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: sheen 1100ms cubic-bezier(0.45, 0, 0.25, 1) calc(var(--d) + 650ms) backwards;
  content: "";
  pointer-events: none;
}

.slot .stamp:hover .face::before {
  transform: translateX(130%);
  transition: transform 900ms cubic-bezier(0.45, 0, 0.25, 1);
}

.syllable {
  font-family: var(--display);
  font-size: 92px;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  letter-spacing: -0.06em;
  line-height: 0.8;
}

.value {
  align-self: flex-end;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.face svg {
  position: absolute;
  right: -18px;
  bottom: 30px;
  width: 96px;
  height: 96px;
  opacity: 0.22;
}

.s1 { --bg: var(--cobalt); --fg: #fff; }
.s2 { --bg: #fbfbfd; --fg: var(--ink); }
.s3 { --bg: var(--ink); --fg: #fff; }
.s4 { --bg: var(--tint); --fg: var(--cobalt); }

/* A rubber handstamp: pressed in, the ink heavy on contact, drying a shade lighter, with grain. */
.postmark {
  position: absolute;
  z-index: 2;
  top: 71%;
  left: 40%;
  width: 280px;
  color: var(--ink);
  mix-blend-mode: multiply;
  pointer-events: none;
  transform-origin: 22% 50%;
  -webkit-mask-image: var(--grain);
  mask-image: var(--grain);
  --grain: 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='0.8' numOctaves='2' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 2.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: cancel 560ms var(--ease-out) 1300ms both;
}

@keyframes cancel {
  from {
    opacity: 0;
    transform: translate(-4px, -16px) rotate(-12deg) scale(1.14);
  }
  55% {
    opacity: 0.9;
    transform: rotate(-9deg) scale(0.985);
  }
  to {
    opacity: 0.72;
    transform: rotate(-9deg);
  }
}

/* Products */

.products {
  padding: 0 0 112px;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--title-xl);
  font-weight: 750;
  font-variation-settings: "wdth" 90;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-md);
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--paper);
}

.product-card + .product-card {
  margin-top: 28px;
}

.product-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 56px;
}

.product-name {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 56px);
  font-weight: 450;
  letter-spacing: -0.055em;
  line-height: 1;
}

.product-name strong {
  font-weight: 800;
}

.product-description {
  max-width: 36ch;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: var(--text-lead);
  line-height: 1.55;
}

.product-description + .product-description {
  margin-top: -16px;
}

/* unofax: a rubber stamp inked onto the card, and a franking-meter style imprint for the numbers */

.ink-stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 26px;
  padding: 9px 18px 10px;
  border: 3px solid currentColor;
  border-radius: 10px;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4.5px currentColor;
  color: var(--cobalt);
  line-height: 1;
  transform: rotate(-6deg);
  transform-origin: 30% 60%;
  -webkit-mask-image: var(--ink);
  mask-image: var(--ink);
  --ink: 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='0.75' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.4 2.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ink-stamp span {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ink-stamp strong {
  margin-top: 4px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 800;
  font-variation-settings: "wdth" 85;
  letter-spacing: -0.02em;
}

@keyframes press {
  from {
    opacity: 0;
    transform: rotate(-18deg) scale(1.7);
  }
  60% {
    opacity: 1;
    transform: rotate(-6deg) scale(0.95);
  }
  to {
    opacity: 1;
    transform: rotate(-6deg) scale(1);
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ink-stamp {
      animation: press linear both;
      animation-timeline: view();
      animation-range: entry 60% cover 30%;
    }
  }
}

.franking {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 340px);
  margin: 0 0 30px;
  border: 1.5px solid rgba(23, 64, 179, 0.5);
  border-radius: 8px;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px rgba(23, 64, 179, 0.28);
  color: var(--cobalt-deep);
}

.franking div {
  display: flex;
  flex-direction: column;
  padding: 16px 18px 15px;
}

.franking div + div {
  border-left: 1.5px dashed rgba(23, 64, 179, 0.35);
}

.franking dt {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.franking dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.35;
}

.button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, transform 240ms var(--ease-spring);
}

.button:hover {
  background: var(--cobalt);
  transform: translateY(-2px) rotate(-1.5deg);
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
}

.product-links a,
.policy-links a,
.facts a {
  color: var(--cobalt);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(29, 78, 216, 0.25);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.product-links a:hover,
.policy-links a:hover,
.facts a:hover {
  text-decoration-color: currentColor;
}

.product-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  overflow: hidden;
  margin: 12px;
  border-radius: 26px;
}

.fax-art {
  background: var(--dots), var(--mist);
}

.post-art {
  background: var(--dots), var(--mist);
}

/* unofax art: a fax that prints out of the window when you point at it */

.fax-scene {
  position: relative;
  width: min(380px, calc(100% - 64px));
}

.fax-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(29, 78, 216, 0.14);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(29, 78, 216, 0.35);
  transform: rotate(-3deg);
  transition: transform 520ms var(--ease-spring);
}

.window-bar {
  display: flex;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}


.window-body {
  padding: 40px 32px 34px;
  text-align: center;
}

.window-logo {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 450;
  letter-spacing: -0.05em;
}

.window-logo strong {
  font-weight: 800;
}

.window-title {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 700;
}

.window-subtitle {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.upload {
  padding: 16px;
  border: 1.5px dashed #aac0f8;
  border-radius: 12px;
  background: #f8faff;
  color: var(--cobalt);
  font-size: 13px;
  font-weight: 700;
}

.fax-paper {
  position: absolute;
  z-index: 1;
  bottom: 24px;
  left: 50%;
  width: 62%;
  height: 150px;
  padding: 22px 20px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 30px -10px rgba(20, 26, 51, 0.25);
  transform: translateX(-50%) rotate(-3deg);
  transition: transform 620ms var(--ease-spring);
}

.fax-paper i,
.letter-sheet i {
  display: block;
  height: 6px;
  margin-bottom: 11px;
  border-radius: 6px;
  background: #e1e4ee;
}

.fax-paper i:first-child {
  width: 40%;
  background: var(--cobalt);
  opacity: 0.7;
}

.fax-paper i:last-child,
.letter-sheet i:last-child {
  width: 60%;
}

.fax-card:hover .fax-window,
.fax-card:focus-within .fax-window {
  transform: rotate(0deg) translateY(-26px);
}

.fax-card:hover .fax-paper,
.fax-card:focus-within .fax-paper {
  transform: translate(-50%, 92px) rotate(4deg);
}

/* unopost art: a letter that slips into an airmail envelope */

.post-scene {
  position: relative;
  width: min(400px, calc(100% - 64px));
  height: 300px;
}

.letter-sheet {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: 240px;
  height: 200px;
  padding: 26px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 40px -12px rgba(20, 26, 51, 0.22);
  transform: translateX(-50%) rotate(4deg);
  transition: transform 620ms var(--ease-spring);
}

.letter-brand {
  margin-bottom: 26px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.05em;
}

.letter-brand strong {
  font-weight: 800;
}

.envelope {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 172px;
  padding: 9px;
  border-radius: 10px;
  background: repeating-linear-gradient(135deg, var(--cobalt) 0 16px, #fff 16px 26px, var(--tint-strong) 26px 42px, #fff 42px 52px);
  box-shadow: 0 30px 50px -20px rgba(20, 26, 51, 0.35);
  transform: rotate(-2deg);
  transition: transform 520ms var(--ease-spring);
}

.envelope-face {
  position: relative;
  height: 100%;
  border-radius: 4px;
  background: #fff;
}

.mini-stamp {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 48px;
  padding: 4px;
  background: radial-gradient(circle, transparent 2px, #fff 2.5px) -4px -4px / 8px 8px;
  filter: drop-shadow(0 2px 3px rgba(20, 26, 51, 0.2));
  transform: rotate(6deg);
}

.mini-stamp span {
  display: block;
  height: 100%;
  background: var(--cobalt);
}

.address {
  position: absolute;
  top: 64px;
  left: 50%;
  width: 130px;
  transform: translateX(-50%);
}

.address span {
  display: block;
  height: 6px;
  margin-top: 10px;
  border-radius: 6px;
  background: #c9ccd6;
}

.address span:first-child {
  width: 70%;
  background: var(--ink);
}

.post-card:hover .letter-sheet,
.post-card:focus-within .letter-sheet {
  transform: translate(-50%, 90px) rotate(0deg);
}

.post-card:hover .envelope,
.post-card:focus-within .envelope {
  transform: rotate(0deg) translateY(-6px);
}

/* housematch art: a street map with a pin and the checks run on that address */

.house-art {
  background: var(--dots), var(--mist);
}

.house-scene {
  position: relative;
  width: min(400px, calc(100% - 64px));
  height: 300px;
}

.map {
  position: absolute;
  top: 0;
  left: 0;
  width: 250px;
  height: 230px;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 58px, #fff 58px 70px, transparent 70px 148px, #fff 148px 160px, transparent 160px),
    linear-gradient(transparent 64px, #fff 64px 76px, transparent 76px 150px, #fff 150px 162px, transparent 162px),
    #e6e9f0;
  box-shadow: 0 26px 50px -20px rgba(20, 26, 51, 0.3);
  transform: rotate(-4deg);
  transition: transform 520ms var(--ease-spring);
}

.map::before {
  position: absolute;
  top: 90px;
  left: 84px;
  width: 50px;
  height: 44px;
  border-radius: 14px;
  background: #d8dce6;
  content: "";
}

.map::after {
  position: absolute;
  top: -20px;
  right: -30px;
  width: 120px;
  height: 70px;
  border-radius: 50%;
  background: var(--tint);
  content: "";
}

.pin {
  position: absolute;
  z-index: 2;
  top: 58px;
  left: 88px;
  width: 44px;
  color: var(--cobalt);
  filter: drop-shadow(0 8px 8px rgba(20, 26, 51, 0.25));
  transition: transform 480ms var(--ease-spring);
}

.check-card {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: 210px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 26px 50px -18px rgba(20, 26, 51, 0.32);
  transform: rotate(3deg);
  transition: transform 520ms var(--ease-spring);
}

.check-title {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 450;
  letter-spacing: -0.04em;
}

.check-title strong {
  font-weight: 800;
}

.check-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
}

.check-card li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 5px 0;
}

.check-card li::before {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  content: "✓";
}

.house-card:hover .map,
.house-card:focus-within .map {
  transform: rotate(0deg);
}

.house-card:hover .pin,
.house-card:focus-within .pin {
  transform: translateY(-14px);
}

.house-card:hover .check-card,
.house-card:focus-within .check-card {
  transform: rotate(0deg) translateY(-8px);
}

.coming-soon {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 12px 20px;
  border: 1.5px dashed rgba(20, 26, 51, 0.28);
  border-radius: 999px;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
}

.coming-soon::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cobalt);
  content: "";
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  50% { opacity: 0.25; }
}

.soon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.soon-link {
  color: var(--cobalt);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(29, 78, 216, 0.25);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.soon-link:hover {
  text-decoration-color: currentColor;
}

/* Credentials: index names as parcel stickers */

.creds {
  margin-top: 22px;
}

.stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sticker {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 16px 10px 22px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(var(--tilt));
  transition: transform 320ms var(--ease-spring), box-shadow 320ms var(--ease-spring);
}

.sticker::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: var(--band);
  content: "";
}

.sticker:hover {
  box-shadow: 5px 6px 0 var(--ink);
  transform: rotate(0deg) translateY(-3px);
}

.sticker strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.sticker span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 500;
}

.k1 { --band: var(--cobalt); --tilt: -2.5deg; }
.k2 { --band: var(--ink); --tilt: 1.5deg; }
.k3 { --band: var(--tint-strong); --tilt: -1deg; }
.k4 { --band: repeating-linear-gradient(135deg, var(--cobalt) 0 6px, var(--tint-strong) 6px 12px); --tilt: 2deg; }

/* housematch research invite */

.research {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  margin: 0 12px 12px;
  padding: 44px;
  border-radius: 26px;
  background: var(--ink);
  color: #fff;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: 88%;
  margin: 0;
  padding: 12px 16px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.bubble.them {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: #fff;
  color: var(--ink);
  transform: rotate(-1.5deg);
}

.bubble.you {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: var(--cobalt);
  color: #fff;
  transform: rotate(1.5deg);
}

.bubble.small {
  font-size: 14px;
}

.research:hover .bubble,
.research:focus-within .bubble {
  animation: wobble 600ms var(--ease-spring);
}

.research:hover .bubble:nth-child(2),
.research:focus-within .bubble:nth-child(2) {
  animation-delay: 80ms;
}

.research:hover .bubble:nth-child(3),
.research:focus-within .bubble:nth-child(3) {
  animation-delay: 160ms;
}

@keyframes wobble {
  40% { translate: 0 -6px; }
}

.research h4 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: var(--title-lg);
  font-weight: 750;
  font-variation-settings: "wdth" 90;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.research-copy > p {
  max-width: 46ch;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--text-md);
  line-height: 1.6;
}

.research-button {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
  transition: transform 240ms var(--ease-spring), box-shadow 240ms var(--ease-spring);
}

.research-button:hover {
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.18);
  transform: translateY(-3px) rotate(-1.5deg);
}

.research-button:focus-visible {
  outline-color: #fff;
}

.research-copy .research-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-xs);
}


/* Clients: a postcard, message on the left, stamp and address on the right */

.clients {
  padding: 0 0 112px;
}

.postcard {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(20, 26, 51, 0.04), 0 34px 60px -38px rgba(20, 26, 51, 0.35);
}

.postcard-message {
  align-self: center;
  padding: 52px 52px 48px;
}

.client-name {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 750;
  font-variation-settings: "wdth" 90;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.client-description {
  max-width: 46ch;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.6;
}

.postcard-address {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 330px;
  margin: 28px 0;
  padding: 0 44px 20px;
  border-left: 1.5px solid var(--line);
}

.pc-stamp {
  position: absolute;
  top: 0;
  right: 36px;
  width: 104px;
  height: 126px;
  padding: 8px;
  background: radial-gradient(circle, transparent 4px, #fff 4.5px) -7px -7px / 14px 14px;
  filter: drop-shadow(0 10px 16px rgba(20, 26, 51, 0.16)) drop-shadow(0 1px 2px rgba(20, 26, 51, 0.1));
  transform: rotate(3deg);
}

.pc-face {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 10px 11px 9px;
  background: #1a2c5b;
  color: #fff;
}

.pc-face::after {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  content: "";
}

.pc-face strong {
  font-family: var(--display);
  font-size: 46px;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  letter-spacing: -0.05em;
  line-height: 0.85;
}

.pc-face span {
  align-self: flex-end;
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.pc-postmark {
  position: absolute;
  top: 58px;
  right: 64px;
  width: 230px;
  color: var(--ink);
  opacity: 0.62;
  mix-blend-mode: multiply;
  transform: rotate(-8deg);
  pointer-events: none;
}

.pc-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pc-lines li {
  padding: 12px 0 5px;
  border-bottom: 1.5px solid var(--line);
}

/* Company and support */

.company {
  padding: 0 0 120px;
}

.company-panel {
  position: relative;
  overflow: hidden;
  padding: 64px 56px 56px;
  border-radius: 36px;
  background: var(--wash);
}

.company-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 10px;
  background: repeating-linear-gradient(135deg, var(--cobalt) 0 16px, transparent 16px 26px, var(--tint-strong) 26px 42px, transparent 42px 52px);
  content: "";
}

.company-panel .section-heading {
  margin-bottom: 40px;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 40px 48px;
}

.info h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: var(--title-md);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.info p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.info p strong {
  color: var(--ink);
  font-weight: 600;
}

.facts {
  margin: 20px 0 0;
  font-size: var(--text-sm);
}

.facts div {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid rgba(20, 26, 51, 0.1);
}

.facts dt {
  color: var(--muted);
  white-space: nowrap;
}

.facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.policy-links {
  margin: 18px 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
}

.policy-links li + li {
  margin-top: 8px;
}

.info .fine {
  font-size: var(--text-xs);
}

/* Footer */

footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.footer-inner p {
  margin: 0;
}

.abn {
  display: block;
}

/* Short laptop screens (1366x768, 1280x720, 1536x864): tighten the rhythm so the whole hero still fits in one screen */
@media (min-width: 901px) and (max-height: 880px) {
  .hero h1 {
    margin-bottom: 20px;
  }

  .intro {
    font-size: 18px;
    line-height: 1.5;
  }

  .creds {
    margin-top: 16px;
  }

  .stickers {
    gap: 10px;
  }

  .sticker {
    padding: 7px 14px 7px 20px;
  }

  .offer-index {
    margin-top: 18px;
  }

  .offer-index a {
    padding: 8px 4px;
  }

  .offer-index span {
    line-height: 1.4;
  }

  .intro-note {
    margin-top: 12px;
  }
}

/* Narrow and short: a smaller sheet hugs the right edge, so the stickers keep to one row */
@media (min-width: 901px) and (max-width: 1180px) and (max-height: 880px) {
  .hero {
    --stamp: 150px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero .syllable {
    font-size: 80px;
  }
}

/* The very shortest laptop screens drop the one line that is only reassurance */
@media (min-width: 901px) and (max-height: 740px) {
  .intro-note {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --stamp: 128px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 96px;
  }

  .sheet {
    grid-row: 1;
    gap: 12px 14px;
  }

  .hero .sheet {
    grid-template-columns: repeat(4, var(--stamp));
  }

  .syllable {
    font-size: 68px;
  }

  .value {
    font-size: 18px;
  }

  .face {
    padding: 10px 12px 8px;
  }

  .face svg {
    width: 72px;
    height: 72px;
    bottom: 22px;
  }

  .slot:nth-child(2),
  .slot:nth-child(4) {
    margin-top: 16px;
  }

  .postmark {
    width: 200px;
  }

  .hero .postmark {
    top: 50%;
    left: 44%;
  }

  h1 {
    max-width: 13ch;
  }
}

@media (max-width: 760px) {
  .shell {
    width: calc(100% - 48px);
  }

  :root {
    --nav-h: 68px;
  }

  .location {
    display: none;
  }

  .nav-links {
    gap: 20px;
  }

  .product-card {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .product-copy {
    padding: 32px 26px 36px;
  }

  .product-name {
    font-size: 46px;
  }

  .product-art {
    min-height: 320px;
    margin: 10px 10px 0;
    border-radius: 20px;
    grid-row: 1;
  }

  .fax-scene {
    width: min(320px, calc(100% - 48px));
  }

  .window-body {
    padding: 30px 24px 26px;
  }

  .post-scene {
    width: min(330px, calc(100% - 40px));
    height: 250px;
  }

  .letter-sheet {
    width: 200px;
    height: 170px;
  }

  .envelope {
    height: 144px;
  }

  .address {
    top: 52px;
  }

  .house-scene {
    width: min(330px, calc(100% - 40px));
    height: 250px;
  }

  .map {
    width: 210px;
    height: 190px;
  }

  .check-card {
    width: 180px;
    padding: 14px 16px;
  }

  .pin {
    top: 44px;
    left: 52px;
  }

  .research {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 0 10px 10px;
    padding: 30px 22px 28px;
    border-radius: 20px;
  }

  .products {
    padding-bottom: 80px;
  }

  .clients {
    padding-bottom: 80px;
  }

  .postcard {
    grid-template-columns: 1fr;
  }

  .postcard-message {
    padding: 30px 24px 34px;
  }

  .postcard-address {
    min-height: 310px;
    margin: 0 24px;
    padding: 24px 0 26px;
    border-bottom: 1.5px solid var(--line);
    border-left: 0;
    grid-row: 1;
  }

  .pc-stamp {
    top: 24px;
    right: 0;
    width: 88px;
    height: 108px;
  }

  .pc-face strong {
    font-size: 38px;
  }

  .pc-postmark {
    top: 52px;
    right: 34px;
    width: 190px;
  }

  .pc-lines {
    max-width: 250px;
    font-size: 16px;
  }

  .company {
    padding-bottom: 72px;
  }

  .company-panel {
    padding: 48px 24px 32px;
    border-radius: 28px;
  }

  .footer-inner {
    display: block;
    padding: 28px 0;
  }

  .footer-inner p + p {
    margin-top: 12px;
  }
}

@media (max-width: 360px) {
  :root {
    --stamp: 112px;
  }

  .syllable {
    font-size: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sheet,
  .slot,
  .slot .stamp,
  .postmark {
    animation: none;
  }

  .slot .face::before {
    display: none;
  }

  .slot {
    transform: rotate(var(--r));
  }

  .postmark {
    opacity: 0.72;
    transform: rotate(-9deg);
  }

  .stamp,
  .button,
  .fax-window,
  .fax-paper,
  .letter-sheet,
  .envelope,
  .map,
  .pin,
  .check-card {
    transition: none;
  }

  .coming-soon::before,
  .research:hover .bubble,
  .research:focus-within .bubble {
    animation: none;
  }

  .sticker,
  .research-button {
    transition: none;
  }
}

/* Multi-page: page headings, current nav item, home lineup, footer links */

main {
  flex: 1;
}

.page {
  padding-top: var(--page-pad);
}

.page-title {
  max-width: none;
  margin: 0;
  font-size: clamp(40px, 5.4vw, 64px);
  text-wrap: balance;
}

.nav-links a[aria-current="page"] {
  color: var(--cobalt);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.lineup {
  padding: 0 0 120px;
}

.lineup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 30px 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  text-decoration: none;
  transition: border-color 160ms ease, transform 240ms var(--ease-spring);
}

.tile a:hover {
  border-color: var(--tint-strong);
  transform: translateY(-3px);
}

.tile-name {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 450;
  letter-spacing: -0.055em;
  line-height: 1;
}

.tile-name strong {
  font-weight: 800;
}

.tile-line {
  flex: 1;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.tile-status {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--cobalt-deep);
  font-size: var(--text-xs);
  font-weight: 700;
}

.tile-status.soon {
  border: 1.5px dashed rgba(20, 26, 51, 0.28);
  background: none;
  color: var(--ink);
}

.lineup-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: var(--text-md);
}

.lineup-note .soon-link {
  margin-left: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--cobalt);
}

@media (max-width: 900px) {
  .lineup-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --page-pad: 28px;
  }

  .lineup {
    padding-bottom: 80px;
  }

  .footer-links {
    margin-top: 12px;
  }
}

@media (max-width: 560px) {
  .offer-index a {
    grid-template-columns: 1fr;
    padding: 13px 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile a,
  .offer-index a {
    transition: none;
  }
}

/* Service pages (/cloud/ and /global/): shared hero, offers, contact form */

.services {
  padding-bottom: 96px;
}

.services-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-content: center;
  align-items: center;
  min-height: calc(100svh - var(--nav-h) - var(--page-pad));
  padding-bottom: clamp(20px, 5svh, 56px);
  margin-bottom: 56px;
}

.services-hero .page-title {
  max-width: 11ch;
  margin-bottom: 26px;
  font-size: clamp(46px, 6.4vw, 84px);
  line-height: 0.94;
}

.services-hero .page-title.wide {
  max-width: 15ch;
}

.hero-badge {
  display: inline-flex;
  margin: 0 0 30px;
}

.services-intro {
  max-width: 46ch;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: var(--text-lead);
  line-height: 1.6;
}

/* Cloud hero: the monthly bill, each wasted line struck through, then stamped */

.bill {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
  padding-bottom: 28px;
}

.bill-paper {
  position: relative;
  padding: 26px 28px 30px;
  background: #fff;
  box-shadow: 0 34px 60px -30px rgba(20, 26, 51, 0.4), 0 2px 4px rgba(20, 26, 51, 0.06);
  transform: rotate(2deg);
}

/* Torn off the roll: a zigzag along the bottom edge */
.bill-paper::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 10px;
  background:
    linear-gradient(-45deg, transparent 7px, #fff 7px) 0 0 / 14px 10px repeat-x,
    linear-gradient(45deg, transparent 7px, #fff 7px) 0 0 / 14px 10px repeat-x;
  content: "";
}

.bill-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 8px;
  padding-bottom: 14px;
  border-bottom: 1.5px dashed rgba(20, 26, 51, 0.22);
}

.bill-head strong {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.bill-head span {
  color: var(--muted);
  font-size: 13px;
}

.bill-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bill-lines li {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px dotted rgba(20, 26, 51, 0.18);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.bill-lines i {
  width: 64px;
  height: 8px;
  flex: none;
  border-radius: 4px;
  background: #d9dce6;
}

/* The pen stroke */
.bill-lines li::after {
  position: absolute;
  top: 50%;
  right: -6px;
  left: -6px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--cobalt);
  content: "";
  transform: rotate(-1.2deg) scaleX(1);
  transform-origin: left center;
}

.bill-total {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}

.bill-total span {
  color: var(--muted);
  font-size: 13.5px;
}

.bill-total strong {
  color: var(--cobalt);
  font-family: var(--display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.bill .bill-stamp {
  position: absolute;
  right: -26px;
  bottom: 150px;
  margin: 0;
  padding: 10px 22px 12px;
}

.bill-stamp span {
  font-size: 14px;
}

.bill-stamp strong {
  font-size: 44px;
}

@keyframes strike {
  from { transform: rotate(-1.2deg) scaleX(0); }
  to { transform: rotate(-1.2deg) scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .bill-lines li::after {
    animation: strike 320ms var(--ease-out) both;
  }

  .bill-lines li:nth-child(1)::after { animation-delay: 500ms; }
  .bill-lines li:nth-child(2)::after { animation-delay: 680ms; }
  .bill-lines li:nth-child(3)::after { animation-delay: 860ms; }
  .bill-lines li:nth-child(4)::after { animation-delay: 1040ms; }
  .bill-lines li:nth-child(5)::after { animation-delay: 1220ms; }

  .bill .bill-stamp {
    animation: press 460ms var(--ease-out) 1600ms both;
    animation-timeline: auto;
  }
}

/* Go global hero: 出海 as a pair of stamps, reusing the home page sheet */

.sheet-pair .postmark {
  top: 80%;
  left: 36%;
}

.sheet-pair .syllable {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

/* Offers: plain checklists, no cards */

.offer-col h3,
.offer-split h3,
.offer-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--title-lg);
  font-weight: 750;
  font-variation-settings: "wdth" 90;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.offer-lede {
  max-width: 46ch;
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.55;
}

/* Cloud: two offers side by side, split by a perforated tear line */
.offer-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink);
}

.offer-col {
  padding: 30px 48px 0 0;
}

.offer-col + .offer-col {
  padding: 30px 0 0 48px;
  border-left: 2px dashed rgba(20, 26, 51, 0.2);
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.checklist li::before {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  grid-row: 1 / span 2;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  content: "✓";
}

.checklist strong {
  font-family: var(--display);
  font-size: var(--title-sm);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.checklist p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

/* Go global: the checklist beside the AI answer that cites you */
.offer-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
  margin-bottom: 88px;
  padding-top: 30px;
  border-top: 1.5px solid var(--ink);
}

.offer-head {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
  gap: 8px 40px;
  align-items: baseline;
  margin-bottom: 24px;
  padding-top: 30px;
  border-top: 1.5px solid var(--ink);
}

.offer-head p {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.55;
}

.answer-scene {
  position: relative;
  justify-self: center;
  width: min(100%, 400px);
  height: 340px;
}

.answer-card,
.result-card {
  position: absolute;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 50px -20px rgba(20, 26, 51, 0.32);
  transition: transform 520ms var(--ease-spring);
}

.answer-card {
  z-index: 2;
  top: 0;
  left: 0;
  width: 290px;
  padding: 20px 22px 22px;
  border: 1px solid rgba(29, 78, 216, 0.14);
  transform: rotate(-3deg);
}

.answer-label {
  margin: 0 0 8px;
  color: var(--cobalt);
  font-size: 12.5px;
  font-weight: 700;
}

.answer-q {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.answer-card i,
.result-card i {
  display: block;
  height: 6px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: #e1e4ee;
}

.answer-card i:nth-of-type(3),
.result-card i:last-of-type {
  width: 65%;
}

.answer-cite {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--cobalt-deep);
  font-size: 12.5px;
  font-weight: 700;
}

.result-card {
  z-index: 1;
  right: 0;
  bottom: 0;
  width: 270px;
  padding: 18px 20px 12px;
  background: var(--dots), var(--mist);
  transform: rotate(3deg);
}

.result-url {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.result-title {
  display: block;
  margin: 2px 0 12px;
  color: var(--cobalt-deep);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.offer-split:hover .answer-card {
  transform: rotate(0deg) translateY(-8px);
}

.offer-split:hover .result-card {
  transform: rotate(0deg) translateY(6px);
}

.ledger {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px 32px;
  padding: 18px 28px;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.ledger-row + .ledger-row {
  border-top: 1px solid var(--line);
}

.ledger-row span:first-child {
  color: var(--muted);
}

.ledger-row span:last-child {
  font-weight: 600;
}

.ledger-row:not(.ledger-head) span:last-child::before {
  color: var(--cobalt);
  content: "→ ";
}

.ledger-row em {
  display: block;
  font-size: var(--text-xs);
  font-style: normal;
}

.ledger-head {
  background: var(--wash);
  font-family: var(--display);
  font-size: var(--text-md);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.ledger-head span:first-child {
  color: var(--ink);
}

.ledger-head span:last-child {
  font-weight: inherit;
}

/* Cloud: pro bono band, with a 0¢ stamp */

.pro-bono {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin: 88px 0 28px;
  padding: 52px 60px;
  border-radius: 36px;
  background: var(--cobalt);
  color: #fff;
}

.pro-bono-stamp {
  transform: rotate(-5deg);
}

.pro-bono-stamp:hover {
  transform: rotate(-2deg) translateY(-6px) scale(1.03);
}

.pro-bono h2 {
  margin-bottom: 14px;
}

.pro-bono p {
  max-width: 58ch;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-md);
  line-height: 1.6;
}

/* Go global: the Chinese summary, sealed with a red chop */

.zh-block {
  position: relative;
  margin: 88px 0 28px;
  padding: 52px 60px;
  border-radius: 36px;
  background: var(--ink);
  color: #fff;
}

.zh-block h2 {
  margin-bottom: 16px;
}

.zh-block p {
  max-width: 34em;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--text-md);
  line-height: 1.9;
}

.seal {
  position: absolute;
  top: 40px;
  right: 48px;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  background: #c8372d;
  box-shadow: inset 0 0 0 4px #c8372d, inset 0 0 0 6.5px rgba(255, 255, 255, 0.9);
  color: #fff;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(5deg);
  -webkit-mask-image: var(--ink-noise);
  mask-image: var(--ink-noise);
  --ink-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='0.75' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.4 2.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.field .zh {
  margin-left: 4px;
  color: var(--muted);
  font-weight: 500;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
}

.contact-copy h2 {
  margin-bottom: 16px;
}

.contact-copy p {
  max-width: 34ch;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.6;
}

.contact-copy .fine {
  font-size: var(--text-xs);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: var(--text-sm);
  font-weight: 600;
}

.field em {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid rgba(20, 26, 51, 0.16);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.4 var(--body);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field select {
  appearance: none;
  padding-right: 40px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23141a33' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9297ab;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cobalt);
  outline: none;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.14);
}

.field [aria-invalid="true"] {
  border-color: #c2412d;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 1px 0 0;
  accent-color: var(--cobalt);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-top: 4px;
}

.contact-form .button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.contact-form .button:disabled {
  background: var(--muted);
  cursor: wait;
  transform: none;
}

.contact-form .button:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.35);
  outline-offset: 3px;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.form-status.ok {
  color: var(--cobalt-deep);
}

.form-status.error {
  color: #b3321e;
}

/* Homepage footer: a short hello form above the legal line */

.footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--nav-h);
}

.footer-contact .field textarea {
  min-height: 120px;
}

.services-fine {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
}

/* Home: a short pitch for the service pages */

/* Home: housematch interview call-out under the product tiles */
.volunteer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px 32px;
  align-items: center;
  margin-top: 20px;
  padding: 24px 30px 24px 26px;
  border: 1.5px dashed rgba(20, 26, 51, 0.28);
  border-radius: 28px;
  background: var(--dots), var(--mist);
}

.volunteer-sticker {
  margin: 0;
  --tilt: -4deg;
}

.volunteer-copy h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: var(--title-md);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.volunteer-copy p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* An airmail envelope: the two services are its stamps, the pitch its address */
.home-services {
  margin-top: 72px;
  padding: 12px;
  border-radius: 22px;
  background: repeating-linear-gradient(135deg, var(--cobalt) 0 16px, #fff 16px 26px, var(--tint-strong) 26px 42px, #fff 42px 52px);
  box-shadow: 0 44px 70px -44px rgba(20, 26, 51, 0.5), 0 2px 4px rgba(20, 26, 51, 0.06);
}

.envelope-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 56px;
  padding: 48px 52px 44px;
  border-radius: 12px;
  background: #fff;
}

.envelope-address {
  grid-row: 1 / span 2;
  align-self: end;
}

.envelope-address h2 {
  margin-bottom: 20px;
}

.address-lines {
  max-width: 62ch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.address-lines a {
  display: block;
  padding: 16px 0 14px;
  border-bottom: 1.5px solid var(--line);
  text-decoration: none;
}

.address-lines strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: var(--title-md);
  font-weight: 750;
  letter-spacing: -0.025em;
  text-decoration: underline;
  text-decoration-color: rgba(29, 78, 216, 0.25);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.address-lines strong span {
  margin-left: 4px;
  color: var(--cobalt);
}

.address-lines a > span {
  display: block;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.address-lines a:hover strong {
  color: var(--cobalt);
  text-decoration-color: currentColor;
}

.envelope-stamps {
  --stamp: 150px;
  position: relative;
  display: flex;
  gap: 16px;
  align-self: start;
  padding: 4px 8px 40px 0;
}

.envelope-stamps .stamp {
  display: block;
  text-decoration: none;
}

.envelope-stamps .stamp:first-child {
  transform: rotate(-4deg);
}

.envelope-stamps .stamp:nth-child(2) {
  margin-top: 18px;
  transform: rotate(3deg);
}

.envelope-stamps .stamp:hover {
  transform: translateY(-8px) rotate(-1deg) scale(1.04);
}

.envelope-stamps .stamp:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.45);
  outline-offset: 4px;
  border-radius: 0;
}

.envelope-stamps .syllable {
  font-size: 36px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.envelope-stamps .syllable[lang] {
  font-weight: 700;
  letter-spacing: 0;
}

.envelope-stamps .face svg {
  right: -12px;
  bottom: 26px;
  width: 76px;
  height: 76px;
}

.envelope-stamps .value {
  font-size: 18px;
}

.probono-stamp {
  justify-self: center;
  align-self: end;
  margin: 0 0 8px;
  padding: 12px 22px 13px;
  text-decoration: none;
}

.probono-stamp strong {
  font-size: 30px;
}

.probono-stamp:hover {
  color: var(--cobalt-deep);
}

.probono-stamp:focus-visible {
  outline-offset: 6px;
}

.envelope-postmark {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: -20px;
  width: 280px;
  color: var(--ink);
  opacity: 0.7;
  mix-blend-mode: multiply;
  pointer-events: none;
  transform: rotate(-8deg);
}

@media (max-width: 900px) {
  .services-hero,
  .contact-grid,
  .offer-split {
    grid-template-columns: 1fr;
  }

  .services-hero {
    gap: 28px;
    margin-bottom: 56px;
  }

  .bill {
    justify-self: start;
    margin-left: 8px;
  }

  .offer-split {
    gap: 40px;
  }

  .answer-scene {
    justify-self: start;
  }

  .contact-grid {
    gap: 28px;
  }

  .footer-contact {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 56px 0 48px;
  }

  .contact-copy p {
    max-width: 52ch;
  }
}

@media (max-width: 760px) {
  .services {
    padding-bottom: 72px;
  }

  .offer-pair {
    grid-template-columns: 1fr;
  }

  .offer-col,
  .offer-col + .offer-col {
    padding: 28px 0 0;
    border-left: 0;
  }

  .offer-col + .offer-col {
    margin-top: 36px;
    border-top: 2px dashed rgba(20, 26, 51, 0.2);
  }

  .pro-bono {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 72px;
    padding: 36px 24px 32px;
    border-radius: 28px;
  }

  .zh-block {
    margin-top: 72px;
    padding: 36px 24px 32px;
    border-radius: 28px;
  }

  .zh-block h2 {
    padding-right: 76px;
  }

  .seal {
    top: 28px;
    right: 22px;
    width: 64px;
    height: 64px;
    font-size: 23px;
  }

  .volunteer {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 24px 22px;
  }

  .home-services {
    padding: 9px;
  }

  .envelope-card {
    grid-template-columns: 1fr;
    padding: 28px 22px 26px;
  }

  .envelope-address {
    grid-row: auto;
  }

  .probono-stamp {
    justify-self: start;
    margin: 4px 0 6px 4px;
  }

  .probono-stamp strong {
    font-size: 26px;
  }

  .envelope-stamps {
    --stamp: 116px;
    grid-row: 1;
    justify-self: end;
    padding-bottom: 28px;
  }

  .envelope-stamps .syllable {
    font-size: 27px;
  }

  .envelope-stamps .face svg {
    width: 58px;
    height: 58px;
  }

  .envelope-stamps .value {
    font-size: 15px;
  }

  .envelope-postmark {
    left: -24px;
    width: 210px;
  }
}

@media (max-width: 560px) {
  .field-row,
  .offer-head,
  .ledger-row {
    grid-template-columns: 1fr;
  }

  .ledger-row {
    gap: 4px;
    padding: 16px 20px;
  }

  .ledger-head {
    display: none;
  }

  .answer-scene {
    height: 370px;
  }

  .answer-card {
    width: 250px;
  }

  .result-card {
    width: 230px;
  }

  .bill .bill-stamp {
    right: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .field input,
  .field select,
  .field textarea,
  .answer-card,
  .result-card,
  .pro-bono-stamp {
    transition: none;
  }
}

@media (max-width: 380px) {
  .envelope-stamps {
    --stamp: 96px;
    gap: 12px;
  }

  .envelope-stamps .syllable {
    font-size: 22px;
  }

  .envelope-stamps .value {
    font-size: 13px;
  }
}

/* Phones and touch: no sideways scroll, thumb-sized targets, hero headline above the fold */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(29, 78, 216, 0.12);
}

/* Stamps press in from 1.7x and postmarks hang off the sheet; never let either widen the page */
main {
  overflow-x: clip;
}

@media (max-width: 560px) {
  /* Home hero: the four stamps in one row spell the name and leave room for the headline */
  .hero {
    gap: 28px;
    padding-top: 20px;
  }

  /* Credential stickers: an even two by two, the columns tilted as mirror images */
  .stickers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stickers .sticker:nth-child(odd) {
    --tilt: -1.5deg;
  }

  .stickers .sticker:nth-child(even) {
    --tilt: 1.5deg;
  }

  .sheet:not(.sheet-pair) {
    --stamp: min(96px, calc((100vw - 92px) / 4));
    grid-template-columns: repeat(4, var(--stamp));
    gap: 10px;
    padding: 6px 4px 14px;
  }

  .sheet:not(.sheet-pair) .stamp {
    height: calc(var(--stamp) * 1.24);
    padding: 6px;
    background: radial-gradient(circle, transparent 3px, #fff 3.5px) -5px -5px / 10px 10px;
    filter: drop-shadow(0 8px 12px rgba(20, 26, 51, 0.14)) drop-shadow(0 1px 2px rgba(20, 26, 51, 0.08));
  }

  .sheet:not(.sheet-pair) .face {
    padding: 7px 7px 5px;
  }

  .sheet:not(.sheet-pair) .face::after {
    inset: 3px;
    border-width: 1px;
  }

  .sheet:not(.sheet-pair) .syllable {
    font-size: calc(var(--stamp) * 0.5);
  }

  .sheet:not(.sheet-pair) .value {
    font-size: 12px;
  }

  .sheet:not(.sheet-pair) .face svg {
    right: -10px;
    bottom: 14px;
    width: calc(var(--stamp) * 0.55);
    height: calc(var(--stamp) * 0.55);
  }

  .sheet:not(.sheet-pair) .slot:nth-child(2),
  .sheet:not(.sheet-pair) .slot:nth-child(4) {
    margin-top: 10px;
  }

  .sheet:not(.sheet-pair) .postmark {
    top: 52%;
    left: 44%;
    width: 150px;
  }

  /* Go global hero: a smaller pair, so the headline starts higher */
  .sheet-pair {
    --stamp: 112px;
  }

  .sheet-pair .syllable {
    font-size: 58px;
  }

  .sheet-pair .postmark {
    width: 170px;
  }

  /* Small text links get a taller hit area without moving the layout */
  .soon-link,
  .product-links a,
  .policy-links a,
  .facts a {
    display: inline-block;
    margin: -10px 0;
    padding: 10px 0;
  }

  .footer-links {
    gap: 0 24px;
  }

  .footer-links a {
    display: inline-block;
    padding: 10px 0;
  }

  .contact-form .button {
    justify-content: center;
    width: 100%;
  }
}

/* Touch screens have no hover, so give a press instead */
@media (hover: none) {
  .tile a:active,
  .address-lines a:active,
  .offer-index a:active {
    background: var(--tint);
  }

  .button:active,
  .research-button:active {
    transform: scale(0.97);
  }
}

/* Full-screen sections: each block of a page fills at least one viewport, its content centred.
   Taller content simply grows, so nothing is ever clipped on a small phone. */

.screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: clamp(48px, 8svh, 96px) 0;
}

.screen > :first-child {
  margin-top: 0;
}

.screen > :last-child {
  margin-bottom: 0;
}

/* The first screen of a page shares the viewport with the header */
.page > .screen:first-child {
  min-height: calc(100svh - var(--nav-h) - var(--page-pad));
  padding-top: 0;
}

/* The screens set the rhythm now, so the old gaps between and after blocks go */
.products,
.services,
.company,
.lineup {
  padding-bottom: 0;
}

.services-hero {
  margin-bottom: 0;
}

/* Mobile menu: a hamburger that opens the nav as a sheet filling the screen below the header.
   nav.js unhides the toggle; without it the links wrap under the wordmark instead. */

.nav-toggle {
  display: none;
}

@media (max-width: 760px) {
  header {
    position: relative;
    z-index: 20;
    background: var(--paper);
  }

  .nav {
    flex-wrap: wrap;
    column-gap: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 4px 18px;
  }

  .nav-toggle:not([hidden]) {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-right: -12px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--ink);
    cursor: pointer;
  }

  .nav-toggle:focus-visible {
    outline: 3px solid rgba(29, 78, 216, 0.35);
    outline-offset: -3px;
  }

  /* Three bars that fold into a cross */
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 360ms var(--ease-out), background-color 160ms;
  }

  .nav-toggle-bars {
    position: relative;
  }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .nav-toggle-bars::before {
    top: -7px;
  }

  .nav-toggle-bars::after {
    top: 7px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background-color: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* The sheet */
  .nav-toggle[aria-expanded] + .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    height: calc(100svh - var(--nav-h));
    padding: 8px 24px calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--line);
    background: var(--dots), var(--paper);
    transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-out), visibility 0s;
  }

  .nav-toggle[aria-expanded="false"] + .nav-links {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s 200ms;
  }

  .nav-toggle[aria-expanded] + .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 32px;
    font-weight: 750;
    font-variation-settings: "wdth" 90;
    letter-spacing: -0.03em;
    line-height: 1.1;
    transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out);
  }

  .nav-toggle[aria-expanded] + .nav-links a span {
    color: var(--muted);
    font-family: var(--body);
    font-size: 22px;
    font-weight: 500;
  }

  .nav-toggle[aria-expanded] + .nav-links a[aria-current="page"] {
    color: var(--cobalt);
    text-decoration: none;
  }

  .nav-toggle[aria-expanded] + .nav-links a[aria-current="page"]::after {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    content: "";
  }

  /* Links deal in one by one as the sheet opens */
  .nav-toggle[aria-expanded="false"] + .nav-links a {
    opacity: 0;
    transform: translateY(12px);
  }

  .nav-toggle[aria-expanded="true"] + .nav-links a:nth-child(2) { transition-delay: 40ms; }
  .nav-toggle[aria-expanded="true"] + .nav-links a:nth-child(3) { transition-delay: 80ms; }
  .nav-toggle[aria-expanded="true"] + .nav-links a:nth-child(4) { transition-delay: 120ms; }
  .nav-toggle[aria-expanded="true"] + .nav-links a:nth-child(5) { transition-delay: 160ms; }

  .nav-toggle[aria-expanded] + .nav-links .location {
    display: block;
    margin-top: auto;
    padding-top: 28px;
    font-size: 15px;
  }

  html.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after,
  .nav-toggle[aria-expanded] + .nav-links,
  .nav-toggle[aria-expanded] + .nav-links a {
    transition: none;
  }

  .nav-toggle[aria-expanded="false"] + .nav-links,
  .nav-toggle[aria-expanded="false"] + .nav-links a {
    transform: none;
  }
}
