/* The Napkin CMO — site styles
   Palette comes from the original 2016 site (style_dynamic.css): yellow #ffcc00, ink #191d20, rule #e2e2e2.
   Table grey #bdbdbd matches the background of the napkin photographs so they sit flush. */
:root {
  --yellow: #ffcc00;
  --ink: #191d20;
  --paper: #ffffff;
  --table: #bdbdbd;
  --table-dark: #a8a8a6;
  --pencil: #5e6266;
  --rule: #e2e2e2;

  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Public Sans", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--yellow); padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-block;
  font: 600 15px/1 var(--display);
  font-stretch: 75%;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 20px 13px;
  border: 2px solid var(--ink);
  transition: background-color .15s, color .15s;
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--paper); color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--big { font-size: 18px; padding: 18px 26px 17px; }

/* Header */
.top { border-bottom: 1px solid var(--rule); background: var(--paper); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { width: 220px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  font: 500 14px/1 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--yellow); text-underline-offset: 6px; }

/* Hero — the highlighter is the signature: each line gets its own marker swipe.
   Words and drawing share one stage and overlap, like the original 2016 hero,
   so the headline reads as something Moe is saying, not a caption beside a picture. */
.hero { overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-areas: "stage";
  align-items: center;
  min-height: clamp(560px, 46vw, 700px);
  padding-top: clamp(24px, 4vw, 48px);
}
.hero__copy, .hero__art { grid-area: stage; }
.hero__copy { position: relative; z-index: 1; align-self: end; padding-bottom: clamp(40px, 5vw, 64px); }
/* the sketch sits flush on the yellow band below, so the band looks like it cuts him off */
.hero__art { margin: 0; justify-self: end; align-self: end; width: min(75%, 920px); }
.hero__art img { width: 100%; }

.marker {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 75%;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.marker .hl { display: table; margin-bottom: .12em; white-space: nowrap; }

/* The yellow sits ON TOP of the words and multiplies, like a real highlighter:
   black ink stays black, white paper turns yellow, and the drawing's lines show through. */
.hl { position: relative; padding: 0 .14em; }
.hl::before {
  content: "";
  position: absolute;
  mix-blend-mode: multiply;
  pointer-events: none;
  left: 0; right: 0; top: .1em; bottom: .02em;
  background: var(--yellow);
  /* ragged marker ends: a felt tip never starts or stops square */
  clip-path: polygon(0.8% 9%, 18% 2%, 52% 5%, 84% 0%, 99.2% 6%, 100% 48%, 98.6% 95%, 70% 100%, 34% 96%, 6% 100%, 0% 62%);
  transform: rotate(-.6deg);
  transform-origin: left center;
}
.marker .hl:nth-child(2n)::before { transform: rotate(.4deg); clip-path: polygon(0% 4%, 30% 0%, 66% 6%, 97% 1%, 100% 40%, 99% 97%, 62% 100%, 22% 95%, 1.4% 100%, 0.4% 50%); }

@media (prefers-reduced-motion: no-preference) {
  .marker .hl::before { animation: swipe .55s cubic-bezier(.3,.7,.2,1) both; }
  .marker .hl:nth-child(1)::before { animation-delay: .10s; }
  .marker .hl:nth-child(2)::before { animation-delay: .22s; }
  .marker .hl:nth-child(3)::before { animation-delay: .34s; }
  .marker .hl:nth-child(4)::before { animation-delay: .46s; }
  .marker .hl:nth-child(5)::before { animation-delay: .58s; }
  @keyframes swipe { from { scale: 0 1; } to { scale: 1 1; } }
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Yellow band */
.band { background: var(--yellow); padding: clamp(40px, 6vw, 72px) 0; }
.band__kicker { margin: 0 0 10px; font-size: 15px; }
.band__title {
  margin: 0;
  max-width: 22ch;
  font: 700 clamp(30px, 4.4vw, 54px)/1.08 var(--display);
  font-stretch: 75%;
}

/* The table of napkins: grey matches the photographs exactly so the edges disappear */
/* grey runs edge to edge like the yellow band, but the napkins line up with the same column as every other section */
.table { background: var(--table-dark); padding: clamp(12px, 2vw, 24px) var(--gutter); }
.napkins {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  gap: clamp(6px, 1vw, 12px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.napkin {
  display: block; width: 100%;
  padding: 0; border: 0; background: none; cursor: zoom-in;
}
.napkin img { transition: transform .2s ease; }
.napkin:hover img, .napkin:focus-visible img { transform: scale(1.04); }
.napkin:focus-visible { outline-offset: -6px; }

/* Services */
.services { padding: clamp(56px, 8vw, 104px) 0; }
.services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.service__title {
  margin: 0 0 14px;
  font: 700 clamp(28px, 3.2vw, 40px)/1.1 var(--display);
  font-stretch: 75%;
  text-transform: uppercase;
}
.service p { margin: 0 0 18px; color: var(--pencil); max-width: 46ch; }
.link {
  font: 600 14px/1 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--yellow);
  text-underline-offset: 6px;
}
.link:hover { text-decoration-color: var(--ink); }

/* Clients */
.clients { border-top: 1px solid var(--rule); padding: clamp(48px, 7vw, 88px) 0; }
.clients__title {
  margin: 0 0 32px;
  font: 600 14px/1 var(--display);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pencil);
}
.logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 32px 40px;
}
.logos li { display: flex; align-items: center; justify-content: center; height: 100px; flex: 0 0 210px; }
.logos img {
  height: var(--h, 44px); width: auto; max-width: 100%; object-fit: contain;
  filter: grayscale(1) brightness(.55) contrast(1.4); opacity: .8;
  transition: filter .2s, opacity .2s;
}
.logos li:hover img { filter: none; opacity: 1; }
.logo-text {
  font: 700 28px/1.05 var(--display); font-stretch: 75%; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .02em; text-align: center;
  color: var(--ink); opacity: .72;
}

/* Call to action */
.cta { background: var(--yellow); padding: clamp(48px, 7vw, 88px) 0; }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta__title {
  margin: 0;
  font: 700 clamp(40px, 6vw, 72px)/1 var(--display);
  font-stretch: 75%;
  text-transform: uppercase;
}
.cta__sub { margin: 8px 0 0; font-size: 19px; }
.cta__actions { display: grid; gap: 14px; justify-items: start; }
.cta__contact { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 500; }
.cta__contact a { text-decoration: none; border-bottom: 2px solid var(--ink); }

/* Footer */
.foot { padding: 32px 0 40px; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot__logo { width: 170px; }
.foot__nav { display: flex; gap: 24px; font-size: 15px; }
.foot__nav a { text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; }
.foot__legal { margin: 0; font-size: 14px; color: var(--pencil); }

/* The written-out text of each napkin: read by search engines, AI tools and screen readers;
   visually hidden so the napkins look exactly as before (the napkin itself already shows these words) */
.napkin__words { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Napkin viewer */
.viewer {
  border: 0; padding: 0; background: transparent;
  max-width: min(1100px, 94vw); width: 100%;
}
.viewer::backdrop { background: rgba(25, 29, 32, .86); }
.viewer__bar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.viewer__btn {
  font: 600 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  background: var(--yellow); color: var(--ink); border: 0; padding: 12px 16px; cursor: pointer;
}
.viewer__img { width: 100%; }



/* ---------- Inner pages ---------- */
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--yellow); text-underline-offset: 6px; }

.page-head { padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.marker--page { font-size: clamp(48px, 8vw, 104px); }
.marker--page .hl { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .marker--page .hl::before { animation-delay: .1s; }
}
.jump { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px; }
.jump a {
  font: 600 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--yellow); text-underline-offset: 6px;
}

/* A service offer: lede, then Who / What / How, then the list, then the close */
.offer { padding: clamp(56px, 8vw, 104px) 0; scroll-margin-top: 16px; }
.offer--alt { background: #f4f4f2; }
.offer__title {
  margin: 0 0 16px;
  font: 700 clamp(36px, 5vw, 64px)/1.02 var(--display); font-stretch: 75%;
  text-transform: uppercase;
}
.offer__lede { margin: 0 0 clamp(40px, 5vw, 56px); max-width: 40ch; font-size: clamp(19px, 2vw, 23px); line-height: 1.45; }
.www { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-bottom: clamp(40px, 6vw, 64px); }
.www__item { border-top: 4px solid var(--ink); padding-top: 16px; }
.www__label { margin: 0 0 10px; font: 700 26px/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.www__item p { margin: 0; color: var(--pencil); }
.offer__listhead { margin: 0 0 18px; font: 600 18px/1.3 var(--body); }
.ticks {
  list-style: none; margin: 0 0 clamp(40px, 6vw, 56px); padding: 0;
  columns: 3 220px; column-gap: 40px;
}
.ticks li { break-inside: avoid; padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid var(--rule); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 8px;
  border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: translateY(-70%) rotate(-45deg);
}
.offer__close { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.offer__close p { margin: 0; max-width: 46ch; font: 700 clamp(22px, 2.6vw, 30px)/1.2 var(--display); font-stretch: 75%; }

/* About */
.about-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.about-head__lede { margin: 28px 0 0; max-width: 34ch; font: 500 clamp(21px, 2.3vw, 28px)/1.4 var(--body); }
.about-head__art { margin: 0; }
.about-head__art img { width: 100%; max-width: 440px; margin-left: auto; }
.about-head__name { margin-top: 10px; text-align: right; font: 600 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--pencil); }
.stat { background: var(--ink); color: var(--paper); padding: clamp(40px, 6vw, 72px) 0; }
.stat__inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.stat__q { margin: 0; font: 700 clamp(28px, 3.6vw, 48px)/1.05 var(--display); font-stretch: 75%; text-transform: uppercase; }
.stat__a { margin: 0; font: 700 clamp(96px, 14vw, 180px)/.9 var(--display); font-stretch: 75%; color: var(--ink); }
/* on the dark band, multiply would turn the yellow black, so here the yellow sits behind the number */
.stat__a .hl { padding: 0 .08em; z-index: 0; }
.stat__a .hl::before { mix-blend-mode: normal; z-index: -1; }
.pledge { background: var(--yellow); padding: clamp(48px, 7vw, 88px) 0; }
.pledge__title { margin: 0 0 20px; font: 700 clamp(36px, 5vw, 60px)/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.pledge__list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 4px; }
.pledge__list li { font: 500 clamp(19px, 2vw, 24px)/1.45 var(--body); padding-left: 1.2em; position: relative; }
.pledge__list li::before { content: "–"; position: absolute; left: 0; }

/* Contact */
.contact-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px 56px; align-items: end; }
.contact-head .marker--page { font-size: clamp(44px, 6.2vw, 88px); }
.contact-head__sub { margin: 20px 0 0; font-size: clamp(19px, 2vw, 23px); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; border-top: 1px solid var(--rule); padding-top: 12px; }
.contact-list__label { font: 600 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--pencil); }
.contact-list a { font-size: 19px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.booking { padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
/* no frame of our own: Calendly draws its own card, and two frames looked boxed-in */
.booking__frame { min-width: 280px; height: 720px; }
.booking__fallback { margin: 14px 0 0; font-size: 15px; color: var(--pencil); }

@media (max-width: 860px) {
  .www { grid-template-columns: 1fr; }
  .about-head, .contact-head { grid-template-columns: 1fr; }
  .about-head__art img { max-width: 300px; margin: 0; }
  .about-head__name { text-align: left; }
  .booking__frame { height: 900px; }
}

/* Tablet */
@media (max-width: 980px) {
  .napkins { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav { gap: 18px; }
}

/* Phone */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .top__inner { flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .brand img { width: 180px; }
  .nav { width: 100%; justify-content: space-between; gap: 12px; }
  .nav a:not(.btn) { font-size: 12px; letter-spacing: .08em; }
  .nav .btn { padding: 10px 10px 9px; font-size: 12px; white-space: nowrap; }
  /* phone: words first, then the sketch rising up beside the buttons and resting on the band */
  .hero__inner { display: flex; flex-direction: column; min-height: 0; padding-top: 28px; }
  .hero__copy { padding-bottom: 0; align-self: stretch; }
  .hero__art { width: 100%; align-self: center; margin: 16px 0 0; }
  .marker { font-size: clamp(34px, 10vw, 48px); }
  .napkins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services__grid { grid-template-columns: 1fr; }
  .logos { gap: 28px 20px; }
  .logos li { flex-basis: calc(50% - 10px); }
  .logos img { height: calc(var(--h, 44px) * .72); }
  .logos li { height: 76px; }
}
