/* goodwork. minimal pages: shared chrome + the minimal layer (big words, whitespace, visuals).
   Used by every page in site/. Page-only styles stay inline in each page. */
:root {
  --gray1: #fcfcfc; --gray2: #f8f8f8; --gray3: #f3f3f3; --gray4: #ededed; --gray5: #e8e8e8; --gray6: #e2e2e2;
  --gray7: #dbdbdb; --gray8: #c7c7c7; --gray9: #8f8f8f; --gray10: #858585; --gray11: #6f6f6f; --gray12: #171717;
  --radii-pill: 9999px;
  --accent: #7a5af8; --accent-light: #f4f3ff; --accent-border: rgba(122,90,248,.18);
  --widget-bg: #f2f7fa; /* background baked into the light widgets in widgets/ */
  --nav-h: 58px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-feature-settings: "kern" 1; font-kerning: normal; scroll-behavior: smooth; }
body {
  -webkit-text-size-adjust: 100%;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased; background: #fff; color: var(--gray12); line-height: 1; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ─── NAV ─── */
nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--gray4); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { color: var(--accent); font-size: 20px; font-weight: 700; letter-spacing: -0.04em; }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--gray10); font-weight: 450; }
.nav-links a { transition: color 0.15s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--gray12); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-menu { display: none; }
.btn {
  font-family: inherit; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: var(--radii-pill);
  cursor: pointer; border: 1px solid transparent; transition: all 0.15s; white-space: nowrap; line-height: 1; display: inline-block;
}
.btn-outline { background: transparent; border-color: var(--gray6); color: var(--gray12); }
.btn-outline:hover { border-color: var(--gray9); }
.btn-dark { background: var(--gray12); color: #fff; border-color: var(--gray12); }
.btn-dark:hover { background: #000; }
.btn-lg { font-size: 15px; padding: 14px 28px; }
.btn-white { background: #fff; color: var(--gray12); border-color: #fff; font-size: 14px; padding: 12px 24px; }
.btn-white:hover { background: var(--gray2); }
.btn-ghost-white { background: transparent; border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.8); font-size: 14px; padding: 12px 24px; }
.btn-ghost-white:hover { border-color: rgba(255,255,255,0.55); }

/* contact avatar + hover card */
.contact-avatar-wrap { position: relative; margin-left: 12px; align-self: center; }
.contact-avatar {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover; object-position: center 15%; cursor: pointer;
  border: 3px solid var(--gray5); display: block; position: relative; z-index: 101; margin-top: 6px;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.contact-avatar-wrap:hover .contact-avatar, .contact-avatar-wrap:focus-within .contact-avatar {
  border-color: var(--gray9); box-shadow: 0 0 0 4px rgba(23,23,23,0.07); transform: scale(1.5); transform-origin: top right;
}
.contact-card {
  position: absolute; top: 84px; left: 50%; min-width: 220px; padding: 16px; z-index: 200;
  background: #fff; border: 1px solid var(--gray5); border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-50%) translateY(-6px) scale(0.98);
  transition: opacity 0.18s, transform 0.18s, visibility 0s linear 0.18s;
}
.contact-avatar-wrap:hover .contact-card, .contact-avatar-wrap:focus-within .contact-card {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0) scale(1); transition: opacity 0.18s, transform 0.18s;
}
.contact-card-name { font-size: 13px; font-weight: 600; color: var(--gray12); line-height: 1.3; }
.contact-card-title { font-size: 11px; color: var(--gray10); margin-top: 1px; margin-bottom: 12px; }
.contact-divider { height: 1px; background: var(--gray4); margin-bottom: 12px; }
.contact-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray11); margin-bottom: 8px; }
.contact-row:hover { color: var(--gray12); }
.contact-row svg { flex-shrink: 0; color: var(--gray9); }
.contact-card .btn { display: block; text-align: center; margin-top: 10px; font-size: 12px; padding: 8px 14px; }

/* ─── MINIMAL LAYER ─── */
.m-hero { padding: 96px 48px 88px; text-align: center; border-bottom: 1px solid var(--gray4); }
.m-hero-h { font-size: clamp(44px, 6.4vw, 92px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: var(--gray12); }
.m-hero-h .accent { color: var(--accent); }
.m-hero-cta { margin-top: 44px; }

.m-sec { padding: 88px 48px; border-bottom: 1px solid var(--gray4); background: #fff; }
.m-sec--tint { background: var(--gray2); }
.m-sec--widget { background: var(--widget-bg); }
.m-sec--compact { padding-top: 72px; padding-bottom: 72px; }
.m-sec--black { background: #000; color: #fff; border-bottom-color: #111; }
.m-inner { max-width: 1100px; margin: 0 auto; }
.m-center { text-align: center; }
.m-h { font-size: clamp(42px, 6vw, 84px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: var(--gray12); overflow-wrap: break-word; }
.m-h--sm { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.04; }
.m-h .dot, .m-hero-h .dot { color: var(--accent); }
.m-sec--black .m-h { color: #fff; }
.m-p { font-size: clamp(17px, 1.6vw, 21px); color: var(--gray10); line-height: 1.5; letter-spacing: -0.015em; margin-top: 20px; }
.m-center .m-p { max-width: 620px; margin-left: auto; margin-right: auto; }
.m-sec--black .m-p { color: rgba(255,255,255,0.5); }
.m-link { display: inline-block; margin-top: 24px; font-size: 15px; font-weight: 600; color: var(--gray12); border-bottom: 1px solid var(--gray6); padding: 12px 0 3px; }
.m-link:hover { border-color: var(--gray12); }

/* headline and its visual side by side. --flip puts the visual on the left on desktop; the headline always comes first in the markup, so phones read headline then visual */
.m-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.m-split--wide { grid-template-columns: 1fr 1.35fr; }
.m-split--flip > :first-child { order: 2; }

/* lists over cards: number · name · short gray line · arrow */
.m-list { margin-top: 40px; border-top: 1px solid var(--gray5); }
.m-split .m-list { margin-top: 0; }
.m-row {
  display: grid; grid-template-columns: 56px 1fr auto 40px; align-items: baseline; gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--gray5); color: var(--gray12); transition: padding 0.25s ease;
}
a.m-row:hover { padding-left: 12px; }
.m-row-n { font-size: 13px; font-weight: 500; color: var(--gray9); font-variant-numeric: tabular-nums; }
.m-row-name { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.m-row-line { font-size: 15px; color: var(--gray10); letter-spacing: -0.01em; text-align: right; line-height: 1.4; }
.m-row-arrow { font-size: 20px; color: var(--gray8); text-align: right; transition: color 0.2s ease, transform 0.25s ease; }
a.m-row:hover .m-row-arrow { color: var(--gray12); transform: translateX(4px); }
.m-row--start .m-row-name { color: var(--accent); }
a.m-row--start:hover .m-row-arrow { color: var(--accent); }

/* proof: two or three giant numbers on black, time → saved → made */
.m-proof { background: #000; color: #fff; padding: 88px 48px; text-align: center; border-bottom: 1px solid #111; }
.m-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1100px; margin: 0 auto; }
.m-proof-grid--2 { grid-template-columns: 1fr 1fr; max-width: 820px; }
.m-num { font-size: clamp(52px, 6.4vw, 92px); font-weight: 700; letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-num-label { margin-top: 16px; font-size: 16px; color: rgba(255,255,255,0.5); line-height: 1.5; letter-spacing: -0.01em; }
.m-proof-note { margin-top: 48px; font-size: 13px; color: rgba(255,255,255,0.3); }

/* proof strip: the way into the full results */
.m-proof-cta { margin-top: 28px; font-size: 16px; padding: 16px 30px; box-shadow: 0 0 0 6px rgba(255,255,255,0.08); transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.15s; }
.m-proof-cta span { display: inline-block; margin-left: 4px; transition: transform 0.25s ease; }
.m-proof-cta:hover { box-shadow: 0 0 0 10px rgba(255,255,255,0.12); transform: translateY(-1px); }
.m-proof-cta:hover span { transform: translateX(4px); }

/* do the math: header row with a pill switch, then sliders + result in one strip */
.m-math { background: #000; color: #fff; padding: 80px 48px; border-bottom: 1px solid #111; }
.m-calc { max-width: 1100px; margin: 0 auto; text-align: left; }
.m-calc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.m-calc .m-h { color: #fff; }
.m-calc-sub { margin-top: 14px; font-size: 16px; color: rgba(255,255,255,0.45); letter-spacing: -0.01em; line-height: 1.45; }
.m-seg { position: relative; display: inline-flex; padding: 4px; border-radius: var(--radii-pill); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.08); }
.m-seg-ind { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: var(--radii-pill); background: #fff; transition: left 0.35s cubic-bezier(0.4,0,0.2,1), width 0.35s cubic-bezier(0.4,0,0.2,1); }
.m-seg button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer; font: inherit;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; padding: 9px 18px; border-radius: var(--radii-pill);
  color: rgba(255,255,255,0.55); transition: color 0.25s ease; white-space: nowrap;
}
.m-seg button:hover { color: #fff; }
.m-seg button.is-active { color: #000; }
.m-calc-strip { display: grid; grid-template-columns: repeat(3, 1fr) 1.25fr; margin-top: 40px; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,0.03); }
.m-field { display: block; padding: 22px 24px 24px; border-right: 1px solid rgba(255,255,255,0.08); }
.m-field-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.m-field-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); line-height: 1.3; }
.m-field-val { display: block; margin: 10px 0 14px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.m-lock { border: 0; background: none; cursor: pointer; color: #a78bfa; padding: 4px; margin: -4px; display: flex; }
.m-lock svg { width: 13px; height: 13px; }
.m-result { padding: 22px 26px 24px; background: rgba(255,255,255,0.04); display: flex; flex-direction: column; justify-content: center; }
.m-result-num { display: block; margin-top: 8px; font-size: clamp(32px, 3.6vw, 46px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.m-result-sub { display: block; margin-top: 8px; font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.4; }
.m-calc-note { margin-top: 16px; font-size: 12px; color: rgba(255,255,255,0.32); line-height: 1.5; }
.m-range { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; cursor: pointer; display: block; }
.m-range:disabled { cursor: not-allowed; opacity: 0.5; }
.m-range::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, #fff var(--p, 50%), rgba(255,255,255,0.15) var(--p, 50%)); }
.m-range::-moz-range-track { height: 2px; border-radius: 2px; background: rgba(255,255,255,0.15); }
.m-range::-moz-range-progress { height: 2px; border-radius: 2px; background: #fff; }
.m-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(255,255,255,0.1); }
.m-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }

/* a live page or widget, iframed and scaled to fit (sized by minimal.js) */
.m-frame { position: relative; overflow: hidden; }
.m-frame-vp { position: relative; overflow: hidden; margin: 0 auto; }
.m-frame iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: transparent; }
.m-frame--scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.m-frame--scroll::-webkit-scrollbar { display: none; }
.m-panel { border-radius: 16px; background: var(--widget-bg); overflow: hidden; }

/* feature split: headline + detail on one side, one visual on the other.
   Phones stack headline → visual → detail, so the visual sits right under its headline.
   --flip puts the visual on the left on desktop. */
.m-feat { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "head vis" "pts vis"; column-gap: 72px; row-gap: 28px; }
.m-feat--flip { grid-template-areas: "vis head" "vis pts"; }
.m-feat-head { grid-area: head; align-self: end; }
.m-feat-pts { grid-area: pts; align-self: start; }
.m-feat-vis { grid-area: vis; align-self: center; min-width: 0; }

/* short one-line points under a headline */
.m-pts { list-style: none; }
.m-pts li { position: relative; padding: 6px 0 6px 22px; font-size: 17px; line-height: 1.5; color: var(--gray11); letter-spacing: -0.01em; }
.m-pts li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 8px; height: 1.5px; background: var(--gray8); }

/* numbered steps, one line each */
.m-steps { list-style: none; border-top: 1px solid var(--gray5); counter-reset: step; }
.m-steps li { display: grid; grid-template-columns: 40px 1fr; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--gray5); font-size: 17px; line-height: 1.45; color: var(--gray12); letter-spacing: -0.015em; }
.m-steps li::before { counter-increment: step; content: "0" counter(step); font-size: 13px; font-weight: 500; color: var(--gray9); font-variant-numeric: tabular-nums; }

/* static UI mockups: a chat thread and a review card. AI parts are purple, people are gray. */
.m-mock-panel { border-radius: 16px; background: var(--widget-bg); padding: 40px 32px; display: flex; justify-content: center; }
.m-chat, .m-review { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--gray5); border-radius: 16px; box-shadow: 0 10px 32px rgba(15,23,42,0.07); padding: 18px 18px 20px; }
.m-mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--gray4); font-size: 13px; font-weight: 600; color: var(--gray12); letter-spacing: -0.01em; }
.m-mock-head span { font-weight: 400; color: var(--gray9); }
.m-msg { max-width: 84%; margin-top: 10px; font-size: 14.5px; line-height: 1.45; letter-spacing: -0.01em; }
.m-msg p { padding: 10px 14px; border-radius: 14px; }
.m-msg--you p { background: var(--gray3); color: var(--gray12); border-bottom-left-radius: 4px; }
.m-msg--ai { margin-left: auto; }
.m-msg--ai p { background: var(--accent-light); color: #2e2169; border: 1px solid var(--accent-border); border-bottom-right-radius: 4px; }
.m-ai-label { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; font-size: 11.5px; font-weight: 600; color: var(--accent); letter-spacing: 0; }
.m-msg--ai .m-ai-label { justify-content: flex-end; }
.m-ai-label svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }
.m-review-who { display: flex; align-items: center; gap: 10px; }
.m-review-av { width: 34px; height: 34px; border-radius: 50%; background: var(--gray4); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--gray11); }
.m-review-name { font-size: 14px; font-weight: 600; color: var(--gray12); }
.m-review-stars { margin-top: 3px; font-size: 12px; letter-spacing: 1px; color: var(--gray12); }
.m-review-text { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--gray11); letter-spacing: -0.01em; }
.m-review-reply { margin-top: 16px; padding: 12px 14px 14px; border-radius: 12px; background: var(--accent-light); border: 1px solid var(--accent-border); }
.m-review-reply .m-ai-label { justify-content: space-between; margin-bottom: 6px; }
.m-review-reply .m-ai-label em { font-style: normal; font-weight: 500; font-size: 11px; padding: 3px 8px; border-radius: var(--radii-pill); border: 1px solid var(--accent-border); background: #fff; }
.m-review-reply p { font-size: 14.5px; line-height: 1.5; color: #2e2169; letter-spacing: -0.01em; }

/* ─── SEE IT WORKING (showcase.js) ───
   a stage that swaps demos, a list that picks them, a slider that tracks them */
.m-show { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; margin-top: 40px; text-align: left; align-items: start; }
.m-stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: #000; border: 1px solid #111; box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.m-slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
}
.m-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s ease, transform 0.45s ease; }
.m-slide iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: transparent; }
.m-slide--light { background: #f2f6f9; }
.m-stage-hit { position: absolute; inset: 0; z-index: 2; }

/* caption + slider under the stage */
.m-stage-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 18px; }
.m-stage-type { display: block; font-size: 12px; color: var(--gray9); margin-bottom: 4px; }
.m-stage-name { font-size: 22px; font-weight: 700; letter-spacing: -0.035em; color: var(--gray12); }
.m-stage-open { font-size: 14px; font-weight: 600; color: var(--gray12); white-space: nowrap; border-bottom: 1px solid var(--gray6); padding-bottom: 2px; }
.m-stage-open:hover { border-color: var(--gray12); }
.m-slider { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.m-slider-arrow {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--gray6); background: #fff;
  color: var(--gray12); font: inherit; font-size: 14px; cursor: pointer; transition: border-color 0.15s ease;
}
.m-slider-arrow:hover { border-color: var(--gray12); }
.m-slider-track { position: relative; flex: 1; height: 24px; display: flex; cursor: pointer; }
.m-slider-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--gray5); border-radius: 2px; }
.m-slider-seg { flex: 1; border: 0; background: none; cursor: pointer; position: relative; z-index: 1; }
.m-slider-thumb {
  position: absolute; top: 50%; height: 4px; margin-top: -2px; left: 0; border-radius: 4px; background: var(--gray8); overflow: hidden;
  transition: left 0.45s cubic-bezier(0.4,0,0.2,1);
}
.m-slider-thumb i { position: absolute; inset: 0; background: var(--gray12); transform-origin: 0 50%; transform: scaleX(0); }
.m-slider-count { font-size: 12px; font-weight: 500; color: var(--gray9); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }

/* the list: click to show */
.m-wl { position: relative; display: flex; flex-direction: column; border-top: 1px solid var(--gray5); }
.m-wl-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 15px 4px 15px 16px; border: 0; border-bottom: 1px solid var(--gray5); background: none;
  font: inherit; text-align: left; color: var(--gray10); cursor: pointer; transition: color 0.2s ease, padding 0.25s ease;
}
.m-wl-item:hover { color: var(--gray12); }
.m-wl-item.is-active { color: var(--gray12); padding-left: 22px; }
.m-wl-name { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.m-wl-type { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--gray9); }
.m-wl-num { font-size: 12px; color: var(--gray8); font-variant-numeric: tabular-nums; }
.m-wl-item.is-active .m-wl-num { color: var(--gray12); }
.m-wl-ind { position: absolute; left: 0; top: 0; width: 3px; border-radius: 3px; background: var(--gray12); transition: top 0.45s cubic-bezier(0.4,0,0.2,1), height 0.45s cubic-bezier(0.4,0,0.2,1); }
.m-slide .m-frame { position: absolute; inset: 0; }
.m-slide .llw { width: 100%; }
/* AI customer service: the hub and the phone side by side */
.m-slide--duo .m-duo-hub { right: 42%; }
.m-slide--duo .m-duo-phone { left: 52%; top: 6%; bottom: 6%; }
/* one or two lines on what the demo is and what it does */
.m-stage-desc { margin-top: 12px; max-width: 600px; min-height: 3em; font-size: 16px; line-height: 1.5; color: var(--gray10); letter-spacing: -0.01em; }
.m-stage-desc.is-in { animation: m-desc-in 0.45s ease both; }
@keyframes m-desc-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .m-stage-desc.is-in { animation: none; } }
.m-slide--paper { background: #f7f5f0; }
.m-slide--white { background: #fff; }
.m-slide--night { background: #0f0f11; }

/* ─── PHOTO STREAM (photo-stream.js) ───
   "Humans were meant to … not": photos of what people were meant to do scroll on the left,
   the busy work types itself out on the right. The homepage uses the classic photos, about.html uses mine. */
.hf-section { padding: 64px 48px; border-bottom: 1px solid var(--gray4); background: #000; }
.hf-inner { max-width: 1200px; margin: 0 auto; }
.hf-eyebrow {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.45); margin-bottom: 20px;
}
.hf-lead {
  display: flex; gap: 28px; align-items: flex-end; margin-bottom: 32px;
}
.hf-lead-left {
  flex: 1.7; font-size: clamp(26px, 4vw, 48px); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.08; color: #fff;
}
.hf-lead-right {
  flex: 1; font-size: clamp(26px, 4vw, 48px); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.08; color: #7a5af8;
}
.hf-cols { display: flex; gap: 24px; align-items: stretch; }
.hf-stream {
  flex: 1.7; display: flex; gap: 12px; height: 340px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent);
}
.hf-col { flex: 1; overflow: hidden; }
.hf-track { display: flex; flex-direction: column; will-change: transform; }
.hf-col:nth-child(1) .hf-track { animation: hf-rise 72s linear infinite; }
.hf-col:nth-child(2) .hf-track { animation: hf-rise 92s linear infinite; }
@keyframes hf-rise { to { transform: translateY(-50%); } }
.hf-tile {
  position: relative; margin: 0 0 12px; border-radius: 10px;
  overflow: hidden; border: 1px solid rgba(255,255,255,0.12);
  isolation: isolate; container-type: inline-size;
}
.hf-tile img { display: block; width: 100%; height: auto; background: #111; }
.hf-word {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(16px, 15cqmin, 44px); font-weight: 600; font-style: italic;
  letter-spacing: 0.5px; text-transform: lowercase;
  color: #fff; mix-blend-mode: overlay; pointer-events: none; opacity: 0.70;
}
.hf-ticker {
  flex: 1; height: 340px; overflow: hidden; position: relative;
  background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
}
.hf-jargon-panel {
  display: flex; flex-direction: column; justify-content: center;
  height: 100%; padding: 12px 20px; gap: 2px;
}
.hf-t-line {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; color: rgba(255,255,255,0.4); padding: 7px 0;
  letter-spacing: 0.3px; display: flex; gap: 10px; align-items: baseline;
}
.hf-t-flash {
  animation: hf-word-flash 1s ease both;
  font-weight: 500;
}
@keyframes hf-word-flash {
  0%   { color: rgba(255,255,255,0.4); text-shadow: none; }
  30%  { color: #7a5af8; text-shadow: 0 0 12px rgba(122,90,248,0.35); }
  65%  { color: #7a5af8; text-shadow: 0 0 12px rgba(122,90,248,0.35); }
  100% { color: rgba(255,255,255,0.4); text-shadow: none; }
}
.hf-pre { color: rgba(255,255,255,0.2); font-size: 12px; }
.hf-cursor {
  display: inline-block; color: #7a5af8;
  animation: hf-blink 0.75s step-end infinite; margin-left: 1px;
}
@keyframes hf-blink { 50% { opacity: 0; } }
.hf-tagline {
  margin-top: 28px; font-size: 15px; color: rgba(255,255,255,0.6);
  line-height: 1.68; max-width: 580px;
}
.hf-tagline .hf-em { color: #fff; font-weight: 500; }
.hf-section.is-offscreen .hf-track { animation-play-state: paused; }

/* my photos (about.html): one crop size, centered per photo */
.me-section .hf-tile img { aspect-ratio: 4 / 3; object-fit: cover; }

@media (max-width: 768px) {
  .hf-section { padding-left: 24px; padding-right: 24px; }
  .hf-lead { flex-direction: column; gap: 4px; align-items: flex-start; }
  .hf-lead-left, .hf-lead-right { flex: none; }
  .hf-cols { flex-direction: column; }
  .hf-stream { flex: none; height: 250px; }
  .hf-ticker { flex: none; height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-track, .hf-t-flash, .hf-cursor { animation: none; }
}

/* ─── BOOKING ─── */
.cta-band { background: var(--gray12); color: #fff; padding: 56px 48px; }
.book { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.cta-band h2 { font-size: clamp(32px, 6vw, 68px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.06; margin-bottom: 16px; }
.cta-band p { font-size: 15px; color: rgba(255,255,255,0.5); margin-bottom: 36px; line-height: 1.6; }
.cta-band p a { color: rgba(255,255,255,0.8); text-decoration: underline; text-underline-offset: 2px; }
.cta-band .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.book-cal { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 4px 40px rgba(0,0,0,0.3); height: 520px; }
.book-cal-scale { transform: scale(0.65); transform-origin: top left; width: 153.85%; }
.book-cal iframe { width: 100%; border: none; overflow: hidden; display: block; }

/* ─── FOOTER ─── */
footer { background: #fff; border-top: 1px solid var(--gray4); padding: 28px 48px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--gray10); }
.footer-brand { font-size: 14px; font-weight: 600; color: var(--accent); }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--gray12); }

/* ─── IN-BETWEEN (tablet) ─── */
@media (max-width: 1040px) {
  /* the menu gets tight: drop Email Me (it's in the avatar card) and close up the links */
  .nav-links { gap: 22px; }
  .nav-cta > .btn-outline { display: none; }
}
@media (max-width: 960px) {
  .m-split, .m-split--wide { grid-template-columns: 1fr; gap: 40px; }
  .m-feat, .m-feat--flip { grid-template-columns: 1fr; grid-template-areas: "head" "vis" "pts"; row-gap: 32px; }
  .m-feat-pts { margin-top: -8px; }
  .m-split--flip > :first-child { order: 0; }
  .book { grid-template-columns: 1fr; gap: 32px; }
  .book-cal { height: 560px; }
}
@media (max-width: 900px) {
  .m-show { grid-template-columns: 1fr; gap: 32px; }
  .m-wl { display: none; }
  /* the list is gone, so the slider is the control: full-size tap targets */
  .m-stage-open { display: inline-flex; align-items: flex-end; min-height: 44px; padding: 0 0 2px; }
  .m-slider-arrow { width: 44px; height: 44px; }
  .m-slider-track { height: 44px; }
  .m-proof-grid, .m-proof-grid--2 { grid-template-columns: 1fr; gap: 56px; }
  .m-calc-strip { grid-template-columns: 1fr; }
  .m-field { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 16px 20px 14px; }
  .m-field-val { margin: 6px 0 4px; font-size: 20px; }
  .m-result { padding: 20px 20px 22px; }
  /* rows: the gray line drops under the name instead of disappearing */
  .m-row { grid-template-columns: 32px 1fr 28px; gap: 6px 12px; padding: 16px 0; min-height: 56px; }
  .m-row-n { grid-row: 1; }
  .m-row-name { grid-column: 2; }
  .m-row-arrow { grid-column: 3; grid-row: 1; }
  .m-row-line { grid-column: 2; grid-row: 2; text-align: left; }
}

/* ─── PHONE ─── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-inner { padding: 0 16px 0 24px; }
  .nav-cta { gap: 4px; }
  .nav-cta > .btn-outline { display: none; }
  .nav-cta > .btn-dark { font-size: 14px; padding: 0 16px; height: 44px; display: inline-flex; align-items: center; }
  .contact-avatar-wrap { margin-left: 4px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
  .contact-avatar { width: 38px; height: 38px; margin-top: 0; border-width: 2px; }
  .contact-avatar-wrap:hover .contact-avatar, .contact-avatar-wrap:focus-within .contact-avatar { transform: none; }
  .contact-card { top: 54px; left: auto; right: -52px; transform: translateY(-6px); min-width: 250px; }
  .contact-avatar-wrap:hover .contact-card, .contact-avatar-wrap:focus-within .contact-card { transform: none; }
  .contact-row { min-height: 36px; margin-bottom: 0; font-size: 14px; }
  .contact-card .btn { padding: 13px 14px; font-size: 14px; }
  .nav-menu {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 12px;
    border: 0; background: none; cursor: pointer;
  }
  .nav-menu span { display: block; height: 1.5px; background: var(--gray12); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
  nav.is-open .nav-menu span:first-child { transform: translateY(3.25px) rotate(45deg); }
  nav.is-open .nav-menu span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 16px;
    background: #fff; border-bottom: 1px solid var(--gray4); box-shadow: 0 16px 32px rgba(0,0,0,0.06);
    font-size: 20px; font-weight: 600; letter-spacing: -0.03em; color: var(--gray12);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.2s ease; }
  .nav-links a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--gray4); }
  .nav-links a:last-child { border-bottom: 0; }

  .m-hero { padding: 72px 24px 64px; }
  .m-sec, .m-proof, .m-math { padding: 72px 24px; }
  .m-sec--compact { padding-top: 64px; padding-bottom: 64px; }
  .m-proof-grid, .m-proof-grid--2 { gap: 44px; }
  .m-p { font-size: 17px; margin-top: 16px; }
  .m-list { margin-top: 32px; }
  .m-proof-note { margin-top: 40px; }
  .m-pts li, .m-steps li { font-size: 16px; }
  .m-pts li::before { top: 17px; }
  .m-mock-panel { padding: 28px 16px; }
  .m-chat, .m-review { padding: 16px 14px 18px; }
  .m-msg { max-width: 90%; }
  .m-num-label { font-size: 15px; margin-top: 12px; }

  .m-calc-head { gap: 24px; }
  .m-seg { display: flex; width: 100%; }
  .m-seg button { flex: 1 1 auto; min-height: 44px; padding: 0 10px; font-size: 14px; }
  .m-calc-strip { margin-top: 28px; }
  .m-range { height: 44px; }
  .m-range::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -11px; }
  .m-range::-moz-range-thumb { width: 24px; height: 24px; }
  .m-lock { padding: 15px; margin: -15px; }
  .m-lock svg { width: 14px; height: 14px; }
  .m-calc-note { font-size: 13px; }

  .cta-band { padding: 64px 24px; }
  .cta-band p { margin-bottom: 28px; }
  .cta-band .btns .btn { min-height: 48px; display: inline-flex; align-items: center; }
  .cta-band .btns .btn-white { display: none; } /* the calendar sits right below it on phones */
  .book-cal { height: auto; }
  .book-cal-scale { transform: none; width: 100%; }
  .book-cal iframe { min-height: 580px; }

  footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 14px; }
  .footer-links { gap: 20px; flex-wrap: wrap; }
  .footer-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .footer-inner > div > a { display: inline-flex; align-items: center; min-height: 44px; }
  .brand, .footer-brand { display: inline-flex; align-items: center; min-height: 44px; }
  .m-link { display: inline-flex; align-items: flex-end; min-height: 44px; padding-top: 0; }
  .btn-lg { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; }
}

/* showcase on phones (700px, where gw.frame switches to the phone crops): a taller stage,
   and each demo shows its phone layout or a crop you can read */
@media (max-width: 700px) {
  .m-stage { aspect-ratio: 6 / 7; }
  .m-stage-name { font-size: 20px; }
  .m-slide--duo .m-duo-hub { display: none; }
  .m-slide--duo .m-duo-phone { left: 0; top: 0; bottom: 0; }
  .m-stage-desc { font-size: 15px; min-height: 6em; margin-top: 10px; }
}
