/* Wedge Studio · v16 shared stylesheet. One design system for every page, index included.
   Language: black + white + red, inspired by playkit.xyz. One bold grotesque (Hanken Grotesk),
   lowercase display type with tight tracking, alternating dark/light bands, pill CTAs,
   uppercase eyebrow labels, honest big numbers. Docket mock keeps its own product language. */

:root {
  --black: #050505;
  --white: #F9F6F0;
  --ink: #0A0A0A;
  --mut: rgba(10, 10, 10, 0.56);
  --w-mut: rgba(255, 255, 255, 0.6);
  --line: rgba(10, 10, 10, 0.12);
  --w-line: rgba(255, 255, 255, 0.14);
  --red: #C8102E;
  --red-hot: #FF3B54;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--black);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--red); color: #fff; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 3px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- bands ---------- */

.band-dark { background: var(--black); color: #fff; }
.band-light { background: var(--white); color: var(--ink); }

/* ---------- type ---------- */

h1 {
  font-size: clamp(44px, 7.2vw, 88px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-transform: lowercase;
  max-width: 12em;
}
h2 {
  font-size: clamp(32px, 4.6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.02;
  text-transform: lowercase;
  max-width: 14em;
}
h3 {
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: lowercase;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.lede {
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.55;
  color: var(--mut);
  max-width: 32em;
  margin-top: 22px;
}
.band-dark .lede { color: var(--w-mut); }
.lede a { color: inherit; text-underline-offset: 3px; }
.band-dark .lede a:hover, .lede a:hover { color: var(--red-hot); }

.mut { color: var(--mut); }
.band-dark .mut { color: var(--w-mut); }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 18px 0;
  background: rgba(5, 5, 5, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.mark {
  display: inline-block;
  width: 12px; height: 12px;
  background: var(--red);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  flex: none;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 24px;
  margin-left: auto;
}
.site-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--w-mut);
  text-decoration: none;
  padding: 8px 0;
  text-transform: lowercase;
}
.site-nav a:hover { color: #fff; }
.site-nav a.on { color: #fff; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition-property: background-color, scale;
  transition-duration: 0.15s;
}
.btn:hover { background: #A60D26; }
.btn:active { scale: 0.96; }
.btn.small { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn.inverse { background: #fff; color: var(--ink); }
.btn.inverse:hover { background: #E9E5DE; }

.tlink {
  font-size: 15px;
  font-weight: 600;
  text-transform: lowercase;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--red);
  padding: 10px 2px;
}
.tlink:hover { text-decoration-color: currentColor; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* ---------- hero ---------- */

.hero {
  box-sizing: border-box;
  min-height: calc(100vh - var(--head-h, 78px));
  min-height: calc(100svh - var(--head-h, 78px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vh, 72px) 0;
}
.hero .cta-row { margin-top: 38px; }

/* ---------- rainbow "AI" in the hero ---------- */

.ai-word {
  position: relative;
  display: inline-block;
  background: linear-gradient(115deg, #ff3b54 0%, #ffb13b 30%, #4dff88 55%, #3bc8ff 78%, #b44dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: ai-hue 6s linear infinite;
}
.ai-word::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: blur(18px);
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
}
@keyframes ai-hue {
  to { filter: hue-rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ai-word { animation: none; }
}

/* ---------- intro loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition-property: translate;
  transition-duration: 0.7s;
  transition-timing-function: cubic-bezier(0.7, 0, 0.2, 1);
}
.loader.done { translate: 0 -100%; }
html.loading { overflow: hidden; }
.loader-inner { display: flex; align-items: center; gap: 16px; }
.loader-mark {
  width: 36px; height: 36px;
  background: var(--red);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  animation: loader-mark 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes loader-mark {
  from { scale: 0; rotate: -90deg; opacity: 0; }
  to { scale: 1; rotate: 0deg; opacity: 1; }
}
.loader-word { overflow: hidden; }
.loader-word span {
  display: inline-block;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  translate: 0 130%;
  animation: loader-word 0.7s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes loader-word { to { translate: 0 0; } }

/* ---------- page load-in (html.intro is set only when the loader plays) ---------- */

@keyframes rise {
  from { opacity: 0; translate: 0 36px; filter: blur(10px); }
  60% { filter: blur(2px); }
  to { opacity: 1; translate: 0 0; filter: blur(0); }
}
html.intro .site-head { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 1.7s both; }
html.intro .hero .eyebrow { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 1.86s both; }
html.intro .hero h1 { animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 2.0s both; }
html.intro .hero .lede { animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 2.16s both; }
html.intro .hero .cta-row { animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 2.32s both; }
html.intro .marquee { animation: rise 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 2.48s both; }
html.intro .facts { animation: rise 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 2.64s both; }

/* ---------- project carousel ---------- */

.marquee {
  margin-top: clamp(52px, 8vh, 80px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%, rgba(0, 0, 0, 0.13) 4%, rgba(0, 0, 0, 0.4) 8%, rgba(0, 0, 0, 0.75) 13%, #000 18%,
    #000 82%, rgba(0, 0, 0, 0.75) 87%, rgba(0, 0, 0, 0.4) 92%, rgba(0, 0, 0, 0.13) 96%, transparent 100%);
  mask-image: linear-gradient(90deg,
    transparent 0%, rgba(0, 0, 0, 0.13) 4%, rgba(0, 0, 0, 0.4) 8%, rgba(0, 0, 0, 0.75) 13%, #000 18%,
    #000 82%, rgba(0, 0, 0, 0.75) 87%, rgba(0, 0, 0, 0.4) 92%, rgba(0, 0, 0, 0.13) 96%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 4px 0;
  animation: marq 56s linear infinite;
}
@keyframes marq { to { translate: -50% 0; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .marquee-track { animation: none; }
}

.pcard {
  width: 360px;
  flex: none;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  color: #1F2937;
}
.pcard .shot { height: 240px; padding: 20px; background: #F3F4F6; }
.pcard img.shot.is-image {
  display: block;
  width: 100%;
  padding: 0;
  object-fit: cover;
}
.pcard .cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: lowercase;
  white-space: nowrap;
}
.pcard .cap .tag { font-size: 11.5px; font-weight: 600; color: rgba(0, 0, 0, 0.45); overflow: hidden; text-overflow: ellipsis; }

/* mini-mockup primitives */
.ln { height: 8px; border-radius: 4px; background: #E2E4E9; margin-top: 9px; }
.ln.dk { background: rgba(255, 255, 255, 0.35); }
.ln.w80 { width: 80%; } .ln.w60 { width: 60%; } .ln.w40 { width: 40%; } .ln.w25 { width: 25%; }
.chip-btn {
  display: inline-block;
  margin-top: 12px;
  width: 64px; height: 20px;
  border-radius: 999px;
  background: var(--red);
}

/* venue site mock */
.pcard .shot.m-venue { background: #17181C; }
.m-venue .bar { display: flex; gap: 5px; margin-bottom: 16px; }
.m-venue .bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.m-venue .big { height: 16px; width: 70%; border-radius: 5px; background: rgba(255, 255, 255, 0.9); }

/* docket mock */
.pcard .shot.m-docket { display: grid; grid-template-columns: 64px 1fr; gap: 12px; background: #EEF1F5; }
.m-docket .side { background: #fff; border-radius: 8px; padding: 8px; }
.m-docket .side .ln { height: 6px; margin-top: 7px; }
.m-docket .main { background: #fff; border-radius: 8px; padding: 10px; }
.m-docket .badge { display: inline-block; width: 74px; height: 16px; border-radius: 999px; background: #D9F2E5; }
.m-docket .row { display: flex; gap: 8px; align-items: center; }
.m-docket .row .ln { flex: 1; }
.m-docket .dot-g { width: 8px; height: 8px; border-radius: 50%; background: #34A26C; flex: none; margin-top: 9px; }

/* this-site mock */
.pcard .shot.m-site { background: var(--black); display: flex; flex-direction: column; justify-content: center; }
.m-site .wedge { width: 22px; height: 22px; background: var(--red); clip-path: polygon(0 100%, 100% 100%, 100% 0); margin-bottom: 12px; }
.m-site .word { color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; line-height: 1.15; text-transform: lowercase; }

/* local listing mock */
.pcard .shot.m-local { background: #EDF2ED; }
.m-local .map { height: 88px; border-radius: 10px; background: #DCE7DA; position: relative; }
.m-local .pin {
  position: absolute; left: 48%; top: 34%;
  width: 15px; height: 15px;
  border-radius: 50% 50% 50% 0;
  background: var(--red);
  rotate: -45deg;
}
.m-local .stars { display: flex; gap: 4px; margin-top: 13px; }
.m-local .stars i { width: 10px; height: 10px; border-radius: 50%; background: #E8B93C; }

/* AEO answer mock */
.pcard .shot.m-aeo { background: #F6F4EF; }
.m-aeo .q { width: 82%; height: 24px; border-radius: 999px; background: #fff; border: 1px solid #E2E4E9; }
.m-aeo .a { margin-top: 12px; background: #fff; border: 1px solid #E2E4E9; border-radius: 10px; padding: 10px; }
.m-aeo .a .ln { margin-top: 7px; height: 7px; }
.m-aeo .a .ln.hot { background: var(--red); opacity: 0.85; }

/* automations mock */
.pcard .shot.m-ops { background: #F3F4F6; }
.m-ops .row { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 9px; padding: 10px 12px; margin-top: 10px; }
.m-ops .row:first-child { margin-top: 0; }
.m-ops .row .ln { width: 55%; margin-top: 0; }
.m-ops .sw { width: 30px; height: 17px; border-radius: 999px; background: #34A26C; position: relative; flex: none; }
.m-ops .sw::after { content: ""; position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.m-ops .sw.off { background: #D6D9DE; }
.m-ops .sw.off::after { right: auto; left: 2px; }

/* ---------- big facts ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--w-line);
  padding: 40px 0 clamp(56px, 8vh, 88px);
}
.band-light .facts { border-top-color: var(--line); }
.facts .n {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--red-hot);
  font-variant-numeric: tabular-nums;
}
.band-light .facts .n { color: var(--red); }
.facts .l {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--w-mut);
  margin-top: 8px;
  text-transform: lowercase;
}
.band-light .facts .l { color: var(--mut); }

/* ---------- sections ---------- */

.sec { padding: clamp(80px, 12vh, 130px) 0; }
.sec-head { margin-bottom: clamp(40px, 6vh, 64px); }

/* ---------- numbered blocks ---------- */

.blocks { display: grid; gap: 0; }
.block {
  display: grid;
  grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 20px 40px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 36px 0 40px;
}
.band-dark .block { border-top-color: var(--w-line); }
.block .no {
  font-size: 15px;
  font-weight: 800;
  color: var(--red);
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
}
.band-dark .block .no { color: var(--red-hot); }
.block .side {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mut);
  margin-top: 8px;
  text-transform: lowercase;
}
.band-dark .block .side { color: var(--w-mut); }
.block .body { color: var(--mut); font-size: 16.5px; max-width: 34em; }
.band-dark .block .body { color: var(--w-mut); }
.block .body p + p { margin-top: 12px; }
.block .body b, .block .body strong { color: var(--ink); font-weight: 700; }
.band-dark .block .body b, .band-dark .block .body strong { color: #fff; }
.block .body a { text-underline-offset: 3px; }
.block .body a:hover { color: var(--red); }

a.block { text-decoration: none; }
a.block:hover h3 { color: var(--red); }

/* ---------- representative work concepts ---------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.case-visual {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #E7E4DE;
}
.case-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.case-card:hover .case-visual img { scale: 1.018; }
.case-visual figcaption {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.88);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.case-copy {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 24px 24px 28px;
}
.case-copy .case-no {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  padding-top: 5px;
}
.case-copy p {
  color: var(--mut);
  font-size: 15.5px;
  margin-top: 10px;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 56px;
}
.steps .step .eyebrow { margin-bottom: 12px; }
.steps .step p { color: var(--mut); font-size: 16.5px; margin-top: 8px; max-width: 30em; }
.band-dark .steps .step p { color: var(--w-mut); }

/* ---------- homepage work cards ---------- */

.wk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.wk-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wk-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  align-items: stretch;
}
.wk-visual {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #E7E4DE;
}
.wk-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wk-card:hover .wk-visual img { scale: 1.018; }
.wk-feature .wk-visual {
  aspect-ratio: auto;
  min-height: 400px;
  border-left: 1px solid var(--line);
}
.wk-copy {
  padding: 24px 26px 30px;
}
.wk-feature .wk-copy {
  align-self: center;
  padding: 44px 46px;
}
.wk-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 16px;
}
.wk-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
}
.wk-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.wk-status.live::before { background: #17A254; }
.wk-status.build::before { background: #E8A13A; }
.wk-tags {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mut);
  text-transform: lowercase;
}
.wk-copy p {
  color: var(--mut);
  font-size: 16px;
  margin-top: 8px;
  max-width: 30em;
}
.wk-poster {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--black);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 26px 28px;
}
.wk-mark {
  position: absolute;
  top: 26px;
  left: 28px;
  width: 34px;
  height: 30px;
  background: var(--red);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.wk-poster-type {
  font-weight: 800;
  font-size: clamp(34px, 3.4vw, 46px);
  letter-spacing: -0.04em;
  line-height: 0.96;
  color: #fff;
}
.wk-poster-type .dot { color: var(--red-hot); }

/* ---------- homepage process timeline ---------- */

.proc-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px 96px;
  align-items: start;
}
.proc-intro {
  position: sticky;
  top: 118px;
}
.proc-intro .sec-head { margin-bottom: 40px; }
.tl {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tl-step {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 48px;
}
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 60px;
  bottom: 10px;
  width: 1px;
  background: var(--w-line);
}
.tl-step:last-child::before { display: none; }
.tl-node {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 59, 84, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--red-hot);
  font-variant-numeric: tabular-nums;
  background: var(--black);
}
.tl-body { padding-top: 12px; }
.tl-body p {
  color: var(--w-mut);
  font-size: 16.5px;
  margin-top: 8px;
  max-width: 30em;
}
.tl-always {
  border: 1px solid var(--w-line);
  border-radius: 20px;
  padding: 28px 30px 32px;
}
.tl-always .eyebrow { margin-bottom: 16px; }
.tl-always p {
  color: var(--w-mut);
  font-size: 16px;
  margin-top: 8px;
}

/* ---------- prose lists ---------- */

.prose { max-width: 36em; }
.prose p { margin-top: 16px; color: var(--mut); }
.prose p:first-child { margin-top: 0; }
.band-dark .prose p { color: var(--w-mut); }
.prose ul, .prose ol { margin: 18px 0 0 20px; color: var(--mut); }
.band-dark .prose ul, .band-dark .prose ol { color: var(--w-mut); }
.prose li { margin-top: 10px; }
.prose li b, .prose li strong { font-weight: 700; color: var(--ink); }
.band-dark .prose li b, .band-dark .prose li strong { color: #fff; }
.prose a { text-underline-offset: 3px; }
.prose a:hover { color: var(--red); }

/* ---------- docket mock ---------- */

.browser {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  margin-top: clamp(40px, 6vh, 56px);
}
.band-light .browser { box-shadow: 0 20px 60px rgba(10, 10, 10, 0.12); border: 1px solid var(--line); }
.chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid #ECECEC;
  background: #FAFAFA;
}
.chrome i { width: 9px; height: 9px; border-radius: 50%; background: #E2E2E2; }
.chrome .url {
  margin: 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  background: #F0F0F0;
  border-radius: 6px;
  padding: 4px 14px;
}
.mock-note {
  font-size: 13px;
  font-weight: 600;
  color: var(--w-mut);
  text-align: right;
  margin-top: 14px;
  text-transform: lowercase;
}
.band-light .mock-note { color: var(--mut); }

/* ---------- docket scrolly tour ---------- */
/* Default is static (no JS, short screens, reduced motion): only the first view shows.
   JS adds #docket.scrolly-on, which pins the section and steps through the views. */

#docket.scrolly-on .dk-scrolly { height: 380svh; }
#docket.scrolly-on .dk-pin {
  position: sticky;
  top: 0;
  box-sizing: border-box;
  height: 100svh;
  display: flex;
  align-items: stretch;
  padding: clamp(104px, 13vh, 148px) 0 clamp(44px, 7vh, 84px);
}
#docket.scrolly-on .dk-pin .wrap {
  width: 100%;
  max-width: 1240px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#docket.scrolly-on .dk-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: clamp(24px, 3.5vh, 40px);
}
#docket.scrolly-on .browser {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 0;
}
#docket.scrolly-on .chrome { flex: none; }
#docket.scrolly-on .dk { flex: 1; min-height: 0; }
#docket.scrolly-on .mock-note { flex: none; margin-top: 12px; }

/* wide screens: text column left, dashboard right */
@media (min-width: 1400px) {
  #docket.scrolly-on .dk-pin .wrap {
    flex-direction: row;
    align-items: stretch;
    gap: clamp(48px, 4vw, 84px);
    max-width: 1520px;
  }
  #docket.scrolly-on .sec-head {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  #docket.scrolly-on .dk-stage { margin-top: 0; }
}

.dk-views { display: grid; }
.dk-view {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  translate: 0 18px;
  filter: blur(5px);
  visibility: hidden;
  transition-property: opacity, translate, filter, visibility;
  transition-duration: 0.45s, 0.45s, 0.45s, 0s;
  transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: 0s, 0s, 0s, 0.45s;
}
.dk-view.on {
  opacity: 1;
  translate: 0 0;
  filter: none;
  visibility: visible;
  transition-delay: 0.08s, 0.08s, 0.08s, 0s;
}
#docket:not(.scrolly-on) .dk-view { transition: none; }

/* Docket app. Rendered in the product's own design language, not the site's. */
.dk {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  background: #F7F8FA;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #111827;
  font-size: 13px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.dk .ic {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dk-side {
  background: #fff;
  border-right: 1px solid #E8EAEE;
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
}
.dk-side nav { flex: 1; min-height: 0; overflow: hidden; }
.dk-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  padding: 2px 10px 10px;
}
.dk-logo-mark {
  width: 18px; height: 18px;
  flex: none;
  border-radius: 5px;
  background: #1D4ED8;
  position: relative;
}
.dk-logo-mark::after {
  content: "";
  position: absolute;
  inset: 5px 5px 7px 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.9);
}
.dk-client {
  font-size: 11px;
  color: #6B7280;
  padding: 0 10px 12px;
  border-bottom: 1px solid #F0F1F4;
  margin-bottom: 10px;
}
.dk-side nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #4B5563;
  text-decoration: none;
}
.dk-side nav a .ic { color: #9CA3AF; }
.dk-side nav a.on { background: #EFF3FE; color: #1D4ED8; font-weight: 600; }
.dk-side nav a.on .ic { color: #1D4ED8; }
.dk-side nav a .cnt {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 600;
  background: #1D4ED8;
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
}
.dk-user {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #F0F1F4;
  padding: 10px 10px 2px;
}
.dk-user-meta { min-width: 0; line-height: 1.25; }
.dk-user-meta b { display: block; font-size: 12px; font-weight: 600; }
.dk-user-meta i { display: block; font-style: normal; font-size: 10.5px; color: #9CA3AF; }
.dk-online { width: 7px; height: 7px; border-radius: 50%; background: #34A26C; margin-left: auto; flex: none; }
.dk-ava {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
  background: #E8EDFB;
  color: #1D4ED8;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.dk-ava.sm { width: 26px; height: 26px; font-size: 10px; }
.dk-body { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dk-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 22px;
  background: #fff;
  border-bottom: 1px solid #E8EAEE;
}
.dk-crumb { font-size: 12px; color: #9CA3AF; }
.dk-crumb span { margin: 0 4px; color: #D1D5DB; }
.dk-crumb b { color: #111827; font-weight: 600; }
.dk-tools { display: flex; align-items: center; gap: 12px; }
.dk-search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #9CA3AF;
  background: #F3F4F6;
  border: 1px solid #E8EAEE;
  border-radius: 8px;
  padding: 5px 12px 5px 9px;
}
.dk-search .ic { width: 13px; height: 13px; }
.dk-bell { position: relative; display: inline-flex; color: #6B7280; padding: 4px; }
.dk-bell i {
  position: absolute;
  top: 3px; right: 2px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #DC2626;
  border: 1.5px solid #fff;
}
.dk-views { flex: 1; min-height: 0; }
.dk-main { padding: 18px 22px 24px; min-width: 0; }
.dk-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.dk-kpi {
  background: #fff;
  border: 1px solid #E8EAEE;
  border-radius: 10px;
  padding: 10px 13px 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.dk-kpi > span:first-child {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 3px;
}
.dk-kpi b { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.dk-kbar {
  display: block;
  margin-top: 7px;
  height: 5px;
  border-radius: 999px;
  background: #EEF0F3;
  overflow: hidden;
}
.dk-kbar i { display: block; height: 100%; border-radius: 999px; background: #1D4ED8; }
.dk-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.dk-top h4 { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.dk-sub { color: #6B7280; font-size: 12px; margin-bottom: 16px; }
.dk-badge {
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.dk-badge.green { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.dk-badge.blue { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.dk-badge.gray { background: #F3F4F6; color: #6B7280; border: 1px solid #E5E7EB; }
.dk-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.dk-card {
  background: #fff;
  border: 1px solid #E8EAEE;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.dk-card .hd {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B7280;
  padding: 11px 14px;
  border-bottom: 1px solid #F3F4F6;
}
.dk-table { width: 100%; border-collapse: collapse; }
.dk-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9CA3AF;
  padding: 9px 14px;
  border-bottom: 1px solid #F3F4F6;
}
.dk-table td { padding: 10px 14px; border-bottom: 1px solid #F3F4F6; font-size: 12.5px; }
.dk-table tr:last-child td { border-bottom: none; }
.dk-table td:first-child { font-weight: 550; }
.dk-table .dt { color: #6B7280; }
.dk-stack { display: grid; gap: 14px; }
.dk-approve { padding: 13px 14px; }
.dk-approve .item-name { font-size: 13px; font-weight: 600; }
.dk-approve .meta { font-size: 11.5px; color: #6B7280; margin: 2px 0 12px; }
.dk-approve .row { display: flex; gap: 8px; }
.dk-btn {
  font-size: 12px;
  font-weight: 600;
  border-radius: 7px;
  padding: 6px 13px;
  background: #1D4ED8;
  color: #fff;
  border: 1px solid #1D4ED8;
}
.dk-btn.ghost { background: #fff; color: #374151; border-color: #D1D5DB; }
.dk-update { padding: 13px 14px; }
.dk-update p { font-size: 12.5px; color: #374151; }
.dk-update .when { font-size: 11px; color: #9CA3AF; margin-top: 8px; }
.dk-file {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  font-size: 12px;
  border-bottom: 1px solid #F3F4F6;
}
.dk-file:last-child { border-bottom: none; }
.dk-file .sz { color: #9CA3AF; }

/* docket tour extras */
.dk-bar {
  display: inline-block;
  vertical-align: middle;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: #EEF0F3;
  overflow: hidden;
}
.dk-bar i { display: block; width: 0; height: 100%; border-radius: 999px; background: #1D4ED8; }
.dk-stat {
  padding: 12px 14px 15px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}
.dk-stat span {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: #6B7280;
  margin-top: 3px;
}
.dk-thumb {
  margin-bottom: 12px;
  padding: 16px;
  background: #F5F6F8;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}
.dk-thumb .tln { height: 8px; border-radius: 4px; background: #DFE3EA; margin-top: 8px; }
.dk-thumb .tln.first { margin-top: 0; width: 42%; height: 12px; background: #C7CDD8; }
.dk-thumb .tln.w80 { width: 80%; }
.dk-thumb .tln.w60 { width: 60%; }
.dk-thumb .tbtn { display: inline-block; margin-top: 12px; width: 66px; height: 18px; border-radius: 999px; background: #1D4ED8; }

/* ---------- article ---------- */

.article-hero { padding: clamp(56px, 9vh, 100px) 0; }
.article-hero .meta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--w-mut);
  margin-bottom: 24px;
}
.article-hero h1 { font-size: clamp(36px, 5vw, 60px); max-width: 16em; }
.article-hero .standfirst {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--w-mut);
  line-height: 1.55;
  margin-top: 24px;
  max-width: 34em;
}
.article-body { max-width: 700px; margin: 0 auto; padding: clamp(56px, 8vh, 80px) 24px; }
.article-body p { margin-bottom: 22px; color: rgba(10, 10, 10, 0.78); font-size: 17.5px; line-height: 1.7; }
.article-body p strong { color: var(--ink); font-weight: 700; }
.article-body h2 { font-size: clamp(26px, 3.2vw, 34px); margin: 44px 0 16px; }
.article-body ol, .article-body ul { margin: 0 0 22px 22px; color: rgba(10, 10, 10, 0.78); }
.article-body li { margin-bottom: 10px; line-height: 1.65; }
.article-body li strong { font-weight: 700; }
.pull {
  border-left: 4px solid var(--red);
  padding: 6px 0 6px 24px;
  margin: 38px 0;
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-transform: lowercase;
}
.fig {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 22px;
  margin: 34px 0;
}
.fig .cap { font-size: 12.5px; font-weight: 600; color: var(--mut); margin-top: 14px; text-transform: lowercase; }
.fig .q {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  display: inline-block;
}
.fig .ans { margin-top: 12px; display: grid; gap: 8px; }
.fig .ans div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--mut);
}
.fig .ans b { color: var(--ink); font-weight: 700; }
.redact { display: inline-block; background: var(--ink); border-radius: 3px; color: transparent; user-select: none; }

/* ---------- forms ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.split h3 { margin-bottom: 6px; }
.split .aside-block + .aside-block { margin-top: 44px; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 30px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition-property: border-color;
  transition-duration: 0.15s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(10, 10, 10, 0.32); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid transparent; }
.field textarea { min-height: 130px; resize: vertical; }
.hint { font-size: 13px; color: var(--mut); margin-top: 8px; }

/* ---------- closing CTA + footer ---------- */

.cta { padding: clamp(88px, 13vh, 140px) 0 clamp(64px, 9vh, 96px); }
.cta .cta-row { margin-top: 36px; }

.site-foot { padding: 0 0 40px; }
.site-foot .wrap {
  border-top: 1px solid var(--w-line);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--w-mut);
}
.site-foot a { text-decoration: none; padding: 6px 0; text-transform: lowercase; }
.site-foot a:hover { color: #fff; }
.site-foot .pages { display: flex; flex-wrap: wrap; gap: 2px 20px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr; gap: 32px 24px; }
  .block { grid-template-columns: 56px minmax(0, 1fr); }
  .block .body { grid-column: 2; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .split { grid-template-columns: 1fr; }
  .wk-feature { grid-template-columns: 1fr; }
  .wk-feature .wk-visual {
    aspect-ratio: 3 / 2;
    min-height: 0;
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .proc-split { grid-template-columns: 1fr; gap: 48px; }
  .proc-intro { position: static; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-head .wrap { flex-wrap: wrap; gap: 12px 22px; }
  .site-nav { margin-left: 0; width: 100%; }
  .dk { grid-template-columns: 1fr; }
  .dk-side { display: none; }
  .dk-cols { grid-template-columns: 1fr; }
  .dk-kpis { grid-template-columns: repeat(2, 1fr); }
  .dk-search { display: none; }
  .chrome .url { margin: 0 0 0 auto; }
  .case-grid { grid-template-columns: 1fr; }
  .wk-grid { grid-template-columns: 1fr; }
  .wk-feature .wk-copy { padding: 26px 26px 32px; }
}
