/* The Vancouver Agency, 2026 refresh.
   Keeps the original's signatures: V mark, typed headline, blue-to-violet gradient text,
   photo cards with four colour-gradient edges, the dark iridescent band, the city
   illustration, the shopkeeper split and the lightbulb. Everything else is new. */

:root {
  --ink: #0b1020;
  --muted: #586174;
  --line: #e7e9f0;
  --bg: #ffffff;
  --soft: #f5f6fa;
  --night: #05060b;
  --brand: linear-gradient(90deg, #001bda 0%, #9b5cff 100%);
  --brand-strong: linear-gradient(90deg, #001bda 0%, #7c3aed 100%);
  --edge-1: linear-gradient(90deg, #03001e, #7303c0, #ec38bc, #bdb0b9);
  --edge-2: linear-gradient(90deg, #03001e, #03c083, #38ec91, #bdb0b9);
  --edge-3: linear-gradient(90deg, #03001e, #ffeb86, #ec9338, #bdb0b9);
  --edge-4: linear-gradient(90deg, #03001e, #c00303, #ffd2d2, #bdb0b9);
  --bulb: #fffb86;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 16, 32, 0.06), 0 12px 32px rgba(11, 16, 32, 0.08);
  --shadow-lift: 0 2px 4px rgba(11, 16, 32, 0.08), 0 22px 48px rgba(11, 16, 32, 0.14);
  --font: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid #4f46e5; outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 84px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.grad-text {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 40em; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 0; transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-strong); color: #fff; box-shadow: 0 8px 24px rgba(0, 27, 218, 0.25); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(0, 27, 218, 0.32); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
/* the original's signature: a thin black outline with gradient lettering */
.btn-outline { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); min-height: 44px; padding: 0 20px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.btn-outline span { background: var(--brand-strong); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  padding-top: env(safe-area-inset-top, 0px);
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(11, 16, 32, 0.06); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; object-fit: cover; object-position: center 40%; border-radius: 9px; background: #000; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; min-height: 44px; }
.menu-btn svg { display: block; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(11, 16, 32, 0.08);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px var(--gutter);
  }
  .nav-links[hidden] { display: none; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { padding-top: 16px; }
  .nav-links .btn-outline { width: 100%; min-height: 52px; }
}
@media (min-width: 861px) { .nav-links[hidden] { display: flex !important; } }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero .ask { display: block; font-weight: 300; font-size: clamp(26px, 3.6vw, 44px); color: var(--muted); letter-spacing: -0.02em; }
.hero h1 { font-size: clamp(42px, 7vw, 86px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin-top: 10px; min-height: 2.04em; }
.typed { display: inline; }
.caret { display: inline-block; width: 0.07em; height: 0.82em; margin-left: 0.06em; vertical-align: -0.04em; background: #7c3aed; border-radius: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
.hero .lead { margin-top: 26px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; color: var(--ink); }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks svg { flex: none; }

/* ---------- offer cards (gradient edges) ---------- */
.offer { padding: 8px 0 clamp(64px, 8vw, 104px); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--edge); }
.card .photo { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.card .body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 28px; flex: 1; }
.card .name { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card .price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.card .price small { font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.card p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; text-decoration: none; color: #1f2fd8; }
.card .more:hover { text-decoration: underline; }
.e1 { --edge: var(--edge-1); }
.e2 { --edge: var(--edge-2); }
.e3 { --edge: var(--edge-3); }
.e4 { --edge: var(--edge-4); }

/* ---------- ten days ---------- */
.how { background: var(--soft); padding: clamp(64px, 8vw, 104px) 0; }
.how .head { display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 56px 0 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 11px; height: 3px; border-radius: 3px; background: var(--brand); opacity: 0.85; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.dot { width: 25px; height: 25px; border-radius: 50%; background: #fff; border: 5px solid #001bda; box-shadow: 0 0 0 6px var(--soft); }
.steps li:last-child .dot { border-color: #7c3aed; }
.day { margin-top: 14px; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.steps p { color: var(--muted); font-size: 16px; max-width: 15em; }
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 40px; }
  .steps::before { left: 11px; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; background: linear-gradient(180deg, #001bda, #9b5cff); }
  .steps li { flex-direction: row; flex-wrap: wrap; align-items: baseline; text-align: left; gap: 4px 16px; padding-left: 0; }
  .steps .dot { flex: none; align-self: flex-start; }
  .day { margin-top: 0; font-size: 28px; }
  .steps p { flex-basis: 100%; padding-left: 41px; max-width: none; }
}

/* ---------- the dark iridescent band ---------- */
.band { position: relative; background: var(--night) url("../images/bg-mobile.jpg") no-repeat right center / auto 120%; color: #fff; padding: clamp(72px, 9vw, 120px) 0; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 6, 11, 0.94) 0%, rgba(5, 6, 11, 0.78) 45%, rgba(5, 6, 11, 0.35) 100%); }
.band .wrap { position: relative; }
.band h2 { max-width: 14em; }
.band .lead { color: #b9c0d4; margin-top: 16px; }
.glass { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
@media (max-width: 960px) { .glass { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .glass { grid-template-columns: minmax(0, 1fr); } }
.pane {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.pane h3 { font-size: 20px; }
.pane p { color: #c8cee0; font-size: 16px; }
.pane a { margin-top: auto; padding-top: 6px; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.pane a:hover { text-decoration: underline; }
.pane.featured { background: rgba(255, 255, 255, 0.1); border: 1px solid transparent; background-image: linear-gradient(rgba(14, 16, 30, 0.88), rgba(14, 16, 30, 0.88)), linear-gradient(90deg, #001bda, #b476ff); background-origin: border-box; background-clip: padding-box, border-box; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--brand-strong); color: #fff; }

/* ---------- portfolio ---------- */
.work { padding: clamp(64px, 8vw, 112px) 0; }
.work .head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
@media (max-width: 1080px) { .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.shot { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
@media (prefers-reduced-motion: reduce) { .shot, .shot:hover { transition: none; transform: none; } }
.shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--edge); }
.shot img { aspect-ratio: 1200 / 630; width: 100%; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.shot .meta { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 20px; }
.shot .meta b { font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shot .meta span { font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) { .shot .meta { padding: 10px 12px 16px; } .shot .meta span { display: none; } }

/* ---------- city split ---------- */
.city { padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split .copy { display: flex; flex-direction: column; gap: 20px; }
.split .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.city img { width: 100%; max-width: 520px; justify-self: center; }

/* ---------- shopkeeper split ---------- */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--soft); }
@media (max-width: 860px) { .shop { grid-template-columns: minmax(0, 1fr); } }
.shop .photo { min-height: 420px; background: url("../images/hero/shop.jpg") center 30% / cover no-repeat; }
.shop .copy { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(40px, 7vw, 96px) max(20px, env(safe-area-inset-right, 0px)) clamp(40px, 7vw, 96px) clamp(20px, 6vw, 88px); max-width: 640px; }
.shop .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

/* ---------- quote ---------- */
.quote { padding: clamp(72px, 9vw, 120px) 0; text-align: center; }
.bulb { width: 64px; height: 64px; margin: 0 auto 18px; filter: drop-shadow(-1px 3px 4px rgba(56, 56, 56, 0.45)); }
.quote .lead { margin: 16px auto 0; }
.form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px;
  max-width: 760px; margin: 44px auto 0; padding: clamp(22px, 4vw, 40px);
  background: #fff; border-radius: 24px; box-shadow: var(--shadow-lift); text-align: left;
}
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 700; }
.field input, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--font); color: var(--ink);
  padding: 14px 16px; border-radius: 12px; border: 1.5px solid #c9cfdc; background: #fbfcfe;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15); }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; min-height: 56px; font-size: 17px; }
.form .fine { font-size: 14px; color: var(--muted); text-align: center; }
.form .error { color: #b00020; font-size: 15px; font-weight: 600; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- current page in the nav ---------- */
.nav-links a[aria-current="page"]:not(.btn) { color: var(--ink); }

/* ---------- portfolio cards that open a case study ---------- */
.shot .cs-tag {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  padding: 6px 10px; border-radius: 999px; background: var(--brand-strong); color: #fff;
  box-shadow: 0 4px 12px rgba(0, 27, 218, 0.25);
}

/* ---------- article cards (homepage "From our articles" and /articles/) ---------- */
.reads { padding: clamp(64px, 8vw, 104px) 0 0; }
.reads .head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.reads-all { font-weight: 700; font-size: 16px; color: #1f2fd8; text-decoration: none; }
.reads-all:hover { text-decoration: underline; }
.acards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
@media (max-width: 960px) { .acards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .acards { grid-template-columns: minmax(0, 1fr); } }
.acard .acard-title { font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; }
.acard .acard-title a { text-decoration: none; }
.acard .acard-title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.acard .acard-title a:focus-visible { outline: none; }
.acard:has(a:focus-visible) { outline: 3px solid #4f46e5; outline-offset: 3px; }
.acard p { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acard .acard-meta { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- reveal on scroll (content stays visible without JavaScript) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.trades { margin: 28px auto 0; max-width: 46rem; text-align: center; font-size: 17px; line-height: 1.6; color: var(--muted); }
.trades a { color: var(--ink); font-weight: 600; }
