/* Home, trade and location pages. Shares the bar, pills, dialogs, type and the
   end section with chapters.css; this file adds the page layouts. Ink, warm
   paper, burgundy, Fredoka. Big type, honest words, one call to action. */

.site-page body { background: var(--paper); color: var(--ink); }
.bar-site .bar-line { color: var(--mute-d); }
.site-page .light .pill-quiet { background: rgba(20, 23, 26, 0.08); color: var(--ink); }
[data-rise] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
[data-rise].is-in { opacity: 1; transform: none; }
.site-page .ch-head { margin-bottom: 32px; }
.site-page .lead { font-size: clamp(19px, 1.7vw, 27px); }
.kick { margin: 0 0 18px; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pink); }
.light .kick { color: var(--accent); }
.wrap { max-width: 1320px; margin-inline: auto; }
.sec { padding: clamp(72px, 9vw, 140px) var(--gutter); }
.sec-tight { padding-block: clamp(48px, 6vw, 90px); }
.h2 { margin: 0; font-weight: 600; text-transform: uppercase; font-size: clamp(40px, 6.6vw, 118px); line-height: 0.88; letter-spacing: -0.035em; text-wrap: balance; max-width: 14ch; }
.h3 { margin: 0; font-weight: 600; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.05; letter-spacing: -0.02em; }
.p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--mute-l); }
.dark .p { color: var(--mute-d); }
.row-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 28px; }
.pill-paper { background: var(--paper); color: var(--ink); }
.pill-paper:hover { background: #fff; }
.pill-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.pill-line:hover { background: rgba(20, 23, 26, 0.06); }
.dark .pill-line:hover { background: rgba(243, 239, 230, 0.1); }

/* ---------- Hero (home): ink, giant words, three short proofs ---------- */
.s-hero {
  position: relative; min-height: 100svh; display: grid; align-content: end;
  padding: 110px var(--gutter) 44px; overflow: clip; isolation: isolate;
}
.s-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 90%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 48% 42% at 78% 28%, rgba(148, 26, 60, 0.55), transparent 70%), radial-gradient(ellipse 40% 36% at 14% 72%, rgba(246, 184, 198, 0.16), transparent 70%);
  filter: blur(10px);
}
.s-hero .kick { margin-bottom: 26px; }
.hero-h1 {
  margin: 0; font-weight: 600; text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.84; text-wrap: balance;
  font-size: clamp(54px, 10.4vw, 190px); max-width: 9.5ch;
}
.hero-h1 em { font-style: normal; color: var(--pink); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6vw; align-items: end; margin-top: 30px; }
.hero-lead { margin: 0; font-size: clamp(19px, 1.7vw, 27px); line-height: 1.25; font-weight: 500; max-width: 24ch; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; border-left: 2px solid rgba(243, 239, 230, 0.18); padding-left: 22px; }
.hero-facts li { font-size: 16px; color: var(--mute-d); line-height: 1.4; }
.hero-facts strong { display: block; color: var(--paper); font-weight: 600; font-size: 18px; }
.hero-mosaic {
  position: absolute; right: -5vw; top: 5svh; width: min(44vw, 720px); z-index: -1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: rotate(3deg); opacity: 0.55;
}
.hero-mosaic img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 18px; filter: saturate(0.85) contrast(1.05); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
.hero-mosaic img:nth-child(2), .hero-mosaic img:nth-child(4), .hero-mosaic img:nth-child(6) { translate: 0 22px; }
.hero-mosaic::after { content: ""; position: absolute; inset: -10%; background: linear-gradient(to left, transparent 25%, rgba(20, 23, 26, 0.9)), linear-gradient(to top, rgba(20, 23, 26, 0.9), transparent 45%); }
.hero-photo { position: absolute; right: -4vw; top: 8svh; width: min(44vw, 720px); aspect-ratio: 4 / 3; z-index: -1; border-radius: 28px; overflow: clip; opacity: 0.55; transform: rotate(2.5deg); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.85) contrast(1.05); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, transparent 30%, rgba(20, 23, 26, 0.85)); }

/* ---------- Sheet sections ---------- */
.sheet-s { border-radius: var(--round) var(--round) 0 0; margin-top: calc(var(--round) * -1); box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.18); position: relative; }

/* leaks: four plain facts with a big number mark */
.leaks { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.leaks li { padding: 30px 26px 36px 0; border-bottom: 1.5px solid var(--ink); display: grid; gap: 14px; align-content: start; }
.leaks li + li { padding-left: 26px; border-left: 1.5px solid var(--ink); }
.leaks .n { font-size: 15px; font-weight: 600; color: var(--accent); }
.leaks h3 { margin: 0; font-size: clamp(26px, 2.4vw, 38px); line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.leaks p { margin: 0; color: var(--mute-l); font-size: 17px; line-height: 1.45; }
.leaks .fix { font-weight: 500; color: var(--ink); margin-top: auto; padding-top: 10px; }
.leaks .fix::before { content: "→ "; color: var(--accent); }

/* trades: editorial list, each row a link */
.trades-list { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1.5px solid rgba(243, 239, 230, 0.2); }
.trade-row {
  display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 4vw; align-items: center;
  padding: 30px 0; border-bottom: 1.5px solid rgba(243, 239, 230, 0.2); color: inherit; text-decoration: none;
  transition: padding-left 0.4s var(--ease);
}
a.trade-row:hover { padding-left: 14px; }
a.trade-row:hover .trade-go { background: var(--pink); color: var(--ink); }
.trade-row h3 { margin: 0; font-size: clamp(30px, 3.6vw, 60px); line-height: 0.95; font-weight: 600; letter-spacing: -0.03em; text-transform: uppercase; }
.trade-row h3 small { display: block; font-size: 15px; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--pink); margin-bottom: 10px; }
.trade-row p { margin: 0; font-size: 17px; color: var(--mute-d); line-height: 1.45; }
.trade-go { width: 54px; height: 54px; border-radius: 999px; display: grid; place-items: center; background: var(--ink-2); color: var(--paper); font-size: 24px; transition: background-color 0.25s, color 0.25s; }
.trade-row.soon h3 { color: var(--mute-d); }
.trade-row.soon h3 small { color: var(--mute-d); }
.trade-row.soon .trade-go { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(243, 239, 230, 0.25); font-size: 13px; width: auto; padding: 0 14px; }

/* how it runs: four cards, the last in burgundy (same as the work page) */
.site-page .steps { margin-top: 48px; }
.site-page .step { min-height: 240px; }

/* proof: three product tiles with real screens */
.proof { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-top: 48px; }
.proof a { display: grid; gap: 14px; text-decoration: none; color: inherit; background: #fff; border-radius: 26px; padding: 22px 22px 24px; box-shadow: 0 12px 36px rgba(20, 23, 26, 0.08); transition: transform 0.35s var(--ease); }
.proof a:hover { transform: translateY(-4px); }
.proof .shot { border-radius: 16px; overflow: clip; aspect-ratio: 16 / 10; background: var(--paper-2); }
.proof .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.proof h3 { margin: 0; font-size: 26px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.proof h3 img { width: 34px; height: 34px; border-radius: 9px; }
.proof p { margin: 0; color: var(--mute-l); font-size: 16px; }

/* places */
.places { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.places a, .places .place { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 17px; box-shadow: inset 0 0 0 1.5px var(--ink); transition: background-color 0.2s, color 0.2s; }
.places a:hover { background: var(--ink); color: var(--paper); }
.places span { font-size: 14px; color: var(--mute-l); }
.places a:hover span { color: var(--mute-d); }

/* ---------- Trade and location pages ---------- */
.p-hero { position: relative; min-height: 92svh; display: grid; align-content: end; padding: 110px var(--gutter) 48px; overflow: clip; isolation: isolate; color: var(--paper); }
.p-hero .bg { position: absolute; inset: 0; z-index: -2; }
.p-hero .bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20, 23, 26, 0.96) 0%, rgba(20, 23, 26, 0.78) 38%, rgba(20, 23, 26, 0.35) 70%, rgba(20, 23, 26, 0.25) 100%); }
.p-hero .hero-h1 { font-size: clamp(46px, 7.8vw, 140px); max-width: 11ch; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45); }
.p-hero .hero-grid { grid-template-columns: 1.5fr 1fr; }
.p-hero .hero-lead { max-width: 30ch; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5); }
.p-hero .hero-facts { border-left-color: rgba(243, 239, 230, 0.35); }

/* costs: a two-column argument with a photo */
.cost { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: start; }
.cost-list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 0; }
.cost-list li { padding: 22px 0; border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.cost-list li:last-child { border-bottom: 1.5px solid var(--ink); }
.cost-list .n { font-weight: 600; color: var(--accent); font-size: 15px; padding-top: 5px; }
.cost-list strong { display: block; font-size: 22px; font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 6px; }
.cost-list p { margin: 0; color: var(--mute-l); font-size: 17px; line-height: 1.45; }
.photo-card { border-radius: 28px; overflow: clip; box-shadow: 0 30px 70px rgba(20, 23, 26, 0.22); aspect-ratio: 4 / 3; position: sticky; top: 100px; transform: rotate(-1.5deg); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* builds: the three things we build, as big sheets */
.builds { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.builds li { background: var(--ink-2); border-radius: 26px; padding: 28px 26px 32px; display: grid; gap: 14px; align-content: start; min-height: 320px; }
.builds li:nth-child(2) { background: var(--accent); }
.builds .n { font-size: 15px; color: var(--pink); font-weight: 600; }
.builds h3 { margin: 0; font-size: clamp(26px, 2.4vw, 38px); line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.builds p { margin: 0; color: var(--mute-d); font-size: 17px; line-height: 1.45; }
.builds li:nth-child(2) p { color: rgba(243, 239, 230, 0.85); }
.builds ul { margin: 6px 0 0; padding-left: 18px; color: var(--paper); font-size: 16px; line-height: 1.5; }

/* proof strip on trade pages: a desk shot and a phone */
.shots { display: grid; grid-template-columns: 1.1fr 1fr; gap: 5vw; align-items: center; margin-top: 40px; }
.shots .p-shots { min-height: 0; }
.shots .p-shots .phone { right: -2%; }
.shots .text { display: grid; gap: 16px; }

/* local: a map-free sense of place */
.local { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center; }
.local .photo-card { position: static; transform: rotate(1.5deg); aspect-ratio: 3 / 2; }
.local-facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.dark .local-facts li { color: var(--mute-d); }
.local-facts li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; line-height: 1.45; color: var(--mute-l); }
.local-facts li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; position: relative; top: -1px; }

/* FAQ */
.faq { margin-top: 40px; border-top: 1.5px solid rgba(243, 239, 230, 0.2); }
.faq details { border-bottom: 1.5px solid rgba(243, 239, 230, 0.2); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 0; font-size: clamp(20px, 1.9vw, 28px); font-weight: 600; line-height: 1.15; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 30px; color: var(--pink); flex: none; width: 40px; text-align: center; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 26px; max-width: 70ch; color: var(--mute-d); font-size: 17px; line-height: 1.5; }
.light .faq, .light .faq details { border-color: rgba(20, 23, 26, 0.18); }
.light .faq summary::after { color: var(--accent); }
.light .faq p { color: var(--mute-l); }

/* end + footer */
.s-end { text-align: center; padding: clamp(80px, 10vw, 150px) var(--gutter) 90px; display: flex; flex-direction: column; align-items: center; background: var(--ink); color: var(--paper); border-radius: var(--round) var(--round) 0 0; margin-top: calc(var(--round) * -1); box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.18); position: relative; }
.s-end .glow { margin-top: 0; }
.s-end .big-email { margin-top: 5svh; }
.foot-nav { margin-bottom: 8px; }
.foot-nav a, .credits a { color: var(--paper); }
.credits { font-size: 12px; color: #b3b8b6; margin-top: 10px; }

/* ---------- Phone ---------- */
@media (max-width: 900px) {
  .hero-grid, .p-hero .hero-grid, .cost, .local, .shots { grid-template-columns: 1fr; gap: 30px; }
  .hero-photo { position: relative; right: auto; top: auto; width: 100%; opacity: 0.8; transform: rotate(-1deg); margin-bottom: 30px; order: -1; }
  .hero-mosaic { position: relative; right: auto; top: auto; width: 100%; opacity: 0.85; transform: rotate(-1.5deg); margin-bottom: 26px; order: -1; gap: 10px; }
  .hero-mosaic img { border-radius: 12px; }
  .hero-mosaic::after { background: linear-gradient(to top, rgba(20, 23, 26, 0.85), transparent 50%); }
  .s-hero { padding-top: 100px; }
  .leaks { grid-template-columns: 1fr; }
  .leaks li + li { padding-left: 0; border-left: 0; }
  .trade-row { grid-template-columns: 1fr auto; }
  .trade-row p { grid-column: 1 / -1; }
  .proof, .builds { grid-template-columns: 1fr; }
  .builds li { min-height: 0; }
  .photo-card { position: static; transform: none; }
  .p-hero { min-height: 86svh; padding-top: 110px; }
  .site-page .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  [data-rise] { transition: none; }
}

/* variants that replace inline styles (the CSP has no unsafe-inline) */
.small.mt { margin-top: 24px; }
.paper2 { background: var(--paper-2); }
.trades-list.on-light, .on-light .trade-row { border-color: rgba(20, 23, 26, 0.18); }
.on-light .trade-row h3 small { color: var(--accent); }
.on-light .trade-row p { color: var(--mute-l); }
.on-light .trade-go { background: var(--ink); }
.on-light a.trade-row:hover .trade-go { background: var(--accent); color: var(--paper); }
.proof.one { grid-template-columns: 1fr; margin-top: 0; }
.site-page .step { color: var(--paper); }
