/* ==========================================================================
   Sleepless Nights — the journal article (/sleepless-nights/)

   Rebuilt 27 Nov 2026 from the client's design PDF, "Sleepless Nights – TOFU
   Landing Page (1)". The copy in the HTML is that document's, word for word,
   and the palette and type are the ones its SEO brief names:

     wine #3D1635 · deep #2D1026 · blush #FFF9F9 · mist #F4EFF1 · mauve #78566D
     gold #B3854F → #DFB350 → #F0D488, gold text #8A5F30 for contrast
     Plus Jakarta Sans + Poppins

   This is an article, not a sales page: a column of text with a sidebar, and
   a call to action after each section rather than a wall of them. It is
   `index, follow` and carries BlogPosting, FAQPage and BreadcrumbList — so
   every answer must be in the HTML, which is why the FAQ is <details> and
   nothing is injected by script.

   Two traps this page has fallen into before, and must not again:

     - the rupee sign is set in the body font. A display face without the
       glyph substitutes one that lands on top of the figure beside it;
     - anything that needs a colour is an inline SVG. Emoji ignore `color`.
   ========================================================================== */

:root {
  --wine: #3d1635;
  --deep: #2d1026;
  --blush: #fff9f9;
  --mist: #f4eff1;
  --mauve: #78566d;
  --white: #ffffff;

  --gold-1: #b3854f;
  --gold-2: #dfb350;
  --gold-3: #f0d488;
  --gold-text: #8a5f30;

  --text: #2b1726;
  --line: rgba(61, 22, 53, .12);
  --line-gold: rgba(179, 133, 79, .4);
  --on-dark: rgba(255, 255, 255, .8);

  --display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shell: 1120px;
  --col: 700px;        /* the reading column */
  --radius: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--blush);
  line-height: 1.7;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 84px;   /* room for the bar along the bottom */
}

img { max-width: 100%; display: block; }
a { color: var(--wine); }

h1, h2, h3, h4 { font-family: var(--display); color: var(--wine); line-height: 1.22; letter-spacing: -.015em; }
h1 { font-size: clamp(1.85rem, 4.4vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.9vw, 1.72rem); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 1.02rem; font-weight: 700; }

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

strong { color: var(--wine); font-weight: 600; }
em { font-style: italic; }

.shell { width: min(100% - 40px, var(--shell)); margin-inline: auto; }

/* ---- the header, which stays ------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 249, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.brand b { display: block; font-family: var(--display); font-weight: 800; font-size: .98rem; color: var(--wine); line-height: 1.2; }
.brand .brand-tag { display: block; font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }

/* ---- buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--wine); color: #fff; text-decoration: none;
  font-family: var(--display); font-size: .88rem; font-weight: 700;
  padding: 12px 22px; border: 0; border-radius: 9px; cursor: pointer;
  transition: background .18s ease, transform .18s ease;
  text-align: center; white-space: nowrap;
}
.btn:hover { background: var(--deep); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.btn svg { flex-shrink: 0; }

.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); color: var(--deep); }
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: var(--deep); }

.btn-lg { font-size: 1rem; padding: 15px 28px; }

/* The rupee sign set in the body font on purpose: a display face without the
   glyph substitutes one that lands on top of the figure beside it. */
.rupee { font-family: var(--body); }

/* ---- hero -------------------------------------------------------------- */

.hero { padding: 26px 0 34px; }

.crumbs { font-size: .76rem; color: var(--mauve); margin-bottom: 18px; }
.crumbs a { color: var(--mauve); }
.crumbs span { margin: 0 6px; opacity: .6; }

.eyebrow {
  display: inline-block;
  font-family: var(--display); font-size: .68rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--gold-text);
  border: 1px solid var(--line-gold); border-radius: 30px; padding: 5px 13px;
  margin-bottom: 18px;
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 36px; align-items: center; }
.hero h1 { margin-bottom: 16px; }
.hero .dek { font-size: 1.02rem; color: var(--mauve); margin-bottom: 24px; max-width: 54ch; }

.byline { display: flex; align-items: center; gap: 11px; margin-top: 24px; }
.byline img, .byline .frame {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--mist); border: 1px solid var(--line-gold);
}
.byline b { display: block; font-family: var(--display); font-size: .86rem; color: var(--wine); }
.byline span { display: block; font-size: .76rem; color: var(--mauve); }

/* the video: the browser's own player, with nothing fetched until play */
.video-wrap { position: static; }
.video {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  /* `height: auto` is load-bearing: the element carries width and height
     attributes so the space is reserved before the poster loads, and with a
     used height set, `aspect-ratio` is ignored and the box renders 540 tall. */
  height: auto;
  border-radius: var(--radius-lg); background: var(--deep);
  object-fit: cover;
}
.video-cap { font-size: .76rem; color: var(--mauve); margin-top: 9px; }

/* ---- the two-column body ------------------------------------------------ */

.body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 38px; align-items: start; padding-bottom: 50px; }
.body-grid > * { min-width: 0; }

.article { max-width: var(--col); min-width: 0; }
.article > section { margin-bottom: 38px; scroll-margin-top: 86px; }

/* key takeaways */
.takeaways { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; }
.takeaways h2 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 13px; }
.takeaways ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.takeaways ul li { position: relative; padding-left: 17px; font-size: .92rem; line-height: 1.6; }
/* The table of contents is an <ol> inside this same box, and a dot in front
   of its numbers is one bullet too many. */
.takeaways ul > li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-1); }

/* table of contents */
.toc { border-top: 1px solid var(--line-gold); margin-top: 26px; padding-top: 18px; }
.toc h2 { font-size: .92rem; font-weight: 700; margin-bottom: 12px; }
.toc ol { columns: 2; column-gap: 26px; padding-left: 18px; font-size: .86rem; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--wine); }

/* the pulled-out answer at the top of a section */
.snippet {
  background: var(--white); border: 1px solid var(--line-gold); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 18px; font-size: .97rem;
}

/* a note, quieter than the page */
.note { background: var(--mist); border-radius: var(--radius); padding: 14px 16px; font-size: .86rem; color: var(--mauve); }

/* ---- the call to action between sections -------------------------------- */

.cta-strip {
  background: var(--mist); border-radius: var(--radius);
  padding: 14px 16px; margin: 22px 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.cta-strip p { margin: 0; font-size: .9rem; font-weight: 500; color: var(--text); }

/* ---- grids --------------------------------------------------------------- */

.roots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.root-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.root-card .n { font-family: var(--display); font-size: .74rem; font-weight: 800; color: var(--gold-text); letter-spacing: .08em; display: block; margin-bottom: 7px; }
.root-card h3 { margin-bottom: 7px; }
.root-card p { font-size: .85rem; color: var(--mauve); line-height: 1.55; margin: 0; }

/* the numbered unfolding */
.unfold { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.unfold li { display: flex; gap: 13px; align-items: flex-start; font-size: .93rem; line-height: 1.6; }
.unfold .n {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 7px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: .82rem;
  background: var(--white) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90' fill='none' stroke='%23b3854f' stroke-width='4' stroke-opacity='.30'%3E%3Cpath d='M60 78C60 78 44 66 44 50c0-11 7-20 16-27 9 7 16 16 16 27 0 16-16 28-16 28z'/%3E%3Cpath d='M60 78C60 78 38 74 28 61c-7-9-7-20-4-30 11 2 22 8 28 17'/%3E%3Cpath d='M60 78c0 0 22-4 32-17 7-9 7-20 4-30-11 2-22 8-28 17'/%3E%3C/svg%3E") center / 22px no-repeat;
  border: 1px solid var(--line-gold); color: var(--gold-text);
}
/* the last one is where it lands, so it is the one that is filled in */
.unfold li:last-child .n { background: var(--wine); border-color: var(--wine); color: #fff; }

/* the six blockages */
.blockages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.blockage { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.blockage h3 { margin-bottom: 7px; }
.blockage p { font-size: .85rem; color: var(--mauve); line-height: 1.55; margin-bottom: 9px; }
.blockage .night { font-size: .82rem; color: var(--gold-text); margin: 0; }
.blockage .night b { color: var(--gold-text); font-weight: 700; }

/* the four stages */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.stage .n {
  display: inline-block; font-family: var(--display); font-weight: 800; font-size: .78rem;
  color: var(--gold-text); border: 1px solid var(--line-gold); border-radius: 7px;
  padding: 5px 9px; margin-bottom: 10px;
}
.stage:last-child .n { background: var(--wine); border-color: var(--wine); color: #fff; }
.stage h3 { margin-bottom: 5px; }
.stage p { font-size: .82rem; color: var(--mauve); line-height: 1.5; margin: 0; }

/* the three stages of the work */
.solves { display: flex; flex-direction: column; gap: 11px; margin-top: 18px; }
.solve { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; display: flex; gap: 13px; align-items: flex-start; }
.solve .n {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90' fill='none' stroke='%23b3854f' stroke-width='4' stroke-opacity='.30'%3E%3Cpath d='M60 78C60 78 44 66 44 50c0-11 7-20 16-27 9 7 16 16 16 27 0 16-16 28-16 28z'/%3E%3Cpath d='M60 78C60 78 38 74 28 61c-7-9-7-20-4-30 11 2 22 8 28 17'/%3E%3Cpath d='M60 78c0 0 22-4 32-17 7-9 7-20 4-30-11 2-22 8-28 17'/%3E%3C/svg%3E") center / 30px no-repeat;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--gold-1);
}
.solve h3 { margin-bottom: 3px; }
.solve p { font-size: .88rem; color: var(--mauve); line-height: 1.55; margin: 0; }

/* what people notice */
.notice-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 18px; margin-top: 14px; list-style: none; }
.notice-list li { display: flex; gap: 9px; align-items: flex-start; font-size: .88rem; }
.notice-list svg { flex-shrink: 0; margin-top: 4px; color: var(--gold-1); }

/* ---- the self-check ------------------------------------------------------- */

.checks { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.check {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
}
.check:hover { border-color: var(--line-gold); }
.check input { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; accent-color: var(--wine); cursor: pointer; }
.check span { font-size: .9rem; line-height: 1.55; }

.score {
  background: var(--wine); color: #fff; border-radius: var(--radius);
  padding: 16px 18px; margin-top: 14px;
}
.score strong { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--gold-3); line-height: 1.2; }
.score span { font-size: .86rem; color: var(--on-dark); }

/* ---- the dark call to action panel ----------------------------------------- */

.panel {
  background: var(--deep); color: var(--on-dark);
  border-radius: var(--radius-lg); padding: 26px 28px;
  margin-top: 30px; position: relative; overflow: hidden;
}
.panel .eyebrow { color: var(--gold-3); border-color: rgba(240, 212, 136, .35); }
.panel h2 { color: #fff; max-width: 22ch; }
.panel p { color: var(--on-dark); }
.panel ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 14px 0 20px; }
.panel li { position: relative; padding-left: 17px; font-size: .92rem; line-height: 1.55; }
.panel li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); }
.panel .row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.panel .row span { font-size: .82rem; color: var(--on-dark); }

/* The lotus, drawn rather than photographed so it scales and takes no
   request of its own. */
.panel .lotus { position: absolute; right: -24px; bottom: -34px; width: 190px; color: rgba(240, 212, 136, .22); pointer-events: none; }

/* ---- why I do this work ------------------------------------------------------ */

.why { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: start; margin-top: 16px; }
.why img, .why .frame {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius);
  background: var(--mist); border: 1px solid var(--line-gold);
}
.why .frame { display: grid; place-items: center; text-align: center; font-size: .76rem; color: var(--mauve); padding: 12px; }

/* ---- success stories ----------------------------------------------------------- */

.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 16px 0 26px; }
.stories[hidden] { display: none; }

.story { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.story figcaption { padding: 9px 12px; font-size: .82rem; font-weight: 600; color: var(--wine); }

/* The poster is a button, so the keyboard reaches it and a screen reader is
   told what it plays. */
.story-play {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: var(--deep); aspect-ratio: 16 / 9; overflow: hidden;
}
.story-play img { width: 100%; height: 100%; object-fit: cover; }
.story-play::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.story-play::before {
  content: ''; position: absolute; left: 50%; top: 50%; z-index: 2;
  transform: translate(-40%, -50%);
  border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--deep);
}
.story video { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; background: var(--deep); }

/* The written stories from /v3/, two rows running opposite ways. */
.marquee { overflow: hidden; margin-top: 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: slide 58s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee img { width: 230px; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }

@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}

/* ---- FAQ -------------------------------------------------------------------------- */

/* <details>, so every answer is in the HTML the crawler and the FAQPage
   schema both read. Anything injected by script would make the schema a lie. */
.faq { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  cursor: pointer; list-style: none; padding: 13px 16px;
  font-family: var(--display); font-weight: 700; font-size: .93rem; color: var(--wine);
  display: flex; gap: 9px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '▸'; color: var(--gold-1); transition: transform .18s ease; }
.faq details[open] summary::before { transform: rotate(90deg); }
.faq .answer { padding: 0 16px 15px; font-size: .9rem; color: var(--mauve); line-height: 1.65; }

/* ---- the author box ------------------------------------------------------------------ */

.author { border-top: 1px solid var(--line-gold); margin-top: 30px; padding-top: 20px; display: flex; gap: 15px; align-items: flex-start; }
.author img, .author .frame {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--mist); border: 1px solid var(--line-gold);
}
.author .who { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
.author h3 { margin: 2px 0 5px; }
.author p { font-size: .86rem; color: var(--mauve); line-height: 1.6; margin: 0; }

/* ---- the sidebar ------------------------------------------------------------------------ */

.sidebar { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 14px; }

.side-cta { background: var(--white); border: 1px solid var(--line-gold); border-radius: var(--radius-lg); padding: 20px; }
.side-cta .lotus-mark { width: 26px; color: var(--gold-1); margin-bottom: 11px; }
.side-cta h3 { font-size: 1.08rem; margin-bottom: 7px; }
.side-cta p { font-size: .85rem; color: var(--mauve); line-height: 1.55; margin-bottom: 15px; }
.side-cta .btn { width: 100%; }

.side-about { background: var(--mist); border-radius: var(--radius-lg); padding: 18px 20px; }
.side-about h3 { font-size: .88rem; margin-bottom: 9px; }
.side-about p { font-size: .82rem; color: var(--mauve); line-height: 1.75; margin: 0; }

/* ---- related reading ----------------------------------------------------------------------- */

.related { background: var(--mist); padding: 36px 0; }
.related h2 { margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.related-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px; text-decoration: none; display: block;
  transition: border-color .18s ease, transform .18s ease;
}
.related-card:hover { border-color: var(--line-gold); transform: translateY(-2px); }
.related-card span { display: block; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; margin-bottom: 7px; }
.related-card b { font-family: var(--display); font-size: .92rem; font-weight: 700; color: var(--wine); line-height: 1.35; }

/* ---- footer ------------------------------------------------------------------------------------ */

.site-footer { background: var(--deep); color: var(--on-dark); padding: 26px 0 30px; }
.site-footer p { font-size: .76rem; line-height: 1.65; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.site-footer a { color: var(--gold-3); font-size: .78rem; }

/* ---- the bar along the bottom, as on /v3/ ----------------------------------------------------------- */

.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--wine); color: #fff;
  padding: 11px 0 calc(11px + env(safe-area-inset-bottom, 0px));
  transform: translateY(115%); transition: transform .25s ease;
  box-shadow: 0 -8px 26px rgba(0, 0, 0, .25);
}
.sticky.is-shown { transform: translateY(0); }
.sticky .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sticky strong { display: block; font-family: var(--display); font-size: .92rem; }
.sticky small { font-size: .74rem; color: var(--on-dark); }
.sticky .btn { flex-shrink: 0; }

/* ---- narrower ------------------------------------------------------------------------------------------ */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .video-wrap { position: static; }
  .body-grid { grid-template-columns: minmax(0, 1fr); }
  .article { max-width: 100%; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-cta, .side-about { flex: 1 1 280px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .shell { width: min(100% - 32px, var(--shell)); }
  .roots, .blockages, .stages, .notice-list, .stories { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .why { grid-template-columns: 1fr; }
  .why img, .why .frame { max-width: 220px; }
  .cta-strip { flex-direction: column; align-items: stretch; text-align: left; }
  .cta-strip .btn { width: 100%; }
  .panel { padding: 22px; }
  .panel .lotus { display: none; }
  .site-header .shell { padding: 9px 0; }
  /* The bar along the bottom carries the call to action on a phone. Two of
     them on one screen is one too many. */
  .site-header .btn { display: none; }
  .stories { grid-template-columns: 1fr 1fr; }
  .brand img { width: 34px; height: 34px; }
  .brand b { font-size: .86rem; }
  .brand .brand-tag { font-size: .56rem; letter-spacing: .1em; }
  .sticky .btn { padding: 11px 16px; font-size: .8rem; }
  .sticky strong { font-size: .82rem; }
  .sticky small { font-size: .68rem; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .stories { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto; }
  .marquee img { width: 190px; }
}

@media (max-width: 420px) {
  /* The line under the name goes, not the name itself. */
  .brand .brand-tag { display: none; }
}

/* ---- the booking popup ---------------------------------------------------

   Opened by every "Book a Clarity Call". It takes the three details once, so
   the page after it can fill itself in and nobody types twice.
   -------------------------------------------------------------------------- */

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }

.modal-veil { position: absolute; inset: 0; background: rgba(28, 10, 24, .62); backdrop-filter: blur(2px); }

.modal-card {
  position: relative; z-index: 1;
  width: min(100%, 420px); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--white); border-radius: var(--radius-lg); padding: 26px 24px 22px;
  box-shadow: 0 24px 60px rgba(28, 10, 24, .35);
  animation: rise .22s ease;
}

@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) { .modal-card { animation: none; } }

.modal-x {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--mist); color: var(--wine);
  display: grid; place-items: center;
}
.modal-x:hover { background: var(--line-gold); }

.modal-card h2 { font-size: 1.3rem; margin: 0 30px 6px 0; }
.modal-lead { font-size: .86rem; color: var(--mauve); margin-bottom: 17px; }

.field { margin-bottom: 13px; }
.field label { display: block; font-size: .8rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.field input {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--text);
  padding: 12px 13px; border: 1px solid rgba(61, 22, 53, .2); border-radius: 9px; background: #fff;
}
.field input:focus { outline: 2px solid var(--wine); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: #c0392b; }
.field .why { display: none; font-size: .76rem; color: #c0392b; margin-top: 5px; }
.field input[aria-invalid="true"] ~ .why { display: block; }

/* Off-screen rather than display:none, so a bot's form filler still finds it. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; }

.modal-card .btn { width: 100%; margin-top: 4px; }
.modal-note { font-size: .82rem; color: #c0392b; margin: 10px 0 0; min-height: 1em; }
.modal-fine { font-size: .74rem; color: var(--mauve); text-align: center; margin: 10px 0 0; line-height: 1.5; }

/* The popup is where a phone needs the most room: full width, and the card
   sits at the bottom where a thumb is. */
@media (max-width: 560px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal-card {
    width: 100%; max-width: none; max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    animation: slide-up .24s ease;
  }
  @keyframes slide-up { from { transform: translateY(100%); } to { transform: none; } }
}

/* Nothing behind the popup scrolls while it is open. */
body.modal-open { overflow: hidden; }
