/* InStudy — brand layer (V3). Source of truth: site repo. Copy verbatim into the report (dist/instudy-brand.css). */
:root {
  --ink: #0d0f12; --ink-2: #16191e; --marble: #f1f0ec; --stone: #e4e3de;
  --muted: #5f636a; --muted-dark: #8a8f96;
  --accent: #3c5470; --accent-ink: #2c3f55; --accent-light: #8fa9c4;
  --line: rgba(13,15,18,.14); --line-dark: rgba(255,255,255,.1);
  --display: "Newsreader", Georgia, serif;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 16px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--marble); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-synthesis-weight: none; }
h1, h2, h3 { font-family: var(--sans); font-weight: 500; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.accent { font-family: var(--display); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent); }
.accent-light { font-family: var(--display); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent-light); }
.eyebrow { font: 400 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 800px) { .wrap { padding: 0 32px; } }

.btn { display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1 var(--sans); padding: 16px 22px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; transition: background .15s; }
.btn-primary { background: var(--ink); color: var(--marble); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost-dark { background: transparent; color: var(--marble); box-shadow: inset 0 0 0 1.5px var(--marble); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 4px; }
/* Dark surfaces: use the light accent for the focus ring */
.manifesto, .cases, .about, .brand-footer, .tile, .cs-cta, .footer-bar, .page-cta, .dark { --focus: var(--accent-light); }

.brand-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 16px; }
@media (min-width: 800px) { .brand-header { padding: 22px 32px; } }
.brand-logo { font: 500 21px/1 var(--sans); letter-spacing: -.02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand-logo i { font: italic 400 24px/1 var(--display); letter-spacing: 0; }
.brand-logo .by { font: 400 13px/1 var(--sans); letter-spacing: 0; color: var(--muted); margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); vertical-align: 3px; }
@media (max-width: 480px) { .brand-logo .by { display: none; } }
.brand-nav { display: none; gap: 32px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.brand-nav a { text-decoration: none; }
.brand-nav a:hover { color: var(--accent); }
@media (min-width: 800px) { .brand-nav { display: flex; } }
.brand-cta { font: 500 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.brand-cta:hover { color: var(--accent); }

.brand-footer { background: var(--ink); color: var(--marble); padding: 48px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; }
@media (min-width: 800px) { .brand-footer { padding: 56px 32px; } }
.brand-footer .brand-logo { color: var(--marble); }
.brand-footer small { font: 400 12px/1.6 var(--mono); color: var(--muted-dark); display: block; }
.brand-footer a { color: var(--marble); }

/* Sticky bar: light, appears after the hero so the call is always one click away */
.sticky-bar { position: fixed; top: 12px; left: 50%; z-index: 90; width: min(820px, calc(100% - 24px)); transform: translate(-50%, calc(-100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 7px 7px 7px 20px; border-radius: 999px;
  background: rgba(241,240,236,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(13,15,18,.10); transition: transform .35s ease; }
.sticky-bar.is-on { transform: translate(-50%, 0); }
.sticky-bar .brand-logo { font-size: 17px; }
.sticky-bar .brand-logo i { font-size: 20px; }
.sticky-nav { display: flex; gap: 24px; font-size: 14px; }
.sticky-nav a { text-decoration: none; color: var(--ink); }
.sticky-nav a:hover { color: var(--accent); }
.sticky-bar .btn { padding: 10px 16px; font-size: 14px; }
@media (max-width: 700px) { .sticky-nav { display: none; } }

/* Scroll reading effect (words fill in as you read). Without JS or with reduced motion: fully visible. */
.reveal-on [data-reveal] .w { opacity: .18; transition: opacity .25s linear; }
.reveal-on [data-reveal] .w.lit { opacity: 1; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
