/* ============================================================
   Carson Reid — personal site
   Launchpad hero → "what I've built" marquee → who I am.
   Multi-page (index / about / blog). Restrained, hairlines,
   system type, one green accent. No external requests.
   ============================================================ */

:root {
  --bg:#ffffff; --text:#0d0d0d; --muted:#5f5f5f; --faint:#9a9a9a;
  --hairline:#e7e7e7; --card:#ffffff; --btn-bg:#0d0d0d; --btn-text:#ffffff;
  --accent:#059669; --focus:#0d0d0d;
  --maxw:74rem; --gutter:clamp(1.25rem,5vw,4rem); --nav-h:3.75rem;
  --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
:root[data-theme="dark"] {
  --bg:#0a0a0b; --text:#f5f5f5; --muted:#a2a2a2; --faint:#6a6a6a;
  --hairline:#202023; --card:#101012; --btn-bg:#f5f5f5; --btn-text:#0a0a0b;
  --accent:#34d399; --focus:#f5f5f5;
}

* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body {
  margin:0; background:var(--bg); color:var(--text); font-family:var(--sans);
  font-size:1.0625rem; line-height:1.5; -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility; transition:background-color .2s ease,color .2s ease;
}
a { color:inherit; }
:focus-visible { outline:2px solid var(--focus); outline-offset:3px; border-radius:3px; }
img { max-width:100%; }

.skip-link {
  position:absolute; left:-9999px; top:0; background:var(--btn-bg); color:var(--btn-text);
  padding:.6rem 1rem; z-index:40; text-decoration:none; border-radius:0 0 6px 0;
}
.skip-link:focus { left:0; }

/* White silhouette marks (CR, rocket, goat): dark on light, white on dark */
.logo--mono { filter:invert(1); }
:root[data-theme="dark"] .logo--mono { filter:none; }

/* ---------- Navbar ---------- */
/* Transparent, borderless — the words hover over the page. On scroll,
   everything but the logo fades out (see .is-scrolled + script.js). */
.nav {
  position:sticky; top:0; z-index:20;
  background:transparent;
}
.nav__name, .nav__links { transition:opacity .3s ease; }
.nav.is-scrolled .nav__name,
.nav.is-scrolled .nav__links { opacity:0; pointer-events:none; }
.nav__inner {
  max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); height:var(--nav-h);
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
}
.nav__brand { display:inline-flex; align-items:center; gap:.55rem; text-decoration:none; color:var(--text); }
.nav__logo { width:1.7rem; height:1.7rem; object-fit:contain; display:block; }
.nav__name { font-weight:600; font-size:1rem; letter-spacing:-0.01em; }
.nav__links { display:flex; align-items:center; gap:clamp(.75rem,2vw,1.5rem); }
.nav__link {
  text-decoration:none; color:var(--muted); font-size:.95rem; font-weight:500;
  transition:color .15s ease; white-space:nowrap;
}
.nav__link:hover { color:var(--text); }
.nav__link--ext { display:inline-flex; align-items:center; gap:.2rem; }
.ext { color:var(--faint); font-size:.8em; }

/* ---------- Theme toggle (clean, borderless icon) ---------- */
.theme-toggle {
  appearance:none; background:transparent; border:none; padding:.4rem; margin:-.4rem;
  color:var(--faint); cursor:pointer; display:inline-flex; align-items:center; justify-content:center;
  flex:0 0 auto; transition:color .18s ease;
}
.theme-toggle:hover { color:var(--text); }
.theme-toggle svg { width:1.15rem; height:1.15rem; display:block; }
.theme-toggle .icon-sun { display:none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display:none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display:block; }

/* ---------- Avatar ---------- */
.avatar { display:inline-flex; align-items:center; justify-content:center; border-radius:999px;
  overflow:hidden; background:var(--hairline); flex:0 0 auto; width:2.25rem; height:2.25rem; }
.avatar--lg { width:4.5rem; height:4.5rem; }
.avatar img { width:100%; height:100%; object-fit:cover; display:block; }

/* ---------- Shell: quote (sticky left) + feed (right) ---------- */
.shell {
  max-width:var(--maxw); margin:0 auto; padding:clamp(2.5rem,6vw,5rem) var(--gutter) clamp(3rem,7vw,6rem);
  display:grid; grid-template-columns:19rem minmax(0,1fr); gap:clamp(2rem,6vw,5rem); align-items:start;
}
.qcol { position:sticky; top:calc(var(--nav-h) + 1.5rem); align-self:start; display:flex; flex-direction:column; gap:1.75rem; }
.feed { min-width:0; display:flex; flex-direction:column; }

/* Description */
.intro { display:flex; flex-direction:column; gap:1.25rem; }
.intro__text { margin:0; }
.intro__text p { margin:0 0 .85rem; color:var(--muted); font-size:1.0625rem; line-height:1.55; max-width:52ch; }
.intro__text p:first-child { color:var(--text); }
.intro__text p:last-child { margin-bottom:0; }
.intro__text a { color:var(--text); text-decoration:underline; text-underline-offset:2px; text-decoration-color:var(--hairline); }
.intro__text a:hover { text-decoration-color:var(--text); }
.intro__find { display:flex; align-items:center; gap:1rem; }
.intro__find-label { font-family:var(--mono); font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:var(--faint); }
.intro__social { display:flex; gap:.35rem; }
.intro__icon { display:inline-flex; align-items:center; justify-content:center; width:2.25rem; height:2.25rem;
  border-radius:999px; color:var(--muted); transition:color .18s ease, background-color .18s ease; }
.intro__icon svg { width:1.125rem; height:1.125rem; display:block; }
.intro__icon:hover { color:var(--text); background:var(--hairline); }

/* Left identity column extras */
.qcol__bio { margin:0; color:var(--muted); font-size:1rem; line-height:1.55; }
.qcol__bio a { color:var(--text); text-decoration:underline; text-underline-offset:2px; text-decoration-color:var(--hairline); }
.qcol__bio a:hover { text-decoration-color:var(--text); }
.qcol__foot { display:flex; flex-direction:column; gap:1.1rem; }

/* Build (video) section — pitch overlaid on the video */
.build { margin:0; }
.build__stage {
  position:relative; border-radius:18px; overflow:hidden; display:flex; isolation:isolate;
  min-height:clamp(28rem,62vh,40rem); background:#05060a;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--text) 8%,transparent);
}
.build__video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; z-index:0; }
.build__overlay {
  position:relative; z-index:1; margin-top:auto; width:100%; color:#fff;
  display:flex; flex-direction:column; align-items:flex-start;
  padding:clamp(1.5rem,4vw,2.75rem);
  background:linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.55) 52%, rgba(0,0,0,.05));
}
.build__eyebrow {
  display:inline-flex; align-items:center; gap:.5rem; font-family:var(--mono);
  font-size:.75rem; letter-spacing:.06em; text-transform:uppercase; color:rgba(255,255,255,.8); margin-bottom:1rem;
}
.build__eyebrow .logo { width:1.1rem; height:1.1rem; object-fit:contain; }
.build__title { margin:0; font-weight:600; font-size:clamp(2rem,4.2vw,3rem); line-height:1.03; letter-spacing:-0.035em; color:#fff; text-wrap:balance; }
.build__sub { margin:1rem 0 0; color:rgba(255,255,255,.86); font-size:clamp(1rem,1.5vw,1.1875rem); line-height:1.5; max-width:48ch; }
.build__overlay .lp__cta { color:#fff; }
/* Prompt bar reads over the dark video regardless of theme */
.build__overlay .lp__prompt { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.28); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.build__overlay .lp__prompt:hover { border-color:rgba(255,255,255,.55); box-shadow:0 12px 30px -18px rgba(0,0,0,.6); }
.build__overlay .lp__prompt-text { color:rgba(255,255,255,.72); }
.build__overlay .lp__prompt-btn { background:#fff; color:#0d0d0d; }

.lp__prompt {
  display:flex; align-items:center; gap:.75rem; margin-top:1.75rem; padding:.5rem .5rem .5rem 1.25rem;
  border:1px solid var(--hairline); border-radius:999px; background:var(--card); text-decoration:none;
  max-width:30rem; transition:border-color .2s ease, box-shadow .2s ease;
}
.lp__prompt:hover { border-color:color-mix(in srgb,var(--text) 25%,var(--hairline)); box-shadow:0 10px 30px -20px color-mix(in srgb,var(--text) 50%,transparent); }
.lp__prompt-text { flex:1; color:var(--faint); font-size:1rem; }
.lp__prompt-btn {
  display:inline-flex; align-items:center; gap:.35rem; background:var(--btn-bg); color:var(--btn-text);
  font-weight:600; font-size:.95rem; padding:.6rem 1.1rem; border-radius:999px; white-space:nowrap;
}
.lp__cta {
  display:inline-flex; align-items:center; gap:.5rem; margin-top:1.25rem; color:var(--text);
  font-family:var(--mono); font-size:.95rem; text-decoration:none;
}
.lp__cta span { transition:transform .2s ease; }
.lp__cta:hover span { transform:translateX(4px); }

/* ---------- Proof: "See what I've built" ---------- */
.proof { margin-top:clamp(3rem,6vw,4.5rem); padding-top:clamp(2.5rem,5vw,3.5rem); border-top:1px solid var(--hairline); }
.proof__title { margin:0; font-weight:600; font-size:clamp(1.75rem,4vw,2.5rem); letter-spacing:-0.03em; }
.proof__sub { margin:.5rem 0 1.75rem; color:var(--muted); }

.marquee { overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); }
.marquee__track {
  display:flex; align-items:stretch; gap:1rem; width:max-content; padding:.5rem 0;
  margin:0; list-style:none; animation:marquee 42s linear infinite;
}
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state:paused; }
@keyframes marquee { to { transform:translateX(-50%); } }
.marquee li { display:flex; }
.brand {
  display:inline-flex; align-items:center; gap:.7rem; padding:.85rem 1.35rem; border:1px solid var(--hairline);
  border-radius:14px; background:var(--card); text-decoration:none; color:var(--text); white-space:nowrap;
  transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.brand:hover { border-color:color-mix(in srgb,var(--text) 22%,var(--hairline)); transform:translateY(-2px);
  box-shadow:0 12px 28px -18px color-mix(in srgb,var(--text) 45%,transparent); }
.brand__logo { width:1.7rem; height:1.7rem; object-fit:contain; display:block; flex:0 0 auto; }
.brand__name { font-weight:600; font-size:1.0625rem; letter-spacing:-0.01em; }

/* Descriptive product cards (logos over the card, no tile) */
.pcards { margin-top:clamp(1.75rem,3vw,2.25rem); display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.pcard {
  display:block; padding:clamp(1.25rem,2.5vw,1.6rem); background:var(--card); border:1px solid var(--hairline);
  border-radius:16px; text-decoration:none; color:inherit;
  transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pcard:hover { border-color:color-mix(in srgb,var(--text) 22%,var(--hairline)); transform:translateY(-2px);
  box-shadow:0 14px 34px -20px color-mix(in srgb,var(--text) 45%,transparent); }
.pcard__top { display:flex; align-items:center; gap:.6rem; }
.pcard__logo { width:1.55rem; height:1.55rem; object-fit:contain; display:block; flex:0 0 auto; }
.pcard__name { font-weight:600; font-size:1.125rem; letter-spacing:-0.01em; }
.pcard__tag { font-family:var(--mono); font-size:.66rem; letter-spacing:.08em; text-transform:uppercase; color:var(--faint); margin-left:auto; }
.pcard__desc { display:block; margin-top:.75rem; color:var(--muted); font-size:.95rem; line-height:1.5; }
.pcard__domain { display:inline-flex; align-items:center; gap:.35rem; margin-top:.95rem; font-family:var(--mono); font-size:.85rem; color:var(--muted); transition:color .18s ease; }
.pcard:hover .pcard__domain { color:var(--text); }
.pcard__arrow { transition:transform .2s ease; }
.pcard:hover .pcard__arrow { transform:translate(2px,-2px); }
.pcards--three { grid-template-columns:1fr; }

/* Product cards with a video background */
.pcard--media { position:relative; overflow:hidden; padding:0; min-height:15rem; display:flex; color:#fff; }
.pcard__video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.pcard--media::before { content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 58%, rgba(0,0,0,.12) 100%); }
.pcard--blue::before { background:linear-gradient(to top, rgba(6,26,72,.94) 0%, rgba(19,66,150,.62) 52%, rgba(37,110,220,.34) 100%); }
.pcard--blue { border-color:rgba(90,150,245,.35); }
.pcard--media .pcard__content { position:relative; z-index:2; margin-top:auto; width:100%; padding:clamp(1.25rem,2.5vw,1.6rem); }
.pcard--media .pcard__name { color:#fff; font-size:1.25rem; }
.pcard--media .pcard__tag { color:rgba(255,255,255,.72); margin-left:auto; }
.pcard--media .pcard__desc { color:rgba(255,255,255,.88); }
.pcard--media .pcard__domain { color:rgba(255,255,255,.82); }
.pcard--media:hover .pcard__domain { color:#fff; }
@media (max-width:620px) { .pcards { grid-template-columns:1fr; } }

/* Tips & tricks — how-I-work guide cards */
.tips { margin-top:clamp(2.5rem,5vw,3.5rem); padding-top:clamp(2rem,4vw,3rem); border-top:1px solid var(--hairline); }
.guides { margin-top:clamp(1.5rem,3vw,2rem); display:flex; flex-direction:column; gap:.75rem; }
.guide {
  display:block; padding:1.25rem 1.4rem; border:1px solid var(--hairline); border-radius:14px; background:var(--card);
  text-decoration:none; color:inherit; transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.guide:hover { border-color:color-mix(in srgb,var(--text) 22%,var(--hairline)); transform:translateY(-2px);
  box-shadow:0 14px 34px -20px color-mix(in srgb,var(--text) 45%,transparent); }
.guide__title { display:block; font-weight:600; font-size:1.125rem; letter-spacing:-0.01em; }
.guide__desc { display:block; margin-top:.35rem; color:var(--muted); font-size:.95rem; line-height:1.5; }
.guide__more { display:inline-flex; align-items:center; gap:.35rem; margin-top:.85rem; font-family:var(--mono); font-size:.85rem; color:var(--text); }
.guide__more span { transition:transform .2s ease; }
.guide:hover .guide__more span { transform:translateX(3px); }

/* Quote (sticky left column) */
.quote { margin:0; }
.quote p { margin:0; font-weight:600; font-size:clamp(1.5rem,2.4vw,1.9rem); line-height:1.18;
  letter-spacing:-0.025em; text-wrap:pretty; }
.quote p::before { content:"\201C"; }
.quote p::after { content:"\201D"; }

/* Green mission CTA */
.promo {
  position:relative; display:block; margin-top:clamp(2.5rem,5vw,3.5rem); padding:clamp(2rem,5vw,3.25rem);
  border-radius:22px; overflow:hidden; isolation:isolate; text-decoration:none; color:#fff;
  border:1px solid rgba(255,255,255,.12);
  background:#000000;
  box-shadow:0 26px 60px -24px rgba(0,0,0,.65),0 6px 18px -10px rgba(0,0,0,.5);
  animation:promoFloat 6s ease-in-out infinite; transition:box-shadow .3s ease; will-change:transform;
}
.promo:hover { animation-play-state:paused; box-shadow:0 40px 80px -22px rgba(0,0,0,.75),0 8px 22px -10px rgba(0,0,0,.55); }
@keyframes promoFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-9px);} }
.promo__glow { display:none; }
@keyframes promoDrift { 0%,100%{transform:translate(0,0);} 50%{transform:translate(-12%,14%);} }
.promo__body { position:relative; display:flex; flex-direction:column; align-items:flex-start; max-width:34ch; }
.promo__eyebrow { font-family:var(--mono); font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.72); }
.promo__title { margin-top:.85rem; font-size:clamp(1.5rem,3vw,2.25rem); font-weight:600; line-height:1.1; letter-spacing:-0.025em; text-wrap:balance; }
.promo__text { margin-top:.75rem; color:rgba(255,255,255,.82); font-size:1.0625rem; line-height:1.5; }
.promo__cta { display:inline-flex; align-items:center; gap:.5rem; margin-top:1.5rem; background:#fff; color:#111114;
  font-weight:600; font-size:1rem; padding:.75rem 1.35rem; border-radius:999px; }
.promo__arrow { transition:transform .2s ease; }
.promo:hover .promo__arrow { transform:translateX(4px); }

/* Newsletter */
.news { margin-top:clamp(2.5rem,5vw,3.5rem); padding-top:clamp(2rem,4vw,3rem); border-top:1px solid var(--hairline); }
.news__title { margin:0; font-size:clamp(1.25rem,2.4vw,1.625rem); font-weight:600; letter-spacing:-0.02em; }
.news__sub { margin:.5rem 0 1.25rem; color:var(--muted); max-width:46ch; }
.news__form { display:flex; gap:.6rem; flex-wrap:wrap; max-width:30rem; }
.news__input {
  flex:1; min-width:12rem; font:inherit; font-size:1rem; padding:.75rem 1rem; color:var(--text);
  background:var(--card); border:1px solid var(--hairline); border-radius:999px; transition:border-color .15s ease;
}
.news__input::placeholder { color:var(--faint); }
.news__input:focus-visible { outline:none; border-color:var(--text); }
.news__btn {
  appearance:none; cursor:pointer; font:inherit; font-weight:600; font-size:1rem; padding:.75rem 1.4rem;
  border:1px solid var(--btn-bg); border-radius:999px; background:var(--btn-bg); color:var(--btn-text);
  transition:transform .15s ease, opacity .2s ease;
}
.news__btn:hover { transform:translateY(-1px); }
.news__note { margin:.9rem 0 0; color:var(--faint); font-family:var(--mono); font-size:.85rem; }
/* Newsletter inside the left column: tighter, form stacks */
.qcol__news { margin-top:.25rem; padding-top:1.75rem; }
.qcol__news .news__form { flex-direction:column; max-width:none; }
.qcol__news .news__input { min-width:0; }
.qcol__news .news__btn { width:100%; }

/* Signature (under the quote in the left column) */
.sign { margin-top:0; }
.sign__img { height:4rem; width:auto; display:block; }
.sign__text { font-family:var(--mono); color:var(--faint); font-size:.95rem; }

/* ---------- Footer ---------- */
.footer {
  max-width:var(--maxw); margin:0 auto; padding:2.5rem var(--gutter) 3.5rem; border-top:1px solid var(--hairline);
  display:flex; flex-wrap:wrap; gap:1rem 2rem; align-items:center; justify-content:space-between;
  font-family:var(--mono); font-size:.9375rem; color:var(--muted);
}
.footer__brand { display:inline-flex; }
.footer__logo { height:2.25rem; width:auto; object-fit:contain; opacity:.9; }
.footer__links { display:flex; flex-wrap:wrap; gap:1.25rem; }
.footer__link { color:var(--text); text-decoration:none; display:inline-flex; align-items:center; gap:.3rem; transition:color .15s ease; }
.footer__link:hover { color:var(--muted); }
.footer__ext { color:var(--faint); font-size:.8em; }
.footer__copy { color:var(--faint); }

/* ---------- Generic page (about / blog) ---------- */
.page { max-width:min(46rem, 100%); margin:0 auto; padding:clamp(3rem,8vw,6rem) var(--gutter) clamp(4rem,10vw,7rem); }
.page__eyebrow { font-family:var(--mono); font-size:.75rem; letter-spacing:.12em; text-transform:uppercase; color:var(--faint); }
.page__title { margin:.75rem 0 0; font-weight:600; font-size:clamp(2.25rem,5vw,3.5rem); letter-spacing:-0.035em; line-height:1.04; }
.page__lead { margin:1.25rem 0 0; color:var(--muted); font-size:clamp(1.125rem,2vw,1.375rem); line-height:1.5; }
.page__quote { margin:clamp(2rem,4vw,2.75rem) 0 0; padding-left:1.25rem; border-left:3px solid var(--accent); }
.page__quote p { margin:0; font-weight:600; font-size:clamp(1.375rem,2.6vw,1.75rem); line-height:1.28; letter-spacing:-0.02em; text-wrap:pretty; }
.page__quote p::before { content:"\201C"; }
.page__quote p::after { content:"\201D"; }
.prose { margin-top:clamp(2rem,4vw,3rem); }
.prose h2 { margin:2.5rem 0 .75rem; font-size:clamp(1.375rem,2.6vw,1.75rem); font-weight:600; letter-spacing:-0.02em; }
.prose p { margin:0 0 1.15rem; font-size:1.125rem; line-height:1.65; color:var(--text); }
.prose p.muted { color:var(--muted); }
.prose a { color:var(--text); text-decoration:underline; text-underline-offset:2px; text-decoration-color:var(--accent); }

/* Blog list */
.posts { margin-top:clamp(2rem,4vw,3rem); display:flex; flex-direction:column; gap:0; }
.post { display:block; padding:1.5rem 0; border-top:1px solid var(--hairline); text-decoration:none; color:inherit; }
.post:last-child { border-bottom:1px solid var(--hairline); }
.post__date { font-family:var(--mono); font-size:.8rem; color:var(--faint); }
.post__title { margin:.35rem 0 0; font-size:1.375rem; font-weight:600; letter-spacing:-0.02em; }
.post__excerpt { margin:.4rem 0 0; color:var(--muted); }
.empty { margin-top:clamp(2rem,4vw,3rem); padding:clamp(2rem,5vw,3rem); border:1px dashed var(--hairline);
  border-radius:16px; text-align:center; color:var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width:860px) {
  .shell { grid-template-columns:1fr; gap:clamp(2rem,7vw,3rem); }
  .qcol { position:static; top:auto; }
}
@media (max-width:560px) {
  .nav__name { display:none; }
  .nav__links { gap:.9rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  * { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  .marquee { overflow-x:auto; }
  .marquee__track { animation:none; }
}
