/* Shared extras added in the 8005 build (see _CHANGELOG-8005.md). */

/* Smooth page-to-page transitions (supported browsers only; others ignore this). */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Click-to-load video */
.lyt { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
  background-color: #000; background-size: cover; background-position: center; border-radius: var(--radius, 20px); overflow: hidden; }
.lyt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35)); transition: opacity .25s; }
.lyt:hover::after { opacity: .6; }
.lyt-play { position: absolute; z-index: 1; top: 50%; left: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%;
  background: rgba(9,9,11,.62); border: 1.5px solid var(--gold, #ffb81c); backdrop-filter: blur(4px); transition: transform .2s, background .2s; }
.lyt-play::before { content: ""; position: absolute; top: 50%; left: 50%; margin: -11px 0 0 -7px; border-style: solid; border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent var(--gold, #ffb81c); }
.lyt:hover .lyt-play, .lyt:focus-visible .lyt-play { transform: scale(1.08); background: rgba(9,9,11,.8); }
.lyt:focus-visible { outline: 2px solid var(--gold, #ffb81c); outline-offset: 3px; }

/* Previous / next case study */
.case-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1240px; margin: 56px auto 0; padding: 0 24px; position: relative; }
.cn-card { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border: 1px solid var(--border, rgba(255,255,255,.09)); border-radius: 18px;
  background: var(--surface, rgba(255,255,255,.025)); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
@media (hover:hover) { .cn-card:hover { border-color: var(--gold, #ffb81c); transform: translateY(-2px); } }
.cn-next { text-align: right; align-items: flex-end; }
.cn-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold, #ffb81c); }
.cn-title { font-family: var(--serif, 'Fraunces', Georgia, serif); font-size: 1.12rem; line-height: 1.3; color: var(--text-primary, #ececec); }
.cn-by { font-size: .8rem; color: var(--text-muted, rgba(236,236,236,.5)); }
.cn-all { grid-column: 1 / -1; text-align: center; font-size: .84rem; font-weight: 600; color: var(--text-secondary, rgba(236,236,236,.6)); padding: 6px; text-decoration: none; }
.cn-all:hover { color: var(--gold, #ffb81c); }
@media (max-width: 640px) { .case-next { grid-template-columns: 1fr; margin-top: 40px; } .cn-next { text-align: left; align-items: flex-start; } }

/* Case-study search and filters (index page) */
.cs-tools { max-width: 1240px; margin: 0 auto 26px; display: grid; gap: 14px; }
.cs-search { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--border, rgba(var(--ink-rgb,255,255,255),.16)); border-radius: 15px; background: var(--surface, rgba(var(--ink-rgb,255,255,255),.05)); }
.cs-search:focus-within { border-color: var(--gold, #ffb81c); }
.cs-search svg { width: 18px; height: 18px; flex: none; opacity: .55; }
.cs-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text-primary, var(--text, #ececec)); font: inherit; font-size: 1rem; }
.cs-search input::placeholder { color: var(--text-muted, rgba(var(--text-tint-rgb,236,236,236),.55)); }
.cs-count { font-size: .78rem; color: var(--text-muted, rgba(var(--text-tint-rgb,236,236,236),.6)); white-space: nowrap; }
.cs-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cs-row-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--text-muted, rgba(var(--text-tint-rgb,236,236,236),.6)); margin-right: 4px; min-width: 62px; }
.cs-chip { font: inherit; font-size: .8rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-accent, rgba(var(--ink-rgb,255,255,255),.22)); background: transparent; color: var(--text-secondary, rgba(var(--text-tint-rgb,236,236,236),.75)); cursor: pointer; transition: all .18s; }
.cs-chip:hover { border-color: var(--gold, #ffb81c); color: var(--gold, #ffb81c); }
.cs-chip[aria-pressed="true"] { background: rgba(255,184,28,.14); border-color: var(--gold, #ffb81c); color: var(--gold, #ffb81c); }
.cs-empty { display: none; text-align: center; padding: 40px 12px; color: var(--text-secondary, rgba(var(--text-tint-rgb,236,236,236),.75)); }
.wall-card.cs-hide { display: none !important; }

/* Tool / issuer logos inside certificate badges */
.cert-badge img { width: 18px; height: 18px; display: block; object-fit: contain; }
.stack-icon img { object-fit: contain; }

/* ===================================================================
   MOBILE FIXES 2026-10-09  (tracked in _CHANGELOG-8005)
   =================================================================== */

/* --- Scroll lock while the menu drawer or a certificate preview is open --- */
html:has(.nav-drawer.open), html:has(.cert-lightbox.is-open), html:has(.cert-overlay.open) { overflow: hidden; }

/* --- Touch devices: no blur-in on reveal --- */
@media (hover: none) { .js-reveal { filter: none !important; } }

/* --- Bigger tap targets (hit area only; looks stay the same) --- */
@media (max-width: 980px) {
  .menu-toggle { width: 44px !important; height: 44px !important; }
  .theme-toggle { min-width: 44px; min-height: 44px; }
  .nav .brand, .nav-logo, header .brand { display: inline-flex; align-items: center; min-height: 44px; padding-right: 8px; }
  .nav-drawer-sub a { padding: 14px 8px 14px 22px; }
  .nav-drawer-sub.open { max-height: 520px; }
  .snap-toggle, .rh-dots button { position: relative; }
  .snap-toggle::after, .rh-dots button::after { content: ""; position: absolute; inset: -14px -8px; }
}
@media (max-width: 700px) { .nav-drawer-panel { width: calc(100% - 56px) !important; } }
@media (max-width: 620px) {
  footer a { display: inline-block; padding-top: 9px; padding-bottom: 9px; }
  .footer-bottom-links a, .foot-links a { margin-right: 14px; }
  .cn-all { padding: 14px; font-size: .9rem; color: var(--text-primary, #ececec); }
  .rh-pp { min-height: 44px; padding: 10px 12px; }
  .read-more-link, .case-read-more { display: inline-block; padding: 10px 0; }
}

/* --- Small text: nothing under 12px on a phone --- */
@media (max-width: 620px) {
  .snap-label, .hero-tag, .hero-traits-label, .stack-abbr, .cn-label, .footer-col-title, .example-card-tag, .work-card-tag,
  .cta-eyebrow, .hf-group, .hf-pill, .section-pill, .eyebrow, .tag, .wall-card-tag, .snap-toggle { font-size: 12px !important; }
}

/* --- Case-study pages: spacing, hero size, certificate preview --- */
@media (max-width: 1024px) {
  .case-body > .main-content, .case-body > main { padding-top: 36px; }
  .page { padding-bottom: 36px; }
  .case-next { margin-top: 24px; }
  .site-footer { margin-top: 36px; }
}
@media (max-width: 480px) { .hero-title { font-size: clamp(26px, 7.6vw, 34px) !important; line-height: 1.12; } }
@media (max-width: 700px) {
  .cert-lightbox { padding: 12px; }
  .cert-lightbox-inner { max-width: 100%; }
  .cert-lightbox-close { top: 8px !important; right: 8px !important; width: 44px !important; height: 44px !important; font-size: 1.4rem; }
  .cert-lightbox img { width: 100%; max-height: 82vh; object-fit: contain; background: #fff; }
}
@media (hover: none) { .cert-lightbox-inner::after { content: "Pinch to zoom"; display: block; text-align: center; margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.6); } }

/* --- Card strips (services, service pages, help pages): swipeable on touch, soft edges --- */
@media (hover: none), (max-width: 900px) {
  .example-scroll { overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
  .example-scroll::-webkit-scrollbar { display: none; }
  .example-track { animation: none !important; }
  .example-card { scroll-snap-align: start; }
  .example-fade { display: none; }
}
.example-card-media img[src^="certs/"] { object-fit: contain; background: #151518; }
.example-card-foot { flex-wrap: wrap; gap: 6px 12px; }
.btn-ghost[href^="service-"] { text-wrap: balance; }

/* --- Finder panel ("Show me how Edd can help me"): rows stack on a phone --- */
@media (max-width: 640px) {
  .hf .hf-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hf .hf-row-m { flex: none; width: 100%; }
  .hf .hf-proof { flex-wrap: wrap; width: 100%; margin-top: 0; }
  .hf .hf-pill { white-space: normal; max-width: 100%; }
  .hf .hf-filters { gap: 8px; }
  section .hf { margin-top: 12px; }
  .hf .hf-cap { margin-bottom: 10px; }
}

/* --- Homepage --- */
@media (max-width: 820px) {
  .cta-solo .cta-pane { grid-template-columns: 1fr; }
  .cta-solo .cta-pane-img { height: auto; aspect-ratio: 16 / 10; object-position: 50% 22%; border-bottom: 1px solid var(--border); }
}
@media (max-width: 620px) {
  .process-grid { grid-template-columns: 1fr !important; }
  .step { padding: 24px !important; }
  main > section:not(#about-me) { padding-top: 46px; padding-bottom: 46px; }
  #about-me { padding-bottom: 36px; }
  #rotHero.hero-intro { padding: 36px 0 4px; }
  #rotHero .rh-ctrl { margin-top: 18px; }
  .hero { padding-top: 18px !important; padding-bottom: 26px !important; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 300px; margin-left: auto; margin-right: auto; }
  .hero-actions .btn { justify-content: center; }
  .hero-stats { margin-top: 30px; gap: 20px; }
  .proof-video-copy .cta-pane-actions { flex-wrap: nowrap; gap: 8px; width: 100%; align-self: stretch; }
  .proof-video-copy .cta-pane-actions .btn { flex: 1 1 0; min-width: 0; padding: 13px 8px; font-size: .78rem; justify-content: center; white-space: nowrap; gap: 4px; }
  .skills-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 28px; }
  .skills-tabs .skill-tab { text-align: center; padding: 12px 8px; font-size: .82rem; line-height: 1.25; }
  .skills-tabs .skill-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cert-timeline { position: relative; gap: 0 !important; padding-left: 28px; margin: 28px 0 36px; }
  .cert-timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--border-accent); }
  .cert-timeline .cert-timeline-point { position: relative !important; left: auto !important; transform: none !important; width: auto !important; text-align: left; padding: 12px 0; display: grid !important; grid-template-columns: 56px 1fr; column-gap: 12px; align-items: baseline; }
  .cert-timeline-point .dot { position: absolute; left: -28px; top: 20px; }
  .cert-timeline-point .year { min-width: 56px; }
  .cert-timeline-point .what { margin-top: 0 !important; font-size: .82rem; }
}

/* --- Certifications page --- */
@media (max-width: 620px) {
  .stat-row { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .stat-row .stat-card:last-child { grid-column: 1 / -1; }
  .stat-card { padding: 18px 12px; }
  .understand-btn { font-size: 10.5px !important; padding: 7px 8px 7px 9px !important; white-space: nowrap; letter-spacing: 0; gap: 4px; }
  .cert-grid > :only-child { grid-column: 1 / -1; }
  .cert-modal { padding: 54px 18px 22px !important; border-radius: 18px; max-height: 94vh; }
  .cert-modal-close { top: 8px !important; right: 8px !important; width: 44px !important; height: 44px !important; }
  .cert-modal-head { padding-right: 0 !important; margin-bottom: 14px; }
  .cert-modal-thumb { width: 100% !important; max-width: none !important; }
}

/* --- Index: filters and search stay tidy on a phone --- */
@media (max-width: 620px) {
  .cs-tools { gap: 10px; }
  .cs-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .cs-row::-webkit-scrollbar { display: none; }
  .cs-row-label { min-width: 0; flex: none; }
  .cs-chip { flex: none; white-space: nowrap; min-height: 40px; }
}

/* Theme row inside the menu drawer */
.nav-drawer-theme { display: flex; align-items: center; width: 100%; min-height: 62px; padding: 12px 8px; margin-top: 4px; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.1);
  color: rgba(240,237,232,.72); font: inherit; font-size: 1rem; text-align: left; cursor: pointer; }
.nav-drawer-theme:hover { color: #ffb81c; }

/* --- Homepage: tighter gap before the finder bar; "client proof" label on two lines --- */
@media (max-width: 620px) {
  #about-me { padding-bottom: 6px; }
  main > section:has(.hf) { padding-top: 6px; padding-bottom: 30px; }
  .marquee-label { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 12px; font-size: 12px; }
  .marquee-label span:last-child { opacity: .7; }
}
@media (max-width: 620px) { .understand-btn { color: rgba(236,236,236,.88); border-color: rgba(255,255,255,.28); } }

/* Index: "show more" button on phones */
.cs-more { display: block; width: 100%; margin: 20px 0 0; padding: 16px; border-radius: 14px; border: 1px solid var(--gold, #ffb81c); background: rgba(255,184,28,.1);
  color: var(--gold, #ffb81c); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
.cs-more:hover { background: rgba(255,184,28,.18); }

/* Index (own colour tokens): readable logo and filter text in light theme */
.brand { color: var(--text-primary, var(--text, #f0ede8)); }
.cs-search input::placeholder { color: var(--text-muted, rgba(var(--text-tint-rgb,236,236,236),.6)); }
:root[data-theme="light"] .cs-chip[aria-pressed="true"], :root:not([data-theme="dark"]) .cs-chip[aria-pressed="true"] { color: var(--gold); }

/* Homepage certificate timeline: vertical layout up to tablet width (was clipped at 768px) */
@media (max-width: 900px) {
  .cert-timeline { height: auto; position: relative; display: block; padding-left: 28px; margin: 28px 0 36px; }
  .cert-timeline-track { display: none; }
  .cert-timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--border-accent); }
  .cert-timeline .cert-timeline-point { position: relative !important; left: auto !important; transform: none !important; width: auto !important; text-align: left; padding: 12px 0;
    display: grid !important; grid-template-columns: 64px 1fr; column-gap: 12px; align-items: baseline; }
  .cert-timeline-point .dot { position: absolute; left: -28px; top: 20px; }
  .cert-timeline-point .year { margin-top: 0; }
  .cert-timeline-point .what { margin-top: 0 !important; font-size: .85rem; }
}

/* my-approach "Where I actually help" photo: face in frame, caption off the face (phone and tablet) */
@media (max-width: 980px) {
  .services-split-photo { aspect-ratio: 4 / 3; max-width: 520px; }
  .services-split-photo img { transform: translateY(-13%) scale(1.45); transform-origin: 52% 62%; object-position: center 50%; }
  .services-split-caption { left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.82)); }
}

/* Homepage About photo: zoom in on Edd, lift him above the caption (phone and tablet) */
@media (max-width: 980px) {
  .about-photo { aspect-ratio: 4 / 3; }
  .about-photo img { transform: translateY(-20%) scale(1.7); transform-origin: 52% 76%; object-position: center 50%; }
  .about-photo-meta { left: 16px; right: 16px; bottom: 14px; }
}

/* Anchors land below the sticky header */
.service-row, [id^="scroll-"] { scroll-margin-top: 90px; }
@media (max-width: 620px) { .understand-btn { min-height: 40px; } }

/* No colour fades while the theme is being switched (stops a dark flash) */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; animation-duration: 0s !important; }


/* ===== TWEAKS 2026-10-27 (owner feedback round 1) ===== */
/* certificate lightbox for case pages that had none (built by site-extras.js) */
.cert-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 28px; background: rgba(0,0,0,.86); backdrop-filter: blur(8px); }
.cert-lightbox.is-open { display: flex; }
.cert-lightbox-inner { max-width: min(1100px, 94vw); max-height: 90vh; position: relative; }
.cert-lightbox img { display: block; max-width: 100%; max-height: 88vh; width: auto; height: auto; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 80px rgba(0,0,0,.55); background: #111; }
.cert-lightbox-close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,184,28,.45); background: #09090b; color: var(--gold); font-size: 24px; line-height: 1; cursor: pointer; }
@media (max-width: 620px) {
  .cert-lightbox { padding: 64px 12px 24px; }
  .cert-lightbox-close { position: fixed; top: 12px; right: 12px; }
  /* buttons: rounded rectangles instead of pills, on phones */
  .btn, .btn-ghost, .understand-btn { border-radius: 14px !important; }
  /* no category chips over the case-study images on service cards */
  .example-card-tag { display: none !important; }
  /* tighter gaps between service blocks and before the closing call to action */
  .service-row { padding-top: 28px !important; padding-bottom: 28px !important; }
  .service-row:last-child { padding-bottom: 6px !important; }
  section:has(.cta-pane) { padding-top: 20px !important; }
}

/* certification years: reveal in as the block scrolls into view (class added by site-extras.js) */
.js-tl .cert-timeline-point { opacity: 0; translate: 0 14px; transition: opacity .6s ease, translate .6s ease; }
.js-tl .cert-timeline-point .dot { scale: 0; transition: scale .45s cubic-bezier(.34, 1.56, .64, 1); }
.js-tl .cert-timeline.in .cert-timeline-point { opacity: 1; translate: 0 0; }
.js-tl .cert-timeline.in .cert-timeline-point .dot { scale: 1; }
.js-tl .cert-timeline::before { transform-origin: top; scale: 1 0; transition: scale 1.2s ease; }
.js-tl .cert-timeline.in::before { scale: 1 1; }
.js-tl .cert-timeline-track { transform-origin: left; scale: 0 1; transition: scale 1.2s ease; }
.js-tl .cert-timeline.in .cert-timeline-track { scale: 1 1; }
@media (prefers-reduced-motion: reduce) { .js-tl .cert-timeline-point, .js-tl .cert-timeline-point .dot, .js-tl .cert-timeline::before, .js-tl .cert-timeline-track { transition: none !important; } }


/* ===== TWEAKS 2026-10-27 (owner feedback round 2) ===== */
@media (max-width: 620px) {
  /* help bar: label and bar text stay on one line */
  .hf .hf-cap { white-space: nowrap !important; font-size: 10px !important; letter-spacing: .1em !important; }
  .hf .hf-bar { gap: 10px !important; padding-left: 14px !important; padding-right: 14px !important; }
  .hf .hf-bar .hf-txt { white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; font-size: .9rem !important; min-width: 0; }
  /* case study pages: tighter gaps between sections */
  section.section { margin-bottom: 28px !important; }
  .implications-box { padding: 24px 20px !important; }
  /* service cards: calmer Go deeper button */
  .service-row .btn.btn-ghost { min-height: 42px !important; padding: 9px 16px !important; font-size: .86rem !important; width: auto !important; }
}


/* ===== PICKED LOOKS 2026-10-27 (2B menu tiles, 4C arrow squares, 5B footer, 6B gold line, 8A photo) ===== */
/* 4C: arrow tucked in a square (markup added by site-extras.js; plain arrow on wide screens) */
.btn-ar { font-style: normal; }
@media (max-width: 620px) {
  .btn:has(.btn-ar), .btn-ghost:has(.btn-ar), .understand-btn:has(.btn-ar) { justify-content: space-between !important; text-align: left; gap: 12px; }
  .btn-ar { flex: none; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,184,28,.18); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; line-height: 1; }
  .btn:not(.btn-ghost):has(.btn-ar) .btn-ar { background: rgba(26,20,8,.16); color: inherit; }

  /* 2B: menu as big tiles in two columns, theme icon top right */
  .nav-drawer-panel { padding: 20px 16px 24px !important; overflow-y: auto !important; }
  .nav-drawer-head { margin-bottom: 16px !important; gap: 8px; }
  .nav-drawer-head .brand { margin-right: auto; }
  .nav-drawer-links { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
  .nav-drawer-links > a { display: flex !important; align-items: center; justify-content: center; text-align: center; min-height: 58px; padding: 8px !important; border: 1px solid var(--border-accent) !important; border-radius: 14px; font-size: .88rem !important; color: var(--text-secondary) !important; }
  .nav-drawer-links > a.is-here { border-color: var(--gold) !important; background: rgba(255,184,28,.14); color: var(--gold) !important; }
  .nav-drawer-links > .nav-drawer-item { grid-column: 1 / -1; }
  .nav-drawer-row { display: flex !important; gap: 8px; align-items: stretch; }
  .nav-drawer-row .nav-drawer-main { flex: 1; display: flex !important; align-items: center; justify-content: center; min-height: 58px; padding: 8px !important; border: 1px solid var(--border-accent) !important; border-radius: 14px; font-size: .88rem !important; color: var(--text-secondary) !important; }
  .nav-drawer-row .nav-drawer-expand { flex: none; width: 58px; min-height: 58px; border: 1px solid var(--border-accent); border-radius: 14px; background: transparent; }
  .nav-drawer-sub.open { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 8px; }
  .nav-drawer-sub a { padding: 12px 8px !important; border: 1px solid var(--border) !important; border-radius: 12px; font-size: .78rem !important; text-align: center; line-height: 1.25; display: flex !important; align-items: center; justify-content: center; }
  .nav-drawer-links > a.nav-drawer-contact { grid-column: 1 / -1; background: var(--gold) !important; border-color: var(--gold) !important; color: var(--on-gold,#1a1408) !important; font-weight: 600; margin-top: 4px; }
  .nav-drawer-theme { display: inline-flex !important; align-items: center; justify-content: center; width: 44px !important; height: 44px; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 1px solid var(--border-accent) !important; border-radius: 50%; background: transparent; color: var(--gold); width: 44px; }
  .nav-drawer-theme svg { width: 18px; height: 18px; }

  /* 5B: footer pages as chips, services in two columns */
  .footer-top { grid-template-columns: 1fr !important; row-gap: 22px !important; }
  .footer-top > div:nth-child(2) .footer-col-links { flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; }
  .footer-top > div:nth-child(2) .footer-col-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px !important; border: 1px solid var(--border-accent); border-radius: 12px; font-size: .84rem; }
  .footer-top > div:nth-child(n+3) .footer-col-links { display: grid !important; grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 2px !important; }
  .footer-top > div:nth-child(n+3) .footer-col-links a { display: block; padding: 9px 0 !important; }

  /* 6B: thin gold line replaces the floating dot on the homepage */
  .cert-touchpoint, .cert-connector-svg { display: none !important; }
  div:has(> #certCtaBtn) { margin-top: 28px !important; }
  div:has(> #certCtaBtn)::after { content: ""; display: block; width: 44px; height: 2px; border-radius: 2px; background: var(--gold); margin: 26px auto 0; }
  section:has(#expertiseHeading) { padding-top: 28px !important; }

  /* 8A: About photo taller, framed on the face */
  .about-photo { aspect-ratio: 4 / 5 !important; }
  .about-photo img { object-position: 50% 40% !important; transform: scale(1.5); transform-origin: 50% 42%; }
}

/* ===== PICKED LOOKS 2026-10-27 round 5 (1B swipe case-study cards, 2B calm tag line) ===== */
.hero-tags-line, .hero-jump { display: none; }
@media (max-width: 780px) {
  /* 1B: case studies under the certificate swipe sideways, next card peeks, dots show position */
  .cert-gallery-clip { overflow-x: auto !important; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cert-gallery-clip::-webkit-scrollbar { display: none; }
  .cert-gallery-track { transform: none !important; transition: none !important; gap: 12px !important; }
  .cert-gallery-track .case-card { flex: 0 0 86% !important; scroll-snap-align: start; }
  .cert-gallery-track.single .case-card { flex-basis: 100% !important; }
  .cert-gallery-arrow { display: none !important; }
  .cert-gallery-head { padding-right: 0 !important; flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 620px) {
  /* 2B: tag pills hidden, one calm line of text, plus a jump-to-results button */
  .hero-meta .hero-tag { display: none !important; }
  .hero-tags-line { display: block; margin: 0 0 14px; color: var(--gold); font-size: .8rem; font-weight: 600; letter-spacing: .02em; line-height: 1.5; }
  .hero-jump { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 6px; width: 100%; }
}

/* certificate pop-up on phones: fits the width, and scrolls so the case studies are reachable */
@media (max-width: 780px) {
  .cert-overlay { padding: 12px !important; align-items: center; }
  .cert-modal { display: block !important; max-height: calc(100vh - 24px) !important; max-height: calc(100dvh - 24px) !important; overflow-y: auto !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 60px 16px 22px !important; }
  .cert-modal-cols { display: block !important; }
  .cert-modal-left, .cert-modal-right, .cert-modal-head, .cert-modal-section, .cert-gallery-clip, .cert-gallery-track { min-width: 0; max-width: 100%; }
  .cert-modal-right { margin-top: 22px; }
  .cert-modal-head { padding-right: 0 !important; }
  .cert-modal-close { top: 12px !important; right: 12px !important; }
}


/* ===== PICKED ANIMATIONS 2026-10-27 (homepage): slow gold sweep hero, About title/headline/photo ===== */
/* hero: words appear in turn, then a gold light runs across the highlighted words (3x slower; slide time set in homepage.html) */
.rh-anim .rh-slide .w { display: inline-block; opacity: 0; transform: scale(.92); }
.rh-anim .rh-slide.is-active .w { opacity: 1; transform: none; transition: opacity 1.2s ease, transform 1.2s ease; transition-delay: calc(var(--i) * 270ms); }
.rh-anim .rh-slide:not(.is-active) .w { transition: opacity 0s .6s, transform 0s .6s; }
.rh-anim .rh-slide em .w { background: linear-gradient(100deg, var(--gold) 40%, #fff3c4 50%, var(--gold) 60%) 100% 0 / 260% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.rh-anim .rh-slide.is-active em .w { animation: rhSweep 4.2s ease forwards; animation-delay: calc(var(--i) * 270ms + 2700ms); }
@keyframes rhSweep { to { background-position: 0 0; } }
.rh-anim .rh-slide .eyebrow, .rh-anim .rh-slide .rh-sub, .rh-anim .rh-slide .rh-by, .rh-anim .rh-slide .rh-link { opacity: 0; }
.rh-anim .rh-slide.is-active .eyebrow, .rh-anim .rh-slide.is-active .rh-sub, .rh-anim .rh-slide.is-active .rh-by, .rh-anim .rh-slide.is-active .rh-link { opacity: 1; transition: opacity 1.8s ease 2.7s; }
.rh-anim .rh-slide:not(.is-active) .eyebrow, .rh-anim .rh-slide:not(.is-active) .rh-sub, .rh-anim .rh-slide:not(.is-active) .rh-by, .rh-anim .rh-slide:not(.is-active) .rh-link { transition: opacity 0s .6s; }
.rh-anim .rh-slide .rh-link { border-bottom-color: transparent; }
.rh-anim .rh-slide.is-active .rh-link { border-bottom-color: rgba(255,184,28,.4); transition: opacity 1.8s ease 2.7s, border-color 2.7s ease 4.8s; }

/* About: small title wiped in with a line drawing underneath */
#about-me .section-label { width: fit-content; position: relative; }
#about-me.ab-anim .section-label { clip-path: inset(0 100% 0 0); padding-bottom: 8px; margin-bottom: 8px; }
#about-me.ab-anim.ab-go .section-label { animation: abWipe 1.4s cubic-bezier(.6, 0, .2, 1) .4s forwards; }
@keyframes abWipe { to { clip-path: inset(0 0 0 0); } }
#about-me.ab-anim .section-label::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; }
#about-me.ab-anim.ab-go .section-label::before { animation: abLine 1.6s ease forwards; }
@keyframes abLine { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: .35; } }

/* About headline: soft rise, gold underline draws under Edd, green marker swipes behind the phrase */
.ab-anim .about-statement .w { display: inline-block; opacity: 0; transform: translateY(10px); }
.ab-anim.ab-go .about-statement .w { opacity: 1; transform: none; transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 170ms); }
.ab-anim .about-statement .hl-gold .w { position: relative; }
.ab-anim .about-statement .hl-gold .w::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.ab-anim.ab-go .about-statement .hl-gold .w::after { animation: abUnder 1.2s ease 2.6s forwards; }
@keyframes abUnder { to { transform: scaleX(1); } }
.ab-anim .about-statement .hl-mark { background-image: linear-gradient(var(--green-border), var(--green-border)); background-repeat: no-repeat; background-position: 0 88%; background-size: 0% 42%; }
.ab-anim.ab-go .about-statement .hl-mark { animation: abMark 1.6s ease 3.4s forwards; }
@keyframes abMark { to { background-size: 100% 42%; } }

/* About photo: starts wide on the room, glides in to the face, caption fades in after */
.about-photo.ab-pre img { transform: scale(1); transform-origin: 50% 42%; }
.ab-anim.ab-go .about-photo img { animation: abGlide 3.6s cubic-bezier(.5, 0, .2, 1) forwards; }
@keyframes abGlide { to { transform: scale(var(--abz, 1.1)); } }
@media (max-width: 620px) { #about-me { --abz: 1.5; } }
.ab-anim .about-photo-meta { opacity: 0; }
.ab-anim.ab-go .about-photo-meta { opacity: 1; transition: opacity 1s ease 3.4s; }
/* About headline: the green phrase box stays hidden until the marker swipe, so no empty boxes show early */
.ab-anim .about-statement .hl-mark { border-color: transparent; background-color: transparent; }
.ab-anim.ab-go .about-statement .hl-mark { border-color: var(--green-border); background-color: var(--green-bg); transition: border-color 1s ease 3.4s, background-color 1s ease 3.4s; }


/* ===== ONCE-PER-LOAD TESTIMONIAL (homepage #rotHero[data-once]): plays, disappears, About Me becomes the top part ===== */
.nw { white-space: nowrap; }
#rotHero[data-once] .rh-ctrl { display: none; }
#rotHero[data-once] .hero-center { max-width: 1100px; }
#rotHero[data-once] .rh-quote { max-width: min(1100px, 92vw); text-wrap: balance; }
#rotHero[data-once].rh-js:not(.rh-anim):not(.rh-static) .rh-slide.is-active { visibility: hidden; }
/* hold everything back until play starts */
#rotHero[data-once].rh-anim .rh-slide.is-active .w { opacity: 0; transform: scale(.92); transition: none; }
#rotHero[data-once].rh-anim .rh-slide.is-active em .w { animation: none; }
#rotHero[data-once].rh-anim .rh-slide.is-active .eyebrow, #rotHero[data-once].rh-anim .rh-slide.is-active .rh-by, #rotHero[data-once].rh-anim .rh-slide.is-active .rh-link { opacity: 0; transition: none; }
/* play */
#rotHero[data-once].rh-anim.rh-play .rh-slide.is-active .w { opacity: 1; transform: none; transition: opacity 1s ease, transform 1s ease; transition-delay: calc(var(--i) * 200ms); }
#rotHero[data-once].rh-anim.rh-play .rh-slide.is-active em .w { animation: rhSweep 2.6s ease forwards; animation-delay: calc(var(--i) * 200ms + 1.8s); }
#rotHero[data-once].rh-anim.rh-play .rh-slide.is-active .eyebrow, #rotHero[data-once].rh-anim.rh-play .rh-slide.is-active .rh-by, #rotHero[data-once].rh-anim.rh-play .rh-slide.is-active .rh-link { opacity: 1; transition: opacity 1.2s ease 1.6s; }
/* then the whole section collapses and the page rises */
#rotHero.rh-collapse { max-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; opacity: 0; overflow: hidden; transition: max-height 1.2s cubic-bezier(.65, 0, .25, 1), padding 1.2s cubic-bezier(.65, 0, .25, 1), opacity .7s ease; }
#rotHero.rh-gone { display: none; }

/* testimonial start-up flash fix: other slides never show; the active one stays hidden until its words are ready */
#rotHero[data-once] .rh-slide:not(.is-active) { visibility: hidden !important; opacity: 0 !important; transition: none !important; }
#rotHero[data-once]:not(.rh-anim):not(.rh-static) .rh-slide.is-active { visibility: hidden; }


/* ===== SITE-WIDE SECTION RHYTHM 2026-10-28 (padding capped by site-extras.js; margins inside sections capped here) ===== */
.section-head { margin-bottom: 34px !important; }
.hero-head { margin-bottom: 34px !important; }
@media (max-width: 620px) { .section-head, .hero-head { margin-bottom: 22px !important; } }
/* homepage: the buttons + stats block sits tight under About Me with no empty band below it */
#about-me { padding-bottom: 16px !important; }
#about-me + section.hero { padding-top: 0 !important; padding-bottom: 0 !important; }
@media (max-width: 620px) { #about-me { padding-bottom: 8px !important; } }

/* theme switch icon in the menu drawer: same small round icon at every screen width (was only sized on phones) */
.nav-drawer-head .brand { margin-right: auto; }
.nav-drawer-head .nav-drawer-theme { display: inline-flex !important; align-items: center; justify-content: center; flex: none; width: 44px !important; height: 44px; min-height: 0 !important; padding: 0 !important; margin: 0 8px 0 0 !important; border: 1px solid var(--border-accent, rgba(255,255,255,.18)) !important; border-radius: 50%; background: transparent !important; color: var(--gold, #ffb81c); }
.nav-drawer-head .nav-drawer-theme svg { width: 18px; height: 18px; flex: none; }

/* certifications: search bar and situation finder share one width and an even rhythm */
.cert-search-wrap > *, .hf[data-hf-kind="certifications"] { max-width: 960px; margin-left: auto; margin-right: auto; }
.cert-search-wrap { margin-top: 8px !important; margin-bottom: 26px !important; }
.cert-search-wrap label { margin-bottom: 10px !important; }
.cert-search-note:empty { display: none; }
.cert-search-note { margin-top: 10px !important; margin-bottom: 0 !important; min-height: 0 !important; }
.hf[data-hf-kind="certifications"] { margin-bottom: 32px; }
.hf[data-hf-kind="certifications"] .hf-cap { margin-bottom: 10px; }
@media (max-width: 620px) {
  .cert-search-wrap label { font-size: .72rem !important; letter-spacing: .06em !important; white-space: nowrap; }
  .cert-search-wrap { margin-bottom: 22px !important; }
  .hf[data-hf-kind="certifications"] { margin-bottom: 24px; }
}
.cert-search-wrap > input { display: block; }

/* ===== ROUND OF FIXES 2026-10-28 (owner phone screenshots) ===== */
.hero-jump { display: none !important; }
.section-head-c { margin-bottom: 34px !important; }
.testimonial-wall-title-block { margin-top: 32px !important; }
@media (max-width: 620px) {
  .section-head-c { margin-bottom: 22px !important; }
  .testimonial-wall-title-block { margin-top: 20px !important; }
  /* menu: Contact sits beside Certifications as a gold tile; no stray line under the Services row */
  .nav-drawer-links > a.nav-drawer-contact { grid-column: auto !important; margin-top: 0 !important; }
  .nav-drawer-item, .nav-drawer-row { border: 0 !important; }
  /* finder bar: phones hide the rotating phrase, so end the sentence with "if..." instead */
  .hf-bar .hf-txt::after { content: " if\2026"; color: var(--hf-gold, #ffb81c); }
}

/* ===== PICKED 2026-10-28: "What I actually do" on phones = compact 01/02/03 cards stacked (round 12, 1D) ===== */
.skill-more { display: none; }
@media (max-width: 620px) {
  .skills-tabs, .skill-info { display: none !important; }
  .skill-panel { display: block !important; animation: none !important; }
  .skill-panel + .skill-panel { margin-top: 12px; }
  .skill-visual { padding: 18px !important; min-height: 0 !important; }
  .skill-visual .big-num { font-size: 2.6rem !important; }
  .skill-visual h4 { font-size: 1.15rem !important; margin-top: 8px !important; }
  .skill-visual p { font-size: .84rem !important; line-height: 1.5; }
  .skill-visual::before { width: 150px; height: 150px; top: -30px; right: -38px; }
  .skill-visual::after { width: 100px; height: 100px; bottom: -42px; right: 14px; }
  .skill-visual .skill-more { display: inline-block; position: relative; z-index: 1; align-self: flex-start; margin-top: 14px; color: var(--gold); font-size: .84rem; font-weight: 600; border-bottom: 1px solid rgba(255,184,28,.4); padding-bottom: 2px; }
}

/* ===== PICKED 2026-10-28 (alts-11): 1A chips scroll sideways, 2D portrait video left, 4C quote card ===== */
.trait-scroll { display: contents; }
.pv-short { display: none; }
@media (max-width: 620px) {
  /* 1A: label on its own line, one row of chips that scrolls sideways with a fade on the right */
  .hero-traits { display: block !important; }
  .hero-traits-label { display: block; margin: 0 0 10px !important; }
  .trait-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .trait-scroll::-webkit-scrollbar { display: none; }
  .trait-scroll .trait-chip { flex: none; white-space: nowrap; }
  /* 2C (round 15): video fills the full height of the left side of the card, flush to its edges, slightly rounded corners */
  .proof-video-row { display: grid !important; grid-template-columns: 50% 1fr !important; gap: 0 !important; align-items: stretch !important; padding: 0 !important; overflow: hidden; }
  .proof-video-embed { order: -1; aspect-ratio: auto !important; min-height: 300px; position: relative; overflow: hidden; background: #000 !important; border-radius: 12px !important; margin: 6px 0 6px 6px; }
  .proof-video-embed .lyt { background-size: 300% auto !important; background-position: center !important; background-repeat: no-repeat !important; background-color: #000 !important; }
  .proof-video-embed iframe { position: absolute !important; left: 50% !important; top: 0; width: 300% !important; height: 100% !important; max-width: none !important; transform: translateX(-50%); }
  .proof-video-embed .lyt-play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .proof-video-copy { text-align: left; align-self: center; padding: 14px 14px 14px 12px; }
  .proof-video-copy h3 { font-size: 1.15rem !important; line-height: 1.25; margin-bottom: 8px !important; }
  .proof-video-copy .pv-long { display: none; }
  .proof-video-copy .pv-short { display: block; font-size: .84rem !important; line-height: 1.5 !important; color: var(--text-secondary); margin: 0; }
  .proof-video-copy .cta-pane-actions { display: grid !important; grid-template-columns: 1fr !important; gap: 8px !important; margin-top: 14px !important; }
  .proof-video-copy .cta-pane-actions .btn { width: 100% !important; flex: none !important; min-height: 42px; padding: 9px 12px !important; font-size: .8rem !important; justify-content: center !important; white-space: nowrap !important; }
}
/* 4C: the quote on the yellow tint becomes a dark card with a gold glow, gold border and a C2 badge (all widths) */
.quote-panel { position: relative; background: radial-gradient(120% 90% at 100% 0, rgba(255,184,28,.28), transparent 60%), #0e0e11 !important; border: 1px solid var(--gold, #ffb81c) !important; box-shadow: 0 0 0 4px rgba(255,184,28,.1), 0 18px 40px rgba(0,0,0,.5); border-radius: 20px; }
.quote-panel::before { content: "C2 ENGLISH"; position: absolute; right: 14px; top: 14px; font-size: .62rem; letter-spacing: .12em; color: var(--on-gold,#1a1408); background: var(--gold, #ffb81c); border-radius: 999px; padding: 5px 10px; font-weight: 700; }
.quote-panel q { color: #f4f1e8 !important; margin-top: 18px; display: block; }
.quote-panel q em { color: var(--gold, #ffb81c); font-style: normal; }
.quote-panel footer { color: var(--gold, #ffb81c) !important; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem !important; }
.quote-panel-note { color: #c9c5bb !important; }

/* recent visitor (seen the testimonial in the last 30 minutes): skip it, About Me is the top part straight away */
html.hero-skip #rotHero { display: none !important; }
#rotHero[data-once] .rh-title { max-width: min(1100px, 92vw); text-wrap: balance; }

/* ===== PICKED 2026-10-28 (round 15, 1A): calm rectangle buttons, 10px corners, plain arrow after the label, quiet outlined secondary - all widths ===== */
.btn, .btn-ghost, .btn-primary, .understand-btn, .tl-btn { border-radius: 10px !important; }
.btn:has(.btn-ar), .btn-ghost:has(.btn-ar), .understand-btn:has(.btn-ar) { justify-content: center !important; text-align: center !important; gap: 8px !important; }
.btn-ar { width: auto !important; height: auto !important; background: transparent !important; border-radius: 0 !important; color: inherit !important; font-size: 1em !important; display: inline !important; }
.btn-ghost { background: transparent; border-color: var(--border-accent); color: var(--text-primary); }

/* menu drawer is always dark: give it its own dark-theme colours so tiles stay readable when the page is in light mode */
.nav-drawer-panel { --text-primary: #ebebeb; --text-secondary: rgba(235,235,235,.78); --text-muted: rgba(235,235,235,.55); --gold: #ffb81c; --border: rgba(255,255,255,.12); --border-accent: rgba(255,255,255,.2); --surface: rgba(255,255,255,.04); }
.nav-drawer-links > a.nav-drawer-contact { color: var(--on-gold,#1a1408) !important; }


/* ===== ACCENT: BRIGHT AMBER (owner pick 1B, alts-16) 2026-10-28 =====
   Dark: #ffb81c on near-black. Light: deep amber #a85800 with white text on filled buttons. Colour values were also
   replaced in the page tokens; --on-gold is the text colour used on top of the accent. */
:root { --on-gold: #1a1408; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --on-gold: #ffffff; } }
:root[data-theme="light"] { --on-gold: #ffffff; }
:root[data-theme="dark"] { --on-gold: #1a1408; }
/* light mode: stronger secondary text so nothing fades on the cream background */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --text-secondary: rgba(32,28,18,.86); --text-muted: rgba(32,28,18,.66); } }
:root[data-theme="light"] { --text-secondary: rgba(32,28,18,.86); --text-muted: rgba(32,28,18,.66); }
/* the dark menu drawer keeps dark-mode text on its gold tile */
.nav-drawer-panel { --on-gold: #1a1408; --gold: #ffb81c; }

/* light mode: buttons that had hard-coded dark-mode text colours */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .understand-btn { color: var(--text-primary) !important; border-color: var(--border-accent) !important; background: rgba(255,255,255,.55); } }
:root[data-theme="light"] .understand-btn { color: var(--text-primary) !important; border-color: var(--border-accent) !important; background: rgba(255,255,255,.55); }


/* the small gold dot that was meant to sit at the end of the certifications connector line: a CSS clash pushed it about 1000px down onto the Selected Work heading, so it is hidden at every width */
.cert-touchpoint { display: none !important; }

/* certifications finder bar: the longer wording ("... is certified to help me if...") may wrap to two lines on phones instead of being cut off */
@media (max-width: 620px) { .hf[data-hf-kind="certifications"] .hf-bar .hf-txt { white-space: normal !important; text-overflow: clip !important; line-height: 1.3; padding: 2px 0; } }


/* Certifications finder bar on phones (owner pick 1E, alts-19): the sentence on top, the rotating phrase in gold underneath, nothing left alone on a line */
@media (max-width: 640px) {
  .hf[data-hf-kind="certifications"] .hf-bar .hf-txt { display: block; white-space: normal !important; font-size: .84rem !important; line-height: 1.3; text-overflow: clip !important; overflow: visible !important; }
  .hf[data-hf-kind="certifications"] .hf-bar .hf-txt::after { content: none !important; }
  .hf[data-hf-kind="certifications"] .hf-bar .hf-cyc { display: block !important; margin: 4px 0 0 !important; padding: 0 !important; border: 0 !important; background: none !important; border-radius: 0 !important; font-size: .8rem !important; min-height: 1.3em; }
  .hf[data-hf-kind="certifications"] .hf-bar .hf-cyc .hf-swap { white-space: nowrap; display: block; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 380px) { .hf[data-hf-kind="certifications"] .hf-bar .hf-txt { font-size: .76rem !important; } .hf[data-hf-kind="certifications"] .hf-bar { gap: 8px !important; padding-left: 12px !important; padding-right: 12px !important; } }

/* Phone video popup (client testimonial) */
.lyt-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92); display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 16px; }
.lyt-modal .lyt-frame { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.lyt-modal iframe { width: 100%; height: 100%; border: 0; display: block; }
.lyt-modal .lyt-x { align-self: stretch; min-height: 48px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font: 600 .95rem var(--sans, sans-serif); cursor: pointer; }
html.lyt-open { overflow: hidden; }

/* Case Studies on phones (pick 1B, 2026-11-20): no slideshow, shorter cards, one Filter button */
.cs-filter-btn { display: none; }
@media (max-width: 620px) {
  .c-slideshow { display: none !important; }
  .wall-card-quote { display: none !important; }
  .cs-filter-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; border-radius: 10px; border: 1px solid var(--border-accent); background: transparent; color: var(--text-primary); font: 600 .86rem var(--sans, sans-serif); cursor: pointer; }
  .cs-tools .cs-search { order: 1; } .cs-tools .cs-filter-btn { order: 2; border: 1px solid rgba(255,184,28,.45) !important; background: transparent !important; } .cs-tools .cs-row { order: 3; }
  .cs-tools .cs-row { display: none; }
  .cs-tools.fopen .cs-row { display: flex; }
  .cs-tools.fopen .cs-filter-btn { border-color: var(--gold, #ffb81c); }
  .testimonial-wall-title-block p { margin-top: 6px; }
}

/* Case Studies on phones, round 2 (2026-11-20): no hero paragraph, no filters, finder under search */
@media (max-width: 620px) {
  .c-hero p { display: none !important; }
  .cs-filter-btn, .cs-tools .cs-row, .cs-tools.fopen .cs-row { display: none !important; }
}

/* Case Studies on phones, round 3 (2026-11-20): vault title removed, its line lives in the hero box */
.hero-phone-line { display: none; }
@media (max-width: 620px) {
  .testimonial-wall-title-block { display: none !important; }
  .c-hero p.hero-phone-line { display: block !important; margin: 14px auto 0 !important; max-width: 30ch; font-size: .95rem !important; line-height: 1.5 !important; color: var(--text-secondary) !important; text-align: center; }
}

/* Case Studies pills on phones (pick 1D, 2026-11-20): one pill cut into three segments, one line */
@media (max-width: 620px) {
  .c-hero .tags { display: flex; flex-wrap: nowrap; gap: 0; width: fit-content; max-width: 100%; margin: 0 auto 20px; border: 1px solid rgba(var(--gold-rgb), .3); border-radius: 999px; overflow: hidden; background: rgba(var(--gold-rgb), .08); }
  .c-hero .tags .tag { white-space: nowrap; flex: none; font-size: 8.5px !important; letter-spacing: .08em; padding: 7px 10px; border: 0; border-radius: 0; background: transparent; }
  .c-hero .tags .tag + .tag { border-left: 1px solid rgba(var(--gold-rgb), .3); }
}
@media (max-width: 340px) { .c-hero .tags { width: 100%; justify-content: center; } .c-hero .tags .tag { padding: 7px 7px; letter-spacing: .04em; } }

/* Floating pill menu on phones (pick 1B, 2026-11-20): small centred pill, logo + menu button */
@media (max-width: 620px) {
  body { padding-top: 72px; }
  body > header, body > nav.nav {
    position: fixed !important; top: 10px; left: 50%; right: auto; bottom: auto; transform: translateX(-50%);
    width: auto !important; max-width: calc(100% - 24px); min-height: 0 !important; margin: 0 !important; padding: 0 !important;
    z-index: 400; border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--text-primary, #f0ede8) 20%, transparent) !important;
    background: color-mix(in srgb, var(--bg) 84%, transparent) !important;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
  }
  body > header .wrap.nav { width: auto !important; margin: 0 !important; min-height: 50px; padding: 0 7px 0 20px; gap: 26px; justify-content: space-between; }
  body > nav.nav { display: flex; align-items: center; gap: 26px; padding: 0 7px 0 20px !important; min-height: 50px !important; }
  body > nav.nav .nav-right { display: flex; align-items: center; gap: 6px; }
  body > header .brand, body > nav.nav .nav-logo { min-height: 0; padding-right: 0; line-height: 1; }
  .menu-toggle { width: 38px; height: 38px; border-radius: 50% !important; }
  body > nav.nav .theme-toggle { display: none !important; }
}

/* Client video on phones (pick 1C, 2026-11-20): gold label, landscape video inset on top and playing in place, then text and buttons */
.pv-label { display: none; }
@media (max-width: 620px) {
  .proof-video-row { grid-template-columns: 1fr !important; grid-auto-flow: row; }
  .pv-label { display: block; order: -2; padding: 14px 16px 0; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold, #ffb81c); }
  .proof-video-embed { order: -1; aspect-ratio: 16 / 9 !important; min-height: 0 !important; margin: 10px 12px 0 !important; border-radius: 12px !important; }
  .proof-video-embed .lyt { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; background-color: #000 !important; }
  .proof-video-embed iframe { position: absolute !important; inset: 0; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; transform: none !important; }
  .proof-video-embed .lyt-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .proof-video-copy { padding: 16px 16px 18px !important; }
  .proof-video-copy h3 { font-size: 1.35rem !important; margin-bottom: 8px !important; }
}

/* ===== INTRO SPLASH (phones, once per visit, 2026-11-20): bullets -> smiley that winks -> the full stop in "Edd." ===== */
html.intro-on { overflow: hidden !important; }
html.intro-on::after { content: ""; position: fixed; inset: 0; z-index: 9998; background: #09090b; animation: eiFailsafe 0s linear 7s forwards; }
@keyframes eiFailsafe { to { visibility: hidden; } }
#eddIntro { position: fixed; inset: 0; z-index: 9999; background: #09090b; color: #f0ede8; transition: opacity .4s ease; touch-action: none; }
#eddIntro.ei-out { opacity: 0; pointer-events: none; }
#eddIntro .ei-stage { --s: .84; position: absolute; left: 50%; top: 50%; width: 390px; max-width: 100%; height: 320px; transform: translate(-50%, -50%) scale(var(--ei-k, 1)); font-family: var(--serif, 'Fraunces', Georgia, serif); --acc: #ffb81c; }
@media (min-width: 621px) { #eddIntro .ei-stage { --ei-k: 1.3; } }
@media (min-width: 1024px) { #eddIntro .ei-stage { --ei-k: 1.6; } }
@media (min-width: 1700px) { #eddIntro .ei-stage { --ei-k: 2; } }
#eddIntro .ei-stage * { box-sizing: border-box; min-width: 0; }
#eddIntro .ei-skip { position: absolute; left: 0; right: 0; bottom: max(28px, env(safe-area-inset-bottom)); text-align: center; font: 600 .6rem var(--sans, 'DM Sans', sans-serif); letter-spacing: .3em; text-transform: uppercase; color: rgba(255,184,28,.55); }
#eddIntro .ei-list { position: absolute; top: 100px; left: 50%; transform: translateX(-50%); display: grid; gap: 22px; }
#eddIntro .ei-ln { display: flex; align-items: center; gap: 16px; }
#eddIntro .ei-bu { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); transform: scale(0); z-index: 3; }
#eddIntro .ei-tx { display: block; white-space: nowrap; text-transform: uppercase; font-size: 1.15rem; font-weight: 500; letter-spacing: .5em; filter: blur(22px); opacity: 0; line-height: 1; }
#eddIntro .ei-fin { position: absolute; left: 0; right: 0; top: 112px; text-align: center; font-size: 3.4rem; font-weight: 600; letter-spacing: .2em; line-height: 1; white-space: nowrap; filter: blur(26px); opacity: 0; transform: scale(1.15); }
#eddIntro .ei-dot { display: inline-block; color: var(--acc); opacity: 0; transform: scale(.4); transform-origin: 50% 80%; }
#eddIntro .ei-face { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd66b, #ffb81c 70%); box-shadow: 0 0 18px rgba(255,184,28,.55); opacity: 0; transform: translate(var(--fx, 0px), var(--fy, 0px)) scale(0); z-index: 6; }
#eddIntro .ei-face i { position: absolute; top: 14px; width: 6px; height: 9px; border-radius: 50%; background: #2b1a00; } #eddIntro .ei-face .ei-e1 { left: 12px; } #eddIntro .ei-face .ei-e2 { left: 26px; }
#eddIntro .ei-face .ei-mo { position: absolute; left: 12px; top: 24px; width: 20px; height: 10px; border-bottom: 3px solid #2b1a00; border-radius: 0 0 20px 20px; }
@keyframes eiBu { to { transform: scale(1); } }
@keyframes eiFoc { to { filter: blur(0); opacity: 1; letter-spacing: .2em; } }
@keyframes eiOut { to { filter: blur(18px); opacity: 0; } }
@keyframes eiTravel { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(.8); opacity: 0; } }
@keyframes eiFin { to { filter: blur(0); opacity: 1; letter-spacing: -.02em; transform: scale(1); } }
@keyframes eiDotNow { to { opacity: 1; transform: scale(1); } }
@keyframes eiFaceIn { 0% { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(.15); } 100% { opacity: 1; transform: translate(var(--fx), var(--fy)) scale(1); } }
@keyframes eiWink { 0%, 100% { transform: scale(1, 1); } 40%, 70% { transform: scale(1.5, .12); } }
@keyframes eiFaceOut { 0% { opacity: 1; transform: translate(var(--fx), var(--fy)) scale(1); } 92% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(.23); } }
#eddIntro .ei-stage.go .ei-ln .ei-bu { animation-name: eiBu, eiTravel; animation-timing-function: ease-out, cubic-bezier(.6, 0, .2, 1); animation-fill-mode: forwards, forwards; animation-duration: calc(var(--s) * .35s), calc(var(--s) * .5s); }
#eddIntro .ei-stage.go .ei-ln:nth-child(1) .ei-bu { animation-delay: calc(var(--s) * .15s), calc(var(--s) * 2s); }
#eddIntro .ei-stage.go .ei-ln:nth-child(2) .ei-bu { animation-delay: calc(var(--s) * .4s), calc(var(--s) * 2s); }
#eddIntro .ei-stage.go .ei-ln:nth-child(3) .ei-bu { animation-delay: calc(var(--s) * .65s), calc(var(--s) * 2s); }
#eddIntro .ei-stage.go .ei-ln .ei-tx { animation-name: eiFoc, eiOut; animation-timing-function: cubic-bezier(.25, .6, .2, 1), ease-in; animation-fill-mode: forwards, forwards; animation-duration: calc(var(--s) * 1s), calc(var(--s) * .5s); }
#eddIntro .ei-stage.go .ei-ln:nth-child(1) .ei-tx { animation-delay: calc(var(--s) * .25s), calc(var(--s) * 2s); }
#eddIntro .ei-stage.go .ei-ln:nth-child(2) .ei-tx { animation-delay: calc(var(--s) * .5s), calc(var(--s) * 2s); }
#eddIntro .ei-stage.go .ei-ln:nth-child(3) .ei-tx { animation-delay: calc(var(--s) * .75s), calc(var(--s) * 2s); }
#eddIntro .ei-stage.go .ei-fin { animation: eiFin calc(var(--s) * 1s) cubic-bezier(.25, .6, .2, 1) calc(var(--s) * 2.3s) forwards; }
#eddIntro .ei-stage.go .ei-face { animation: eiFaceIn calc(var(--s) * .25s) ease-out calc(var(--s) * 2.45s) forwards, eiFaceOut calc(var(--s) * .6s) cubic-bezier(.5, 0, .2, 1) calc(var(--s) * 3.2s) forwards; }
#eddIntro .ei-stage.go .ei-face .ei-e2 { animation: eiWink calc(var(--s) * .4s) ease-in-out calc(var(--s) * 2.8s) both; }
#eddIntro .ei-stage.go .ei-dot { animation: eiDotNow .05s linear calc(var(--s) * 3.78s) forwards; }
@media (prefers-reduced-motion: reduce) { html.intro-on::after, #eddIntro { display: none !important; } html.intro-on { overflow: auto !important; } }

/* Homepage About photo on phones/tablets (pick 1C, 2026-11-20): landscape 4:3, light 12% zoom on Edd, sharp (replaces the portrait 4:5 / 1.5x zoom crop) */
@media (max-width: 980px) {
  .about-photo { aspect-ratio: 4 / 3 !important; }
  .about-photo img { object-position: 56% 30% !important; transform: scale(1.45) !important; transform-origin: 44% 40% !important; }
}

/* Finder rows: the little circles and the "Edd helped N teams" pill always sit on ONE line (2026-11-20) */
@media (max-width: 640px) {
  .hf .hf-proof { flex-wrap: nowrap !important; align-items: center; gap: 10px; width: 100%; }
  .hf .hf-stack { flex: none; }
  .hf .hf-pill { flex: 0 1 auto; min-width: 0; white-space: normal !important; font-size: 11px !important; line-height: 1.25; padding: 5px 10px; }
}
@media (max-width: 400px) { .hf .hf-stack.round i:nth-child(n+4) { display: none; } .hf .hf-stack:not(.round) i:nth-child(n+4) { display: none; } }

/* Floating pill: one size on every page (2026-11-20). Some pages (help-*, service-*) carried their own .nav height / spacing that made the pill ~68px tall instead of 52px. */
@media (max-width: 620px) {
  body > header .nav, body > header .wrap.nav, body > nav.nav { height: 52px !important; min-height: 52px !important; max-height: 52px !important; padding-top: 0 !important; padding-bottom: 0 !important; align-items: center !important; }
  body > header .wrap.nav { padding-left: 20px !important; padding-right: 4px !important; gap: 22px !important; justify-content: space-between; }
  body > nav.nav { padding-left: 20px !important; padding-right: 4px !important; gap: 22px !important; }
  body > header .nav-links, body > nav.nav .nav-links { display: none !important; }
  body > header .theme-toggle, body > nav.nav .theme-toggle { display: none !important; }
  body > header .brand, body > nav.nav .nav-logo { font-size: 1.25rem; line-height: 1; padding: 0; margin: 0; min-height: 0; }
}
/* Floating pill, final sizing: every page 142 x 52 (2026-11-20) */
@media (max-width: 620px) {
  body > header, body > nav.nav { width: 142px !important; min-width: 142px !important; max-width: calc(100% - 24px) !important; height: 52px !important; min-height: 52px !important; max-height: 52px !important; box-sizing: border-box !important; overflow: hidden; }
  body > header .nav, body > header .wrap.nav, body > header .container.nav { width: 100% !important; max-width: none !important; margin: 0 !important; height: 50px !important; min-height: 50px !important; max-height: 50px !important; padding-left: 18px !important; padding-right: 3px !important; gap: 0 !important; justify-content: space-between !important; box-sizing: border-box !important; }
  body > nav.nav { padding-left: 18px !important; padding-right: 3px !important; gap: 0 !important; justify-content: space-between !important; display: flex !important; }
  body > nav.nav .nav-right { display: flex; align-items: center; gap: 0; margin: 0; }
}
@media (max-width: 620px) { body > header, body > nav.nav { top: 10px !important; left: 50% !important; right: auto !important; transform: translateX(-50%) !important; } }
