/* ============================================================
   Caden Wurzbacher LLC — core system  (editorial B&W + accent)
   Inter (UI/body) · Newsreader (editorial serif) · JetBrains Mono (labels)
   ============================================================ */

:root {
  --bg:        #ffffff;
  --panel:     #f1f0ed;
  --panel-2:   #e7e6e2;
  --surface:   #ffffff;
  --ink:       #0a0a0a;
  --ink-2:     #56564f;
  --ink-3:     #8a8a82;
  --line:      #e4e3de;
  --line-2:    #cdccc6;
  --dark:      #08070a;
  --dark-2:    #100f13;
  --dark-line: #232227;
  --dark-line2:#33323a;
  --dark-ink:  #f5f4f1;
  --dark-ink2: #9b9aa2;
  --dark-ink3: #6a6970;

  /* single restrained accent — editorial vermilion (tweakable) */
  --accent:     #e8431f;
  --accent-ink: #ffffff;

  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1320px;
  --gut: clamp(20px, 5vw, 88px);
  --radius: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  font-feature-settings: "cv11","ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(80px, 11vw, 180px); }

/* ---- type ---- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500;
  display: inline-flex; align-items: center; gap: .8em;
}
.eyebrow .ix { color: var(--accent); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--line-2); }

.display, h2.title, .hero h1, .contact h2, .case h3, .sc-rail h2 {
  font-family: var(--sans); font-weight: 800; letter-spacing: -0.04em;
  line-height: .98; margin: 0; text-wrap: balance;
}
.display .it, h2.title .it, .hero h1 .it, .contact h2 .it {
  font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em;
}
h2.title { font-size: clamp(34px, 5vw, 72px); }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); line-height: 1.5; max-width: 54ch; text-wrap: pretty; font-weight: 400; }
.mono { font-family: var(--mono); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.55); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px color-mix(in oklab, var(--accent) 60%, transparent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---- nav ---- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gut);
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck { background: color-mix(in oklab, var(--bg) 84%, transparent); backdrop-filter: saturate(1.2) blur(16px); -webkit-backdrop-filter: saturate(1.2) blur(16px); border-bottom-color: var(--line); padding-block: 13px; }
.brand .wordmark { height: 19px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { font-family: var(--sans); font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 9px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 5%, transparent); }
.nav-links a.nav-cta { color: var(--bg); }
.nav-links a.nav-cta:hover { color: var(--bg); background: var(--ink); }
.nav-cta { margin-left: 8px; }
@media (max-width: 880px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---- footer ---- */
.footer { padding: 64px var(--gut) 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; justify-content: space-between; }
.footer .mono { font-size: 13px; color: var(--ink-3); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 15px; font-weight: 500; }
.footer-col a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }

/* ---- image slots ---- */
image-slot { filter: grayscale(1) contrast(1.04); display: block; }
.imgcap { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px; display: flex; gap: 10px; align-items: center; }
.imgcap::before { content: ""; width: 16px; height: 1px; background: var(--accent); }

/* ---- reveals & motion ---- */
.has-js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.has-js .rev-clip > * { clip-path: inset(0 0 100% 0); transform: translateY(.4em); transition: clip-path 1s var(--ease-out), transform 1s var(--ease-out); }
.rev-clip.in > * { clip-path: inset(0 0 -10% 0); transform: none; }
.reveal[data-d="1"], .rev-clip[data-d="1"] > * { transition-delay: .08s; }
.reveal[data-d="2"], .rev-clip[data-d="2"] > * { transition-delay: .16s; }
.reveal[data-d="3"], .rev-clip[data-d="3"] > * { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.has-js .img-reveal { clip-path: inset(0 0 0 100%); transition: clip-path 1.1s var(--ease-out); }
.img-reveal.in { clip-path: inset(0 0 0 0%); }
@media (prefers-reduced-motion: reduce) {
  .has-js .reveal, .has-js .rev-clip > *, .has-js .img-reveal { opacity: 1; transform: none; clip-path: none; transition: none; }
}

.sec-head { display: grid; gap: 22px; max-width: 880px; }
.sec-head .lead { max-width: 60ch; }

/* ---- marquee ---- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg); }
.marquee.on-dark { border-color: var(--dark-line); background: var(--dark); }
.marquee-track { display: inline-flex; gap: 0; white-space: nowrap; will-change: transform; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--sans); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(30px, 5vw, 64px); padding: 22px 0; display: inline-flex; align-items: center; }
.marquee-item .sep { color: var(--accent); margin: 0 .5em; font-family: var(--serif); font-style: italic; font-weight: 400; }
.marquee.on-dark .marquee-item { color: var(--dark-ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
