/* ShiftCode 2026 */
:root {
  --navy: #0f2d4d;
  --navy-2: #1a4675;
  --blue: #2d9cdb;
  --accent: #329ac9;
  --accent-dark: #2580ab;
  --blue-soft: #d9edf8;
  --ink: #14202b;
  --muted: #5b6672;
  --paper: #faf9f6;
  --tint: #f1efea;
  --line: #e3e0d9;
  --white: #fff;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 45, 77, .06), 0 8px 24px rgba(15, 45, 77, .06);
  --shadow-lift: 0 2px 4px rgba(15, 45, 77, .06), 0 18px 40px rgba(15, 45, 77, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1190px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 14px 26px; border-radius: 999px; font: 600 1rem/1 var(--sans); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--navy); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.btn-ghost { color: var(--white); border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.text-link { font-weight: 600; color: var(--navy-2); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.text-link:hover { color: var(--accent-dark); }
.hl { color: var(--accent); font-style: normal; }
.section-dark .hl, .cta-band .hl { color: #6cc0e8; }
.btn-accent { background: var(--accent); color: var(--white); box-shadow: 0 8px 22px rgba(50, 154, 201, .35); }
.btn-accent:hover { background: var(--accent-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 45, 77, .97); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { width: 170px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav ul a:hover, .site-nav ul a[aria-current] { color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, .35); color: var(--white); border-radius: 999px; padding: 8px 16px; font: 600 .9rem var(--sans); cursor: pointer; }

/* Hero */
.hero { background: radial-gradient(ellipse at 85% 0%, #1f5d93 0%, rgba(31, 93, 147, 0) 55%), var(--navy); color: var(--white); padding: 110px 0 120px; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-page { padding: 80px 0 84px; }
.hero-page h1 { max-width: 22ch; font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--accent); margin-bottom: 1.4em; }
.eyebrow a { color: inherit; text-decoration: none; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 60ch; color: rgba(255, 255, 255, .85); }
.lede-sub { font-size: 1.02rem; color: rgba(255, 255, 255, .7); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2em; }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: rgba(255, 255, 255, .85); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 1em; }
.section-dark .kicker { color: var(--accent); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.prose { max-width: 68ch; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; }
.prose h2 { margin-top: 1.4em; font-size: 1.8rem; }
.prose-light { max-width: none; }
.center { text-align: center; margin: 0 auto; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar h3 { padding-top: 18px; border-top: 1px solid var(--line); }

/* What AI can't build */
.assets-list { list-style: none; counter-reset: a; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.assets-list li { counter-increment: a; }
.assets-list li::before { content: counter(a, decimal-leading-zero); display: block; font: 500 2.4rem/1 var(--serif); color: var(--accent); opacity: .6; margin-bottom: 14px; }
.assets-list h3 { font-size: 1.15rem; }
.assets-list p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.compare-card ul { list-style: none; padding: 0; margin: 0 0 1.4em; }
.compare-card li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.compare-card p { color: var(--muted); margin: 0; }
.compare-card-dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.compare-card-dark h3 { color: var(--white); }
.compare-card-dark li { border-color: rgba(255, 255, 255, .14); }
.compare-card-dark h3 { color: var(--accent) !important; }
.compare-card-dark p { color: rgba(255, 255, 255, .72); }

/* Cards */
.cards { display: grid; gap: 24px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card p { color: var(--muted); }
.card ul { padding-left: 1.2em; color: var(--muted); }
.card ul li { margin-bottom: .45em; }
.card-link { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--accent); }
.card-link::after { content: " \2192"; }
.inline-list { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.inline-list li { background: var(--tint); color: var(--ink); border-radius: 999px; padding: 5px 12px; font-size: .88rem; margin: 0 !important; }
.meta { font-size: .85rem; color: var(--muted); margin-bottom: .8em; }
.post-card h3 { font-size: 1.45rem; }

/* Quote */
.quote-section { text-align: center; }
.big-quote { margin: 0 0 40px; }
.big-quote p { font: 400 clamp(1.6rem, 3.4vw, 2.5rem)/1.3 var(--serif); font-style: italic; color: var(--ink); }
.big-quote footer { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.big-quote footer img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.big-quote footer strong, .byline strong { display: block; color: var(--ink); }
.big-quote footer span { font-size: .92rem; color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 56px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.stats strong { display: block; font: 500 clamp(2.2rem, 4vw, 3.2rem)/1 var(--serif); color: var(--accent); margin-bottom: 10px; }
.stats span { font-size: .95rem; color: rgba(255, 255, 255, .7); }

/* Steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: s; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--white); font-weight: 600; margin-bottom: 16px; }
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }

/* FAQ: plain, always visible */
.faq-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 1.2rem; margin-bottom: .6em; }
.faq-item p { color: var(--muted); margin-bottom: .6em; }

/* CTA band */
.cta-band { background: var(--navy-2); color: var(--white); padding: 72px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 22ch; }
.cta-band p { color: rgba(255, 255, 255, .8); max-width: 56ch; margin: 0; }
.cta-action { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta-note { font-size: .88rem; color: rgba(255, 255, 255, .7); }

/* Insights */
.post-row { padding: 36px 0; border-bottom: 1px solid var(--line); }
.post-row h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.post-row h2 a { color: var(--ink); text-decoration: none; }
.post-row h2 a:hover { color: var(--accent); }
.post-row p:last-child { color: var(--muted); margin: 0; }
.article-head { background: var(--navy); color: var(--white); padding: 84px 0 64px; }
.article-head h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.2rem); }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 32px; font-size: .92rem; color: rgba(255, 255, 255, .72); }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.byline a { text-decoration: none; }
.byline strong { color: var(--white); }
.article-body { padding-top: 64px; padding-bottom: 80px; font-size: 1.12rem; line-height: 1.75; }
.article-body.prose { max-width: 780px; }
.pull { margin: 2em 0; padding: 0; font: 400 1.7rem/1.35 var(--serif); font-style: italic; color: var(--accent); }
.closing { font: 500 1.35rem/1.45 var(--serif); margin-top: 1.6em; }
.author-box { display: flex; gap: 20px; margin-top: 56px; padding: 28px; background: var(--tint); border-radius: var(--radius); font-size: 1rem; line-height: 1.6; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box p { margin: 0 0 .5em; }

/* About */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.founder { margin: 0; position: sticky; top: 110px; }
.founder img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.founder figcaption { margin-top: 16px; color: var(--muted); }
.founder figcaption strong { display: block; font: 500 1.4rem var(--serif); color: var(--ink); }
.legal h2 { font-size: 1.5rem; }
.legal h3 { font-size: 1.1rem; }

/* Contact */
.btn-dark { background: var(--navy); color: var(--white); border: 0; cursor: pointer; }
.btn-dark:hover { box-shadow: var(--shadow-lift); }
.cta-note a { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-done h2 { font-size: 1.8rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: block; margin-bottom: 22px; }
.field > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--blue-soft); background: var(--white); }
.has-error input, .has-error textarea { border-color: #b3261e; }
.field-error { display: block; color: #b3261e; font-size: .88rem; margin-top: 6px; }
.form-alert { background: #fdecea; color: #8a1c14; border-radius: 12px; padding: 12px 16px; font-size: .95rem; }
.form-note { font-size: .88rem; color: var(--muted); margin: 16px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside { display: grid; gap: 28px; }
.contact-aside .btn { align-self: flex-start; }
.contact-details { padding: 0 8px; color: var(--muted); }
.contact-details address { font-style: normal; margin-bottom: 1em; }

/* Footer */
.site-footer { background: #0a2138; color: rgba(255, 255, 255, .7); padding: 72px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 170px; margin-bottom: 18px; }
.site-footer h3 { font: 600 .8rem var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer address { font-style: normal; }
.footer-small { font-size: .85rem; margin-top: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* Responsive */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 24px 28px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.05rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .split, .compare, .cards-2, .cards-3, .cols-3, .about-grid, .contact-grid, .field-row { grid-template-columns: 1fr; gap: 28px; }
  .field-row { gap: 0; }
  .form-card { padding: 26px; }
  .founder { position: static; max-width: 320px; }
  .section { padding: 68px 0; }
  .hero { padding: 72px 0 80px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .steps, .stats, .footer-grid { grid-template-columns: 1fr; }
  .card, .compare-card { padding: 26px; }
  .brand img { width: 140px; }
  .hero-actions .btn { width: 100%; }
  .author-box { flex-direction: column; }
}
/* ---- Motion ---------------------------------------------------------------- */
/* Everything below only applies when JS has run (html.js) and motion is allowed. */

/* Header: compacts on scroll */
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.header-inner { transition: min-height .3s ease; }
.brand img { transition: width .3s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(5, 20, 40, .25); }
.site-header.scrolled .header-inner { min-height: 62px; }
.site-header.scrolled .brand img { width: 150px; }

/* Hero: living background */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.hero::before { width: 640px; height: 640px; right: -160px; top: -260px; background: radial-gradient(circle, rgba(45, 156, 219, .55), rgba(45, 156, 219, 0) 70%); animation: drift1 18s ease-in-out infinite alternate; }
.hero::after { width: 520px; height: 520px; left: -200px; bottom: -300px; background: radial-gradient(circle, rgba(111, 97, 214, .35), rgba(111, 97, 214, 0) 70%); animation: drift2 22s ease-in-out infinite alternate; }
.hero > .container { position: relative; }
.hero > .container::before { content: ""; position: absolute; inset: -200px; z-index: -1; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 30%), rgba(159, 211, 241, .10), transparent 70%); transition: background .2s; }
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-120px, 80px) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(140px, -60px) scale(1.1); } }

/* Hero entrance */
html.js .hero-inner > *:not(h1), html.js .article-head .container > *:not(h1) { opacity: 0; animation: fadeUp .8s cubic-bezier(.2, .7, .2, 1) forwards; }
html.js .hero-inner > .eyebrow, html.js .article-head .eyebrow { animation-delay: .05s; }
html.js .hero-inner > .lede { animation-delay: .55s; }
html.js .hero-inner > .lede-sub { animation-delay: .7s; }
html.js .hero-inner > .hero-actions, html.js .article-head .byline { animation-delay: .8s; }
html.js .article-head .lede { animation-delay: .5s; }
html.js .hero h1:not(.words-ready), html.js .article-head h1:not(.words-ready) { visibility: hidden; animation: reveal-anyway 0s 1.5s forwards; }
.w { display: inline-block; opacity: 0; transform: translateY(.45em); animation: wordIn .75s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i) * 55ms + 120ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes wordIn { to { opacity: 1; transform: none; } }
@keyframes reveal-anyway { to { visibility: visible; } }

/* Scroll reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.card.rv.in { transition: opacity .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .25s ease, box-shadow .25s ease; }

/* Small touches */
.card-link::after { display: inline-block; transition: transform .25s ease; }
a.card:hover .card-link::after { transform: translateX(5px); }
.btn-light:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.cta-band { background: linear-gradient(120deg, #1a4675, #1f5d93, #173e68, #1a4675); background-size: 300% 300%; animation: bandShift 16s ease infinite; }
@keyframes bandShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.steps li { transition: transform .25s ease, box-shadow .25s ease; }
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.assets-list li::before { transition: opacity .4s ease; }
.assets-list li:hover::before { opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .hero-inner > *, html.js .article-head .container > *, .w, .rv { opacity: 1 !important; transform: none !important; visibility: visible !important; }
}
html.no-motion .hero-inner > *, html.no-motion .article-head .container > *, html.no-motion h1 { opacity: 1 !important; visibility: visible !important; animation: none !important; }

/* Cookie consent (only shown when Google Analytics is switched on) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin-left: auto; background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(10, 30, 60, .25); padding: 18px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 260px; }
.consent div { display: flex; gap: 8px; }
.btn-ghost-dark { background: var(--tint); color: var(--ink); }

/* Admin preview flag + article FAQ */
.draft-flag { display: inline-block; background: #fdf1de; color: #8a5a12; border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; margin-bottom: 1.2em; }
.article-faq { margin-top: 3em; padding-top: 2em; border-top: 1px solid var(--line); }
.article-faq h3 { font-size: 1.15rem; margin-top: 1.4em; }
.article-body h2 { font-size: 1.7rem; margin-top: 1.6em; }
.article-body table { width: 100%; border-collapse: collapse; font-size: .98rem; margin: 1.4em 0; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-body blockquote { margin: 2em 0; padding: 0; font: 400 1.7rem/1.35 var(--serif); font-style: italic; color: var(--accent); }
