/* Businesses BlackBox site. Colours, type and parts follow the BBB pamphlet
   (project files: marketing/bbb-company/), so print and web read as one brand. */
@font-face { font-family: Geist; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/geist.woff2) format("woff2"); }

:root {
  --ink: #12141c;      /* charcoal, the app's dark */
  --raised: #1c2030;
  --yellow: #f5c400;
  --violet: #8b7cf6;
  --paper: #f7f4ee;    /* warm paper */
  --text: #1d1f27;
  --muted: #5d5a55;
  --rule: #e2ddd3;
  --kick: #806f1c;     /* darker than the pamphlet's #8a7a2a so small caps pass AA on paper */
  --r: 14px;
  --gut: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: Geist, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: var(--text); background: var(--paper); line-height: 1.5; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gut); }
@media (min-width: 720px) { :root { --gut: 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

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

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(18,20,28,.94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.07); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }

.top nav { display: none; gap: 26px; margin-left: auto; }
.top nav a { color: #c9c8d4; text-decoration: none; font-size: 15px; font-weight: 500; }
.top nav a:hover { color: #fff; }
.top .btn { margin-left: auto; }
@media (min-width: 900px) { .top nav { display: flex; } .top .btn { margin-left: 8px; } }

/* type */
.kicker { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--kick); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 3px; background: var(--yellow); border-radius: 3px; flex: none; }
.dark .kicker { color: var(--yellow); }
h1 { font-size: clamp(34px, 5.6vw, 58px); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; }
h2 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; margin-bottom: 14px; max-width: 22ch; }
h3 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; margin-bottom: 4px; }
.lead { font-size: clamp(17px, 2vw, 19px); line-height: 1.55; color: var(--muted); }
.dark .lead { color: #b9b8c6; }
.lead b { color: var(--text); }
.dark .lead b { color: #fff; }
.narrow { max-width: 62ch; }
.y { color: var(--yellow); }
.hl { background: linear-gradient(transparent 62%, rgba(245,196,0,.6) 62%); padding: 0 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 650; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-y { background: var(--yellow); color: var(--ink); }
.btn-y:hover { background: #ffd31f; }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--yellow); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }

/* sections */
.sec { padding: 72px 0; position: relative; overflow: hidden; }
@media (min-width: 900px) { .sec { padding: 104px 0; } }

/* corner fans, after the pamphlet */
.fan { position: absolute; pointer-events: none; }
.contact-sec .fan { opacity: .45; }
.fan-tr { right: 0; top: 0; width: min(70vw, 620px); height: min(70vw, 620px); }
.fan-bl { left: 0; bottom: 0; width: min(80vw, 560px); height: min(80vw, 560px); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 28px; }
.hero-in { position: relative; display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 50ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.free { display: flex; gap: 10px; align-items: baseline; margin-top: 22px; font-size: 15px; color: #c9c8d4; max-width: 52ch; }
.free .dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd39a; flex: none; transform: translateY(-1px); }
.hero-art { display: flex; justify-content: center; align-items: flex-end; padding: 10px 0 0; }
.phone { position: relative; border-radius: 34px; background: #07080c; padding: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.4); }
.phone img { border-radius: 27px; width: 100%; }
.phone::after { content: ""; position: absolute; top: 14px; left: 50%; width: 30%; height: 10px; transform: translateX(-50%); border-radius: 10px; background: #07080c; }
.ph-a { width: min(52vw, 250px); transform: rotate(-4deg) translateY(10px); z-index: 2; }
.ph-b { width: min(42vw, 210px); margin-left: -44px; margin-bottom: 48px; transform: rotate(5deg); }
.shown { position: relative; font-size: 13px; color: #8f8e9e; margin-top: 28px; text-align: center; }
@media (min-width: 900px) {
  .hero { padding: 96px 0 40px; }
  .hero-in { grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .shown { text-align: right; }
}

/* services */
.svc { display: grid; gap: 14px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .svc { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .svc { grid-template-columns: repeat(4, 1fr); } }
.svc article { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: 0 0 0 1px var(--rule); }
.svc p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.ic { width: 42px; height: 42px; border-radius: 11px; background: var(--ink); display: grid; place-items: center; margin-bottom: 14px; }
.ic svg { width: 22px; height: 22px; stroke: var(--yellow); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc .ask { background: var(--ink); color: #f2f1ee; box-shadow: none; display: flex; flex-direction: column; }
.svc .ask p { color: #b9b8c6; }
.link { color: var(--yellow); font-weight: 650; text-decoration: none; margin-top: auto; padding-top: 14px; }
.link:hover { text-decoration: underline; }

/* featured work */
.feat { display: grid; gap: 44px; }
@media (min-width: 980px) { .feat { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; } }
.ticks { list-style: none; display: grid; gap: 12px; margin: 26px 0; }
.ticks li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%2312141c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }
.card { background: #fff; border-radius: var(--r); padding: 22px 24px; box-shadow: 0 0 0 1px var(--rule); }
.card.why { background: var(--paper); }
.card p { color: var(--muted); font-size: 15.5px; }
.screen { border-radius: 12px; overflow: hidden; background: var(--ink); box-shadow: 0 14px 34px rgba(10,12,20,.2), 0 0 0 1px rgba(10,12,20,.1); }
.screen .bar { height: 20px; background: #232838; display: flex; align-items: center; gap: 6px; padding-left: 12px; }
.screen .bar i { width: 7px; height: 7px; border-radius: 50%; background: #4a5068; }
.feat-row { display: grid; grid-template-columns: 1fr 26%; gap: 18px; align-items: end; margin-top: 22px; }
.ph-s { border-radius: 22px; padding: 5px; box-shadow: 0 12px 28px rgba(10,12,20,.28); }
.ph-s img { border-radius: 18px; }
.ph-s::after { top: 9px; height: 6px; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* projects */
.projs { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 760px) { .projs { grid-template-columns: 1fr 1fr; } }
.proj { border-radius: var(--r); padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: start; }
.proj h3 { margin: 0; font-size: 20px; }
.proj p { grid-column: 1 / -1; font-size: 15.5px; color: var(--muted); }
.proj.live { background: var(--ink); color: #f2f1ee; }
.proj.live p { color: #b9b8c6; }
.proj.soon { background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.proj.open { border: 2px dashed #c9b25a; }
.tag { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 650; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.tag.g { background: rgba(95,211,154,.16); color: #5fd39a; }
.tag.gd { background: rgba(31,122,77,.1); color: #1f7a4d; }
.tag.y { background: rgba(245,196,0,.2); color: #6e5700; }
.tag.o { background: rgba(18,20,28,.06); color: var(--muted); }
.chips-h { margin-top: 44px; margin-bottom: 14px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 15px; padding: 7px 15px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--rule); }

/* how we work */
.how { display: grid; gap: 44px; }
@media (min-width: 980px) { .how { grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; } }
.steps { list-style: none; display: grid; gap: 22px; margin-top: 30px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps .n { width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 19px; display: grid; place-items: center; }
.steps p { color: var(--muted); font-size: 15.5px; }
.promise { padding: 28px; }
.promise h3 { font-size: 20px; margin-bottom: 18px; }
.trust { display: grid; gap: 18px 24px; }
@media (min-width: 520px) { .trust { grid-template-columns: 1fr 1fr; } }
.trust dt { font-weight: 650; font-size: 15.5px; margin-bottom: 2px; }
.trust dd { font-size: 14.5px; color: var(--muted); line-height: 1.45; }

/* contact */
.talk { position: relative; display: grid; gap: 44px; }
@media (min-width: 980px) { .talk { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; } }
.contact-sec h2 { color: #fff; }
.team { margin-top: 32px; }
.team-h, .reach-h { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); font-weight: 600; margin-bottom: 10px; }
.who { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.09); }
.av { width: 52px; height: 52px; border-radius: 50%; background: var(--raised); box-shadow: 0 0 0 1.5px rgba(245,196,0,.45); display: grid; place-items: center; }
.av svg { width: 26px; height: 26px; fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-linecap: round; }
.who b { display: block; color: #fff; font-size: 18px; font-weight: 650; }
.who .r { display: block; color: #c9c8d4; font-size: 15px; margin-top: 2px; }
.who .q { display: block; color: #9a99a8; font-size: 13.5px; line-height: 1.5; margin-top: 6px; }
.reach { background: var(--raised); border-radius: 20px; padding: 26px; box-shadow: 0 0 0 1.5px rgba(245,196,0,.35); }
.contact { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding: 16px 0; }
.contact + .contact { border-top: 1px solid rgba(255,255,255,.08); }
.qr { width: 96px; height: 96px; background: #fff; border-radius: 10px; padding: 7px; }
.contact b { display: block; color: #fff; font-size: 18px; }
.contact .ph { display: block; color: #fff; font-size: 20px; font-weight: 600; text-decoration: none; margin: 2px 0 10px; white-space: nowrap; }
.contact .ph:hover { color: var(--yellow); }
.scan { font-size: 13.5px; color: #9a99a8; margin-top: 6px; }
.mail { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); color: #c9c8d4; font-size: 16px; overflow-wrap: anywhere; }
.mail a { color: var(--yellow); font-weight: 600; }
@media (max-width: 420px) { .contact { grid-template-columns: 1fr; } .qr { display: none; } .scan { display: none; } }

/* footer */
.foot { border-top: 1px solid rgba(255,255,255,.07); padding: 40px 0 48px; }
.foot-in { display: grid; gap: 14px; justify-items: start; }

.foot p { color: #9a99a8; font-size: 14px; }
.foot .small { font-size: 13px; color: #7f7e8c; }
.nf { margin: 48px 0 16px; font-size: clamp(32px, 5vw, 52px); }
.disc { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.disc li { font-size: 14px; font-weight: 600; padding: 6px 13px; border-radius: 999px; color: #f2f1ee; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(245,196,0,.38); }
/* the box mark beside the name, as in the email banner */
.mark-lock { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; }
.mark-lock img { width: 40px; height: 40px; }
.wm { display: flex; flex-direction: column; font-size: 15.5px; line-height: 1.08; letter-spacing: -.01em; font-weight: 450; }
.wm b { font-weight: 700; }
.logo { text-decoration: none; }
.nf-logo { margin-bottom: 0; }

/* case study pages (work/*.html) */
.case-hero { padding: 56px 0 64px; }
@media (min-width: 900px) { .case-hero { padding: 96px 0 88px; } }
.case-hero h1 { margin-bottom: 20px; max-width: 20ch; }
.case-facts { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 760px) { .case-facts { grid-template-columns: repeat(3, 1fr); } }
.case-facts div { background: var(--raised); border-radius: var(--r); padding: 18px 20px; box-shadow: inset 0 0 0 1px rgba(245,196,0,.25); }
.case-facts dt { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); font-weight: 600; margin-bottom: 6px; }
.case-facts dd { color: #e4e3ea; font-size: 15.5px; line-height: 1.45; }
.case-grid { display: grid; gap: 36px; }
@media (min-width: 980px) { .case-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; } }
.case-p { color: var(--muted); margin-top: 16px; max-width: 62ch; }
.case-quote .ticks { margin: 16px 0 0; }
.case-svc article h3 { margin-bottom: 8px; }
.case-shots { display: grid; grid-template-columns: 1fr 24%; gap: 18px; align-items: end; margin-top: 40px; }
.case-cta .free { color: #c9c8d4; }
.case-cta .free .link { padding: 0; }
.proj .link { grid-column: 1 / -1; padding-top: 4px; }
.card .link, .white .link, .light .link { color: var(--kick); }
.dark .link, .ask .link { color: var(--yellow); }
.proj.live .link { color: var(--yellow); }
