/* Pencil Glow homepage 2026: lantern hero + sections. Scoped to main.nh so the site header, menu and footer keep their own styles. */
main.nh {
  color-scheme: dark;
  --nh-bg: #0b0b0f;
  --nh-surface: #121218;
  --nh-surface-hover: #17171f;
  --nh-ink: #f3f6f9;
  --nh-muted: #a6abb6;
  --nh-line: #262630;
  --nh-accent: #00bbfe;
  --nh-accent-hover: #4dd5ff;
  --nh-accent-ink: #0b0b0f;
  --nh-shadow: rgba(0, 0, 0, 0.45);
  --nh-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --nh-font-body: "Barlow", Arial, sans-serif;
  --nh-container: 1320px;
  --nh-gutter: clamp(20px, 5vw, 64px);
  --nh-section-gap: clamp(96px, 12vw, 160px);
  --nh-radius: 999px;
  --nh-radius-box: 12px;
  --nh-text-hero: clamp(64px, 9vw, 132px);
  --nh-text-section: clamp(44px, 5.2vw, 76px);
  --nh-text-title: clamp(28px, 2.4vw, 36px);
}
html[data-theme="light"] main.nh {
  color-scheme: light;
  --nh-bg: #f7f7f9;
  --nh-surface: #ffffff;
  --nh-surface-hover: #f1f0f6;
  --nh-ink: #0b0b0f;
  --nh-muted: #5a5d6a;
  --nh-line: #e3e2ea;
  --nh-accent: #7028fc;
  --nh-accent-hover: #5a16e0;
  --nh-accent-ink: #ffffff;
  --nh-shadow: rgba(24, 18, 48, 0.16);
}
main.nh * { box-sizing: border-box; }
main.nh html { -webkit-text-size-adjust: 100%; }
main.nh img { display: block; max-width: 100%; height: auto; }
main.nh a { color: inherit; }
main.nh :focus-visible { outline: 3px solid var(--nh-accent); outline-offset: 3px; border-radius: 4px; }
main.nh .nh-wrap { width: 100%; max-width: var(--nh-container); margin-inline: auto; padding-inline: var(--nh-gutter); }
main.nh h1, main.nh h2, main.nh h3 {
  font-family: var(--nh-font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}
main.nh h1 { font-size: var(--nh-text-hero); letter-spacing: -0.01em; }
main.nh h2 { font-size: var(--nh-text-section); }
main.nh h3 { font-size: var(--nh-text-title); line-height: 1; }
main.nh p { margin: 0; max-width: 60ch; }
main.nh .muted { color: var(--nh-muted); }
main.nh .btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  min-height: 52px; padding: 0 28px; border-radius: var(--nh-radius);
  background: var(--nh-accent); color: var(--nh-accent-ink);
  font: 500 18px/1 var(--nh-font-body); text-decoration: none; border: 0; cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
main.nh .btn:hover { background: var(--nh-accent-hover); }
main.nh .btn:active { transform: translateY(1px); }
main.nh .btn svg { width: 18px; height: 18px; }
main.nh .nh-textlink {
  color: var(--nh-accent); font-weight: 500; text-decoration: none;
  text-underline-offset: 6px; text-decoration-thickness: 1px; white-space: nowrap;
}
main.nh .nh-textlink:hover { color: var(--nh-accent-hover); }
main.nh .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
main.nh .nh-hero .nh-wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 48px;
  min-height: calc(100svh - 88px); padding-block: 64px;
}
main.nh .nh-hero h1 .signal { color: var(--nh-accent); display: block; }
main.nh .nh-hero .lede { font-size: clamp(20px, 1.7vw, 24px); font-weight: 500; margin: 36px 0 40px; max-width: 30ch; }
main.nh .orb { display: grid; justify-items: center; gap: 20px; }
main.nh .orb canvas { width: min(100%, 440px); aspect-ratio: 1; }
main.nh .orb .talk {
  background: none; border: 1px solid var(--nh-line); color: var(--nh-ink); border-radius: var(--nh-radius);
  min-height: 44px; padding: 0 22px; font: 500 16px/1 var(--nh-font-body); cursor: pointer;
}
main.nh .orb .talk:hover { border-color: var(--nh-accent); }
main.nh section + section { margin-top: var(--nh-section-gap); }
main.nh .split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: end; }
main.nh .intro { margin-top: 28px; color: var(--nh-muted); }
main.nh .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 72px; border-top: 1px solid var(--nh-line); }
main.nh .facts div { padding: 32px 32px 0 0; }
main.nh .facts div + div { padding-left: 32px; border-left: 1px solid var(--nh-line); }
main.nh .facts strong { display: block; font: 700 clamp(56px, 6vw, 88px)/0.9 var(--nh-font-display); color: var(--nh-ink); }
main.nh .facts span { color: var(--nh-muted); }
main.nh .penny-cta { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
main.nh .penny-cta small { color: var(--nh-muted); font-size: 16px; }
main.nh .nh-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
main.nh .service {
  display: flex; flex-direction: column; gap: 18px; min-height: 340px; padding: 32px 28px;
  background: var(--nh-surface); border-radius: var(--nh-radius-box); text-decoration: none;
  transition: background-color 0.18s ease;
}
main.nh .service:hover { background: var(--nh-surface-hover); }
main.nh .service p { color: var(--nh-muted); font-size: 17px; }
main.nh .service .go { margin-top: auto; color: var(--nh-accent); font-weight: 500; }
main.nh .work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
main.nh .work figure { margin: 0; }
main.nh .work img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--nh-radius-box); }
main.nh .work figcaption { margin-top: 14px; display: grid; gap: 2px; }
main.nh .work figcaption b { font-weight: 500; }
main.nh .work figcaption span { color: var(--nh-muted); font-size: 16px; }
main.nh .work-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
main.nh .note { color: var(--nh-muted); font-size: 16px; margin-top: 16px; }
main.nh .how p + p { margin-top: 20px; }
main.nh .how p { color: var(--nh-muted); }
main.nh .nh-closing { text-align: left; border-top: 1px solid var(--nh-line); padding-top: var(--nh-section-gap); }
main.nh .nh-closing p { margin: 28px 0 40px; color: var(--nh-muted); }
@media (max-width: 900px) {
main.nh .nh-hero .nh-wrap, main.nh .split { grid-template-columns: minmax(0, 1fr); }
main.nh .nh-hero .nh-wrap { min-height: 0; padding-block: 48px 24px; }
main.nh .orb canvas { width: min(70%, 300px); }
main.nh .nh-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
main.nh .nh-services, main.nh .work { grid-template-columns: minmax(0, 1fr); }
main.nh .service { min-height: 0; }
main.nh .facts { grid-template-columns: minmax(0, 1fr); }
main.nh .facts div, main.nh .facts div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--nh-line); }
}
@media (prefers-reduced-motion: reduce) {
main.nh * { transition: none !important; animation: none !important; }
}
main.nh { --nh-warm: #b58eff; --nh-shadow: rgba(10, 6, 20, 0.62); --nh-btn-veil: rgba(8, 8, 11, 0.55); --nh-ease-out: cubic-bezier(0.33, 1, 0.68, 1); }
main.nh .lantern-hero .nh-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
main.nh .lantern-hero h1 { font-size: clamp(56px, 6vw, 100px); }
main.nh .lantern-hero .stage { width: min(100%, calc((100svh - 250px) * 600 / 920)); }
main.nh .scene { position: relative; display: grid; place-items: center; perspective: 1400px; }
main.nh .stage {
  position: relative; width: min(100%, calc((100svh - 150px) * 600 / 920)); aspect-ratio: 600 / 920;
  transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
main.nh .plx { position: absolute; inset: 0; will-change: transform; }
main.nh .inner { position: absolute; inset: 0; clip-path: inset(6.52% 8.33% 6.52% 8.33%); }
main.nh .lit .inner, main.nh .done .inner { clip-path: inset(6.52% 8.33% 6.52% 8.33%); }
main.nh .plx > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
main.nh .layer { filter: drop-shadow(0 0.55vmin 1.1vmin var(--nh-shadow)); }
main.nh .l-front_frame { filter: drop-shadow(0 1vmin 2.4vmin var(--nh-shadow)); }
main.nh .light > rect, main.nh .light > image { animation: breathe 3.8s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: 0.92; } to { opacity: 1; } }
main.nh .light-btn {
  position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%);
  min-height: 52px; padding: 0 28px; border-radius: 999px; white-space: nowrap; cursor: pointer;
  background: var(--nh-btn-veil); color: var(--nh-ink); border: 1px solid var(--nh-warm);
  font: 500 18px/1 var(--nh-font-body); backdrop-filter: none; transition: opacity 0.5s ease, border-color 0.2s ease;
}
main.nh .light-btn:hover { border-color: var(--nh-ink); }
main.nh .pre .layer { transform: var(--from); }
main.nh .pre .glow { opacity: 0; }
main.nh .pre .l-STRIP, main.nh .pre .l-vine { opacity: 0; }
main.nh .lit svg.l-STRIP { opacity: 1; transition: transform 1.05s var(--nh-ease-out) var(--delay), opacity 0s linear var(--delay); }
main.nh .lit svg.l-vine { opacity: 1; transition: transform 1.05s var(--nh-ease-out) var(--delay), opacity 0s linear var(--delay); }
main.nh .pre .light { opacity: 0.14; }
main.nh .pre .copy > * { opacity: 0; transform: translateY(14px); }
main.nh .lit .layer { transform: none; transition: transform 1.05s var(--nh-ease-out) var(--delay); }
main.nh .lit .glow { opacity: 1; transition: opacity 1.6s ease 6s; }
main.nh .lit .light { opacity: 1; transition: opacity 1.6s ease; }
main.nh .lit .copy > * { opacity: 1; transform: none; transition: opacity 0.9s ease, transform 0.9s var(--nh-ease-out); }
main.nh .lit .copy > :nth-child(1) { transition-delay: 6.4s; }
main.nh .lit .copy > :nth-child(2) { transition-delay: 6.8s; }
main.nh .lit .copy > :nth-child(3) { transition-delay: 7.1s; }
main.nh .lit .light-btn, main.nh .no-btn .light-btn { opacity: 0; pointer-events: none; }
@media (max-width: 900px) {
main.nh .lantern-hero .nh-wrap { grid-template-columns: minmax(0, 1fr); }
main.nh .scene { order: -1; }
main.nh .lantern-hero .stage { width: min(114vw, calc(82svh * 600 / 920)); }
main.nh .lantern-hero .nh-wrap { padding-block: 0 24px; gap: 4px; }
main.nh .lantern-hero .scene { display: flex; justify-content: center; }
main.nh .lantern-hero .scene .stage { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
main.nh .light > rect, main.nh .light > image { animation: none; }
main.nh .plx, main.nh .stage { transform: none !important; }
}
main.nh .scene { touch-action: pan-y; }
main.nh { --nh-pool-a: rgba(226, 208, 255, 0.72); --nh-pool-b: rgba(170, 130, 255, 0.24); }
main.nh .pool { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity 1.2s ease;
  background: radial-gradient(circle at var(--px, 50%) var(--py, 40%), var(--nh-pool-a), var(--nh-pool-b) 26%, transparent 58%); }
main.nh .done .pool { opacity: 1; }
main.nh .hint { margin: 10px 0 0; text-align: center; color: var(--nh-muted); font-size: 15px; max-width: 34ch; opacity: 0; transition: opacity 0.8s ease; }
main.nh .done .hint { opacity: 1; }
main.nh .touched .hint { opacity: 0; transition-delay: 2.5s; }
main.nh .done .stage { cursor: pointer; }
@media (max-width: 900px) {
main.nh .lantern-hero .scene { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
main.nh .pool, main.nh .hint { display: none; }
}
@media (max-width: 900px) {
main.nh .lantern-hero .scene { transform-origin: 50% 0; transition: transform 0.9s cubic-bezier(0.33, 1, 0.68, 1); }
main.nh .lantern-hero.settled .scene { transform: scale(var(--settle, 1)); }
main.nh .lantern-hero .copy { transition: transform 0.9s cubic-bezier(0.33, 1, 0.68, 1); }
main.nh .lantern-hero.settled .copy { transform: translateY(var(--lift, 0px)); }
main.nh .lantern-hero.settled { margin-bottom: var(--lift, 0px); }
main.nh .lit .copy > :nth-child(1) { transition-delay: 7.4s; }
main.nh .lit .copy > :nth-child(2) { transition-delay: 7.8s; }
main.nh .lit .copy > :nth-child(3) { transition-delay: 8.1s; }
}
main.nh .stage .plx.picked > svg.layer { transform: translateY(-3.5%) scale(1.03) !important; transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1) !important; }
main.nh { --nh-pick-glow: rgba(226, 208, 255, 0.95); }
main.nh .stage .plx.picked > svg.layer { filter: drop-shadow(0 0 0.5vmin var(--nh-pick-glow)) drop-shadow(0 1.6vmin 2.4vmin var(--nh-shadow)); }
main.nh .hint { min-height: 4.6em; }
main.nh .hint.meaning { opacity: 1 !important; transition-delay: 0s !important; color: var(--nh-ink); text-align: left; }
main.nh .hint.meaning b { color: var(--nh-accent); font-weight: 500; }
main.nh .hint.meaning .nh-textlink { font-size: 15px; }
@media (orientation: landscape) and (max-width: 900px), (orientation: landscape) and (max-height: 520px) {
main.nh .lantern-hero .nh-wrap { grid-template-columns: minmax(0, 1fr) auto !important; min-height: calc(100svh - 56px); padding-block: 8px 12px; gap: 24px; align-items: center; }
main.nh .lantern-hero .scene { order: 1; transform: none !important; flex-direction: column; }
main.nh .lantern-hero .scene .stage, main.nh .lantern-hero .stage { width: calc((100svh - 84px) * 600 / 920) !important; }
main.nh .lantern-hero .copy { transform: none !important; }
main.nh .lantern-hero h1 { font-size: clamp(36px, min(13svh, 7vw), 76px); }
main.nh .lantern-hero .lede { margin: 14px 0 18px; font-size: 17px; }
main.nh .hint { min-height: 0; font-size: 13px; margin-top: 4px; max-width: 28ch; }
main.nh .hint.meaning { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); width: 92%; background: var(--nh-surface); border: 1px solid var(--nh-line); border-radius: var(--nh-radius-box); padding: 10px 12px; font-size: 13px; z-index: 6; }
main.nh .lantern-hero .scene { position: relative; }
}
main.nh .plx, main.nh .plx > svg { pointer-events: none; }
main.nh .done .plx > svg.layer path, main.nh .done .plx > svg.layer rect { pointer-events: visiblePainted; }
main.nh .done .stage { pointer-events: auto; }
@media (orientation: landscape) and (max-width: 900px), (orientation: landscape) and (max-height: 520px) {
main.nh .lantern-hero .nh-wrap { grid-template-columns: auto auto !important; justify-content: center; gap: clamp(28px, 7vw, 88px); padding-block: 6px 10px; }
main.nh .lantern-hero .copy { max-width: 46ch; }
main.nh .lantern-hero .scene .stage, main.nh .lantern-hero .stage { width: calc((100svh - 72px) * 600 / 920) !important; }
main.nh .hint:not(.meaning) { display: none; }
main.nh .lantern-hero .actions { gap: 20px; }
main.nh .lantern-hero .btn { min-height: 46px; padding: 0 22px; font-size: 16px; }
}
@media (min-width: 901px) and (max-height: 820px) {
main.nh .lantern-hero .stage { width: min(100%, calc((100svh - 150px) * 600 / 920)); }
main.nh .lantern-hero .nh-wrap { min-height: calc(100svh - 88px); padding-block: 16px; }
}
@media (orientation: landscape) and (max-height: 520px) {
main.nh .hint.meaning {
    position: fixed; top: auto; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
    width: min(620px, calc(100% - 32px)); max-width: none; padding: 10px 16px; font-size: 14px; line-height: 1.4; text-align: left;
    background: var(--nh-surface); border: 1px solid var(--nh-line); border-radius: var(--nh-radius-box); box-shadow: 0 12px 32px var(--nh-shadow); z-index: 20;
  }
}
@media (max-width: 900px) and (orientation: portrait) {
main.nh .lantern-hero .hint { margin-top: calc(-0.055 * min(114vw, 82svh * 600 / 920) * 920 / 600 + 6px); }
main.nh .lantern-hero .copy { padding-top: 36px; }
}
html[data-theme="light"] main.nh {
  --g-light-0: #fff4d2; --g-light-1: #ffb547; --g-light-2: #fbe9d8; --g-light-3: #ddd6e0;
  --g-back_wall-0: #ffffff; --g-back_wall-1: #ebe9f1;
  --g-mountains-0: #f6f5f9; --g-mountains-1: #dcd9e5;
  --g-far_ridge-0: #eae8f0; --g-far_ridge-1: #cac6d6;
  --g-mid_ridge-0: #dbd8e3; --g-mid_ridge-1: #b4b0c2;
  --g-tree-0: #a27af7; --g-tree-1: #6f3ce2;
  --g-meadow-0: #cfcbd9; --g-meadow-1: #9a96ab;
  --g-vine-0: #ffffff; --g-vine-1: #e6e3ee;
  --g-frame-0: #ffffff; --g-frame-1: #e9e6f1;
  --g-strip-0: #ffffff; --g-strip-1: #efedf5;
  --strip-under: #dcdbe4; --strip-glow: #15151c; --slash: #7028fc;
}
html[data-theme="light"] main.nh image[href*="slash-hdr"] { display: none; }

/* the cookie card waits until the lantern has lit (desktop) or the visitor scrolls (phone); wording and behaviour unchanged */
html.nh-consent-wait #analytics-choice { visibility: hidden !important; opacity: 0 !important; }
#analytics-choice { transition: opacity 0.5s ease; }
/* footer: the brand wordmark (white or dark letters, brand-coloured slash) instead of the purple-to-blue gradient word */
.nh-footer-mark { grid-column: 1 / -1; width: 100%; max-width: 1320px; margin: 0 auto 24px; }
.nh-footer-mark img { width: 100%; height: auto; display: block; }
.nh-footer-mark .mark-light { display: none; }
html[data-theme="light"] .nh-footer-mark .mark-dark { display: none; }
html[data-theme="light"] .nh-footer-mark .mark-light { display: block; }
main.nh { display: block; padding-top: var(--nh-head, 80px); }
@media (min-width: 901px) { main.nh { padding-top: var(--nh-head, 96px); } }
/* homepage only: the floating "Talk to Penny" button waits until the visitor reaches "Go on. Say hello." */
html.nh-penny-wait .penny-floating { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.penny-floating { transition: opacity 0.4s ease, visibility 0.4s ease; }
/* the site forces border-radius: var(--radius, 4px) !important on every element: give each shape its own --radius */
main.nh, main.nh * { --radius: 0px; }
main.nh .btn, main.nh .light-btn, main.nh .talk { --radius: 999px; }
main.nh .service, main.nh .work img, main.nh .hint.meaning { --radius: 12px; }
/* the site scales any pressed button with transform:scale(.97)!important, which would cancel a transform-based
   centring and make "Light the lantern" jump away mid-click: centre it with the separate translate property */
main.nh .light-btn { transform: none; translate: -50% -50%; }
