/* The Lowrey Agency. White page, black type, one ultramarine for anything you can tap.
   Archivo throughout: the wide cut (wdth 125) for headlines, normal width for reading. */
:root {
  --paper: #ffffff;
  --ink: #000000;
  --ink-2: #4a4d55;
  --rule: #e4e5ea;
  --wash: #f2f3f6;
  --blue: #2a3bff;
  --blue-dark: #1726c4;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Archivo", system-ui, sans-serif; font-variation-settings: "wdth" 100; font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ol { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible + .ba__handle { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 14px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }

h1, h2 { font-variation-settings: "wdth" 125; font-weight: 800; letter-spacing: -0.02em; line-height: 0.95; text-wrap: balance; }
h1 { font-size: clamp(3.3rem, 7.6vw, 7rem); }
h2 { font-size: clamp(2.3rem, 4.6vw, 4rem); }
h3 { font-variation-settings: "wdth" 112; font-weight: 700; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; }

/* buttons and links: blue means you can tap it */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }
.btn--line { border: 1.5px solid var(--ink); }
.btn--line:hover { border-color: var(--blue); color: var(--blue); }
.btn--big { min-height: 60px; padding: 0 30px; font-size: 1.1rem; }
.text-link { color: var(--blue); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.text-link:hover { color: var(--blue-dark); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.top__row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-variation-settings: "wdth" 112; font-weight: 700; letter-spacing: -0.01em; }
.top__nav { display: flex; gap: 26px; margin-left: auto; }
.top__nav a { text-decoration: none; color: var(--ink-2); }
.top__nav a:hover { color: var(--blue); }
.top__call { font-weight: 700; color: var(--blue); text-decoration: none; white-space: nowrap; }
.top__call-label { color: var(--ink-2); font-weight: 500; }

/* hero: the work is the headline */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero__lede { margin-top: 26px; max-width: 30em; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__who { margin-top: 28px; color: var(--ink-2); font-size: .95rem; }

.ba { justify-self: center; width: min(100%, 400px, calc((100svh - 170px) * 9 / 16)); min-width: min(100%, 260px); }
.ba__frame { position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: var(--wash); box-shadow: 0 0 0 1px rgba(0,0,0,.08); touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.ba__before, .ba__after, .ba__after video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__frame::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); pointer-events: none; }
.ba__handle { position: absolute; top: 50%; left: var(--pos); z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); pointer-events: none; }
.ba__tag { position: absolute; top: 14px; z-index: 2; padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; pointer-events: none; }
.ba__tag--before { left: 14px; background: #000; color: #fff; }
.ba__tag--after { right: 14px; background: var(--blue); color: #fff; }
.ba__range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ba figcaption { margin-top: 12px; text-align: center; font-size: .9rem; color: var(--ink-2); }

/* work */
.work { padding-block: clamp(64px, 9vw, 120px); background: var(--wash); }
.feature { margin-top: clamp(32px, 5vw, 56px); padding: clamp(24px, 4vw, 48px); background: var(--paper); border-radius: 20px; }
.feature__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 16px 40px; align-items: baseline; }
.feature__head h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-variation-settings: "wdth" 125; font-weight: 800; }
.feature__head p { color: var(--ink-2); max-width: 36em; }
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 32px); margin-top: clamp(28px, 4vw, 44px); }
.clip video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; background: var(--wash); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.clip figcaption { margin-top: 12px; font-weight: 600; }
.changes { width: 100%; margin-top: clamp(32px, 5vw, 52px); border-collapse: collapse; text-align: left; }
.changes caption { text-align: left; font-variation-settings: "wdth" 112; font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; }
.changes th { padding: 10px 16px 10px 0; font-size: .85rem; font-weight: 700; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); }
.changes th:last-child { color: var(--blue); }
.changes td { padding: 16px 16px 16px 0; vertical-align: top; border-bottom: 1px solid var(--rule); width: 50%; }
.changes td:first-child { color: var(--ink-2); }
.changes td:last-child { font-weight: 600; }
.more { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(20px, 4vw, 48px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.more__media { display: block; overflow: hidden; border-radius: 18px; background: #000; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.more__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.more__media:hover img { transform: scale(1.03); }
.more__media--wide { aspect-ratio: 16 / 10; }
.more__media--phone { aspect-ratio: 9 / 13; }
.more__media--phone img { object-position: top; }
.more__item h3 { margin-top: 20px; font-size: 1.45rem; }
.more__item p { margin-top: 8px; color: var(--ink-2); max-width: 34em; }
.more__item .text-link { display: inline-block; margin-top: 12px; }

/* services */
.services { padding-block: clamp(64px, 9vw, 120px); }
.services__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px) clamp(32px, 6vw, 96px); margin-top: clamp(32px, 5vw, 56px); }
.services__grid h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
.services__grid p { margin-top: 10px; color: var(--ink-2); max-width: 32em; }

/* process: a real sequence, so it's numbered */
.process { padding-block: 0 clamp(64px, 9vw, 120px); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(32px, 5vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font-variation-settings: "wdth" 125; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--blue); margin-bottom: 14px; }
.steps p { margin-top: 8px; color: var(--ink-2); }

/* about */
.about { padding-block: clamp(64px, 9vw, 120px); background: var(--wash); }
.about__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; border-radius: 20px; }
.about p { margin-top: 18px; max-width: 32em; color: var(--ink-2); font-size: 1.12rem; }
.about p:first-of-type { margin-top: 26px; }

/* contact */
.contact { padding-block: clamp(72px, 11vw, 144px); text-align: center; }
.contact h2 { font-size: clamp(2.8rem, 7vw, 6rem); }
.contact p { margin: 22px auto 0; max-width: 30em; color: var(--ink-2); font-size: 1.15rem; }
.contact__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.contact__email { display: inline-block; margin-top: 24px; color: var(--ink-2); text-underline-offset: 4px; }
.contact__email:hover { color: var(--blue); }

/* footer */
.foot { border-top: 1px solid var(--rule); }
.foot__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 96px; font-size: .9rem; color: var(--ink-2); }
.foot__row .brand { color: var(--ink); }
.foot__row > a:last-child { text-underline-offset: 4px; }
.foot__row > a:last-child:hover { color: var(--blue); }

@media (max-width: 960px) {
  .top__nav { display: none; }
  .top__call { margin-left: auto; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .ba { width: min(100%, 380px); }
  .feature__head { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .top__call-label { display: none; }
  .brand span { font-size: .95rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .clips { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .clips::-webkit-scrollbar { display: none; }
  .clip { scroll-snap-align: center; }
  .changes thead { display: none; }
  .changes tr { display: grid; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .changes td { width: auto; padding: 0; border: 0; }
  .changes td:first-child { font-size: .92rem; }
  .changes td:first-child::before { content: "Before: "; font-weight: 700; }
  .changes td:last-child { margin-top: 6px; }
  .changes td:last-child::before { content: "After: "; color: var(--blue); }
  .more, .services__grid, .about__grid { grid-template-columns: minmax(0, 1fr); }
  .more__media--phone { max-width: 320px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .about__photo { max-width: 420px; }
  .contact__actions .btn { flex: 1 1 100%; }
  .foot__row { flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.case-label { margin-top: 20px !important; color: var(--blue) !important; font-size: .78rem; font-weight: 750; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; }
.case-label + h3 { margin-top: 8px; }
.case-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 14px; }
.case-links .text-link { margin-top: 0; }
@media (max-width: 640px) { .case-links { align-items: flex-start; flex-direction: column; gap: 10px; } }
