/* Intellifyr site layer, November 2026.
   Loaded after each page's inline styles and mobile.css.
   1. Readability  2. Header and footer  3. Panel fit and scroll lock
   4. Template variants  5. Reading pages (blog, legal)  */

/* ---------- 1. Readability ---------- */
:root{ --fg-faint:rgba(13,12,11,.66); --fg-soft:rgba(13,12,11,.82); --rule:rgba(13,12,11,.24); }
.eyebrow{ font-size:13.5px; letter-spacing:.06em; color:var(--fg-soft); }
.sub{ font-size:clamp(16px,1.3vw,20px); }
.items small{ font-size:12.5px; letter-spacing:.06em; color:var(--fg-soft); }
.items b{ font-size:clamp(17px,1.35vw,20px); }
.items p{ font-size:clamp(15px,1.08vw,16.5px); line-height:1.5; }
.note{ font-size:13.5px; color:var(--fg-soft); }
.links{ font-size:14px; }
.links a{ display:inline-flex; align-items:center; min-height:44px; padding:0 6px; color:var(--fg-soft); }
.names{ font-size:clamp(14px,1.1vw,16px); }
form.f label{ font-size:13.5px; }
.calc label{ font-size:15px; }
.calc-k{ font-size:12.5px; }
.calc-line{ font-size:15.5px; }
.network-card figcaption{ font-size:14px !important; }
.network-card span{ font-size:12.5px !important; }
.network-controls button{ font-size:14px !important; min-width:44px !important; min-height:44px !important; }

/* ---------- 2. Header and footer ---------- */
.mark img{ height:64px; width:auto; }
.nav a:not(.pill), .nav .dd > button{ font-size:15px; }
.nav .dd > button.is-current{ text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:1px; opacity:1; }
.foot{ font-size:13px; color:var(--fg-soft); gap:0 .2em; flex-wrap:wrap; align-items:center; }
.foot a{ color:inherit; pointer-events:auto; text-underline-offset:.18em; }
.foot .sep{ margin:0 .55em; }

/* ---------- 3. Panel fit and scroll lock ---------- */
/* Desktop: panels stay fixed and snap one per gesture. A panel taller than the
   screen scrolls inside itself first (site script), so nothing is cut off. */
.panel{ overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:none; justify-content:safe center; }
.panel::-webkit-scrollbar{ display:none; }
@media (min-width:721px) and (max-height:760px){
  .panel{ padding-top:max(120px, calc(env(safe-area-inset-top,0px) + 112px)); padding-bottom:max(64px, calc(env(safe-area-inset-bottom,0px) + 52px)); }
  .eyebrow{ margin-bottom:12px; }
  .panel.rich .sub{ margin-top:10px; }
  .items{ margin-top:clamp(14px,2vh,24px); }
  .panel.rich .cta{ margin-top:16px; }
}

/* ---------- 4. Template variants ---------- */
/* Left-aligned opener */
.panel.left{ align-items:flex-start; text-align:left; padding-left:max(clamp(20px,5vw,60px), calc((100vw - 1120px) / 2)); padding-right:max(clamp(20px,5vw,60px), calc((100vw - 1120px) / 2)); }
.panel.left .eyebrow, .panel.left .cta{ justify-content:flex-start; }
.panel.left h1, .panel.left h2.h{ max-width:16ch; }
.panel.left .sub{ max-width:52ch; }

/* Split: words on the left, a list on the right */
@media (min-width:901px){
  .panel.split{ display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); column-gap:clamp(40px,6vw,96px); align-content:safe center; justify-items:start; text-align:left;
    padding-left:max(clamp(20px,5vw,60px), calc((100vw - 1180px) / 2)); padding-right:max(clamp(20px,5vw,60px), calc((100vw - 1180px) / 2)); }
  .panel.split > *{ grid-column:1; }
  .panel.split > .items, .panel.split > .calc, .panel.split > .quote-grid{ grid-column:2; grid-row:1 / span 8; align-self:center; margin-top:0; }
  .panel.split .eyebrow, .panel.split .cta{ justify-content:flex-start; }
  .panel.split h2.h{ max-width:14ch; }
  .panel.split .sub{ max-width:42ch; }
  .panel.split .items{ grid-template-columns:1fr !important; gap:0; max-width:none; }
  .panel.split .items > *{ padding:14px 0 16px; }
  .panel.split .items > *:last-child{ border-bottom:1px solid var(--rule); }
  .panel.split .items small{ margin-bottom:4px; }
}

/* Media: words beside a real screenshot */
.media-shot{ margin:0; width:100%; }
.media-shot img{ display:block; width:auto; max-width:100%; max-height:min(60vh, 620px); height:auto; border-radius:14px; border:1px solid var(--rule); box-shadow:0 18px 50px rgba(13,12,11,.14); }
.media-shot figcaption{ margin-top:10px; font-size:13px; color:var(--fg-soft); }
@media (min-width:901px){
  .panel.media{ display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); column-gap:clamp(40px,5vw,80px); align-content:safe center; justify-items:start; text-align:left;
    padding-left:max(clamp(20px,5vw,60px), calc((100vw - 1220px) / 2)); padding-right:max(clamp(20px,5vw,60px), calc((100vw - 1220px) / 2)); }
  .panel.media > *{ grid-column:1; }
  .panel.media > .media-shot{ grid-column:2; grid-row:1 / span 8; align-self:center; }
  .panel.media .eyebrow, .panel.media .cta{ justify-content:flex-start; }
  .panel.media h2.h{ max-width:13ch; }
  .panel.media .sub{ max-width:40ch; }
}
@media (max-width:900px){ .media-shot{ margin-top:22px; max-width:560px; } }

/* Statement: one large figure beside the words */
.big-figure{ font-size:clamp(96px,16vw,220px); line-height:.85; letter-spacing:-.06em; font-weight:400; margin:0 0 6px; color:var(--fg); }
.big-figure small{ display:block; font-size:clamp(15px,1.3vw,19px); letter-spacing:.06em; text-transform:uppercase; color:var(--fg-soft); margin-top:14px; }
@media (min-width:901px){
  .panel.statement{ display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:clamp(40px,6vw,96px); align-content:safe center; align-items:center; justify-items:start; text-align:left;
    padding-left:max(clamp(20px,5vw,60px), calc((100vw - 1120px) / 2)); padding-right:max(clamp(20px,5vw,60px), calc((100vw - 1120px) / 2)); }
  .panel.statement > *{ grid-column:2; }
  .panel.statement > .big-figure{ grid-column:1; grid-row:1 / span 6; }
  .panel.statement .eyebrow{ justify-content:flex-start; }
  .panel.statement .sub{ max-width:56ch; }
}

/* Quotes */
.quote-grid{ margin-top:clamp(20px,2.6vw,34px); width:100%; max-width:1120px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(18px,2.4vw,34px); text-align:left; }
.quote-grid figure{ margin:0; border-top:1px solid var(--fg); padding-top:16px; }
.quote-grid blockquote{ margin:0; font-size:clamp(18px,1.55vw,23px); line-height:1.35; letter-spacing:-.015em; }
.quote-grid blockquote::before{ content:"\201C"; display:block; font-size:44px; line-height:.6; margin-bottom:6px; color:var(--fg-soft); }
.quote-grid figcaption{ margin-top:14px; font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--fg-soft); }
.quote-grid .placeholder blockquote{ color:#8a2c22; font-size:16px; letter-spacing:0; }
.quote-grid .placeholder{ border-top-style:dashed; border-top-color:#8a2c22; }
@media (max-width:900px){ .quote-grid{ grid-template-columns:1fr; gap:14px; } }

/* Inverse: the closing call to action on a dark card */
.panel.inverse{ --fg:#f2f0ec; --fg-soft:rgba(242,240,236,.84); --fg-faint:rgba(242,240,236,.7); --rule:rgba(242,240,236,.26);
  color:var(--fg); background:#0d0c0b; }
.panel.inverse .pill{ background:#f2f0ec; color:#0d0c0b; -webkit-text-fill-color:#0d0c0b; border-color:#f2f0ec; box-shadow:none; }
.panel.inverse .pill:hover, .panel.inverse .pill:focus-visible{ background:#ffffff; color:#0d0c0b; -webkit-text-fill-color:#0d0c0b; }
.panel.inverse .pill.ghost{ background:transparent; color:#f2f0ec; -webkit-text-fill-color:#f2f0ec; border-color:rgba(242,240,236,.5); }
.panel.inverse .pill.ghost:hover{ background:rgba(242,240,236,.12); }
.panel.inverse .pill:focus-visible{ outline-color:#f2f0ec; }
.panel.inverse .links a{ color:var(--fg-soft); }
.panel.inverse .links a:hover{ color:var(--fg); }
@media (min-width:721px){
  .panel.inverse{ inset:96px clamp(16px,3.4vw,44px) 64px; border-radius:28px; padding:clamp(28px,5vh,56px) clamp(20px,5vw,60px); }
}

/* ---------- Phones: snap one panel at a time, solid header ---------- */
@media (max-width:720px), (max-width:950px) and (max-height:520px) and (orientation:landscape){
  html:has(.panels){ scroll-snap-type:y mandatory; }
  .panel{ scroll-snap-align:start; overflow:visible; justify-content:center; }
  .panels ~ .foot{ scroll-snap-align:end; }
  .foot{ font-size:12.5px; }
  .chrome{ background:var(--shade); border-bottom:1px solid var(--rule); padding-bottom:10px; }
  .mark img{ width:clamp(118px,36vw,150px); height:auto; }
  .items p, .items.dense p{ display:block; font-size:15px; }
  .items small, .items.dense small{ display:block; }
  .items b{ font-size:17px; }
  .eyebrow{ font-size:12.5px; }
  .panel.inverse{ margin:10px 12px; border-radius:22px; min-height:calc(100svh - 20px); }
  .big-figure{ font-size:96px; }
  .media-shot{ order:5; }
  /* the background-motion switch lives in the menu on phones */
  .mobile-menu-links .mobile-video-toggle{ position:static; display:flex; width:100%; min-height:44px; align-items:center; border:0; border-top:1px solid var(--rule); border-radius:0; background:none; padding:0 12px; margin-top:4px; font:inherit; font-size:14px; color:var(--fg-soft); text-align:left; }
}

/* ---------- 5. Reading pages: blog and legal ---------- */
.article-wrap{ padding:max(124px, calc(env(safe-area-inset-top,0px) + 108px)) clamp(20px,5vw,60px) 96px !important; }
article.article, .article-wrap article{ max-width:740px !important; margin:0 auto; background:none !important; border:0 !important; border-radius:0 !important; padding:0 !important; }
.article .meta{ font-size:13.5px !important; letter-spacing:.06em; text-transform:uppercase; color:var(--fg-soft) !important; }
.article h1{ font-weight:400; font-size:clamp(38px,5.4vw,68px) !important; line-height:1 !important; letter-spacing:-.036em !important; text-wrap:balance; margin:16px 0 22px !important; }
.article .lede{ font-size:clamp(19px,1.6vw,23px) !important; line-height:1.45 !important; color:var(--fg-soft) !important; padding-bottom:28px; border-bottom:1px solid var(--rule); margin-bottom:32px !important; }
.article h2{ font-weight:400 !important; font-size:clamp(26px,2.6vw,34px) !important; line-height:1.12 !important; letter-spacing:-.025em !important; margin:44px 0 14px !important; }
.article h3{ font-weight:500 !important; font-size:20px !important; margin:30px 0 10px !important; }
.article p, .article li{ font-size:18px !important; line-height:1.65 !important; color:var(--fg); }
.article p{ margin:0 0 18px; }
.article ul, .article ol{ padding-left:1.2em; margin:0 0 18px; }
.article li{ margin-bottom:8px; }
.article a{ color:var(--fg); text-underline-offset:3px; }
.article hr{ border:0; border-top:1px solid var(--rule); margin:36px 0; }
.article table{ width:100%; border-collapse:collapse; margin:0 0 22px; font-size:16px; }
.article th, .article td{ text-align:left; vertical-align:top; padding:10px 12px 10px 0; border-top:1px solid var(--rule); }
.article .cta-box{ margin-top:48px; padding:32px clamp(22px,4vw,40px); border:0 !important; border-radius:24px; background:#0d0c0b; color:#f2f0ec; }
.article .cta-box p, .article .cta-box .meta{ color:#f2f0ec !important; }
.article .cta-box .cta{ justify-content:flex-start; }
.article .cta-box .pill{ background:#f2f0ec; color:#0d0c0b; -webkit-text-fill-color:#0d0c0b; border-color:#f2f0ec; }
.article .cta-box a:not(.pill){ color:#f2f0ec; }
.post-list li{ padding:24px 0 !important; }
.post-list b{ font-weight:400 !important; font-size:clamp(22px,2.3vw,30px) !important; letter-spacing:-.025em !important; line-height:1.15 !important; }
.post-list p{ font-size:16.5px !important; color:var(--fg-soft) !important; margin:0 !important; }
.post-list .meta{ font-size:12.5px !important; }
.foot.static{ position:relative; }
@media (max-width:720px){
  .article-wrap{ padding-top:max(104px, calc(env(safe-area-inset-top,0px) + 92px)) !important; padding-inline:18px !important; }
  .article p, .article li{ font-size:17px !important; }
}

/* Fixes after preview review */
.article .post-list{ padding-left:0 !important; list-style:none; }
.article .post-list li:first-child{ border-top:0; padding-top:4px !important; }
@media (max-width:720px), (max-width:950px) and (max-height:520px) and (orientation:landscape){
  .panel.inverse{ padding-left:24px; padding-right:24px; }
  .panel.statement .eyebrow{ display:none; }
  .panel.statement .big-figure{ margin-bottom:18px; }
}

/* Keep clear of the taller header: content starts at least 28px below it */
@media (min-width:721px){
  .panel:not(.inverse){ padding-top:max(124px, calc(env(safe-area-inset-top,0px) + 116px)); }
}
@media (max-width:720px), (max-width:950px) and (max-height:520px) and (orientation:landscape){
  .panel:not(.inverse), .panel.network{ padding-top:max(112px, calc(env(safe-area-inset-top,0px) + 100px)); }
}

/* Draft quotes: visible marker until real quotes replace them */
.quote-grid .draft figcaption{ color:var(--fg-soft); }
.draft-note{ color:#8a2c22; }

.nav a.is-current{ text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:1px; opacity:1; }

/* Two-column grids: a lone last item sits centred, not stranded on the left */
@media (min-width:721px) and (max-width:900px){
  .items > :last-child:nth-child(odd){ grid-column:1 / -1; justify-self:center; width:calc(50% - clamp(7px,1vw,14px)); }
}

/* Sub-navigation (desktop): a vertical dropdown under each top-menu item,
   on a slightly see-through off-white panel. Opens on hover and keyboard
   focus, stays open while the pointer moves onto it, closes with Esc. */
@media (min-width:721px){
  .dd{ position:relative; }
  .dd-menu{ position:absolute; top:100%; left:-16px; padding-top:12px; /* hover bridge */
    opacity:0; visibility:hidden; translate:0 -4px; transform:none !important; z-index:39;
    transition:opacity .22s var(--ease), translate .22s var(--ease), visibility .22s; }
  .dd:is(:hover,:focus-within):not(.dd-closed) .dd-menu{ opacity:1; visibility:visible; translate:0 0; }
  .dd.dd-closed .dd-menu{ opacity:0 !important; visibility:hidden !important; }
  .dd-menu > div{ display:flex; flex-direction:column; min-width:220px; padding:6px;
    background:rgba(242,240,236,.5) !important; -webkit-backdrop-filter:blur(2px) !important; backdrop-filter:blur(2px) !important;
    border:1px solid var(--rule) !important; border-radius:12px !important;
    box-shadow:0 10px 30px rgba(13,12,11,.08) !important; }
  .nav .dd-menu a{ display:flex; align-items:center; min-height:40px; padding:0 12px; border-radius:8px; white-space:nowrap;
    font-size:14.5px; font-weight:400; letter-spacing:-.008em; color:var(--fg); opacity:1;
    text-decoration:none !important; background:none; transition:background .2s var(--ease); }
  .nav .dd-menu a:hover{ background:rgba(13,12,11,.07) !important; }
  .nav .dd-menu a[aria-current]{ font-weight:500; }
  .nav .dd-menu a:focus-visible{ outline:2px solid var(--fg); outline-offset:-2px; }
}
@media (min-width:721px) and (prefers-reduced-motion:reduce){
  .dd-menu{ translate:none; transition-duration:.01s; }
}


/* Opening headlines: two lines on desktop, not three */
@media (min-width:721px){
  .panel h1{ max-width:24ch; }
}
@media (min-width:901px){
  .panel.split h2.h{ max-width:19ch; }
  .panel.media h2.h{ max-width:17ch; }
}

/* A long headline set as two fixed lines (About) */
@media (min-width:721px){
  .panel h1.h1-two{ max-width:none; font-size:clamp(34px, min(4.6vw, 8.5vh), 66px); line-height:1.02; }
}

/* About network: same section headline size as every other page */
@media (min-width:721px){
  .panel.network h2.h{ font-size:clamp(28px, min(4.4vw, 7.5vh), 62px) !important; max-width:22ch !important; line-height:1.02; }
}
