/* Shared styles for every page except the homepage (project pages, later service pages).
   The homepage keeps its own built-in <style>. The first part of this file is copied from it
   (colors, fonts, buttons, header, quote section, footer) so new pages look the same.
   If you change one of those parts on the homepage, change it here too. */

:root {
  --cream: #f2efe9;
  --cream-2: #e8e4dd;
  --paper: #f8f6f2;
  --ink: #1f2024;
  --muted: #6b6862;
  --rule: #c9c4bc;
  --orange: #e0643a;
  --brown: #5e3529;
  --white: #ffffff;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; } /* in-page links stop below the sticky header */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 22px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Shared type */
.eyebrow { font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .22em; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.eyebrow .dia { width: 14px; height: 14px; background: var(--orange); transform: rotate(45deg); flex: none; }
.eyebrow .n { color: var(--orange); letter-spacing: .1em; }
.big { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .9; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
.big em { font-style: normal; color: var(--orange); }
.lede { color: var(--muted); font-size: 19px; max-width: 46ch; margin: 22px 0 0; }
.tlink { display: inline-flex; align-items: center; gap: 14px; font-family: var(--body); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 14px; text-decoration: none; color: var(--ink); }
.tlink svg { color: var(--orange); flex: none; }
.tlink:hover { color: var(--orange); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; background: var(--ink); color: var(--paper); text-decoration: none; border: 0; cursor: pointer; font-family: var(--body); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; padding: 18px 26px; }
.btn.orange { background: var(--orange); color: var(--white); }
.btn:hover { filter: brightness(1.12); }

/* Header: sticks to the top of the screen. Once the page is scrolled, the script at the end adds .slim to make it shorter */
header.top { position: sticky; top: 0; z-index: 50; background: var(--cream); isolation: isolate; transition: box-shadow .2s ease; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; border-bottom: 2px solid var(--rule); transition: padding .2s ease, border-color .2s ease; }
/* Logo shrinks proportionally on narrow screens so the button always stays on one line */
header.top img { display: block; flex: 0 1 auto; min-width: 0; width: auto; height: auto; max-height: 46px; mix-blend-mode: multiply; transition: max-height .2s ease; }
header.top .btn { flex: none; white-space: nowrap; padding: 12px 16px; font-size: 12px; transition: padding .2s ease; }
header.top.slim { box-shadow: 0 6px 18px rgba(31, 32, 36, .12); }
header.top.slim .wrap { padding-block: 9px; border-bottom-color: transparent; }
header.top.slim img { max-height: 34px; }
header.top.slim .btn { padding: 10px 14px; }
/* "Our work" link in the header: laptops only. Phones keep just the logo and the quote button */
header.top .head-actions { display: flex; align-items: center; gap: 24px; flex: none; }
header.top .nav-link { display: none; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; text-decoration: none; color: var(--ink); }
header.top .nav-link:hover, header.top .nav-link[aria-current] { color: var(--orange); }
@media (min-width: 761px) { header.top .nav-link { display: inline-block; } }
/* Phones: a slim row of page links under the header (laptops show them in the header instead) */
header.top .m-nav { border-bottom: 2px solid var(--rule); transition: border-color .2s ease; }
header.top .m-nav .wrap { justify-content: flex-start; gap: 0; padding-block: 9px; border-bottom: 0; }
header.top.slim .m-nav .wrap { padding-block: 7px; }
header.top.slim .m-nav { border-bottom-color: transparent; }
header.top .m-nav a { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
header.top .m-nav a + a::before { content: "/"; color: var(--orange); margin: 0 12px; }
header.top .m-nav a[aria-current], header.top .m-nav a:hover { color: var(--orange); }
@media (min-width: 761px) { header.top .m-nav { display: none; } }
@media (max-width: 760px) {
  header.top > .wrap { border-bottom: 0; }
  html { scroll-padding-top: 100px; } /* in-page links stop below the taller phone header */
}
@media (prefers-reduced-motion: reduce) { header.top, header.top .wrap, header.top img, header.top .btn { transition: none; } }

/* Quote */
.quote { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; isolation: isolate; }
.quote::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 26%; background: var(--brown); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.quote .wrap { padding-block: 88px 96px; }
.quote .eyebrow { color: #b9b4ac; }
.quote .big { font-size: clamp(54px, 12vw, 100px); }
.quote .lede { color: #d6d1c9; }
.quote .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.quote .btn.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper); }
.quote .reach { display: flex; flex-wrap: wrap; gap: 18px 44px; margin-top: 28px; }
.quote .reach .lbl { font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .22em; font-size: 12px; color: var(--orange); margin: 0 0 6px; }
.quote .reach a { color: var(--paper); font-weight: 700; font-size: 16px; text-decoration: none; }
.quote .reach a:hover { color: var(--orange); }

/* Footer */
footer { background: #18191c; color: var(--paper); border-top: 10px solid var(--orange); }
footer .wrap { padding-block: 56px 32px; }
footer .cols { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 40px 48px; }
/* Brand panel: the official full-color logo on a light panel so it matches Facebook/Google */
footer .brand { align-self: start; background: var(--paper); border-top: 4px solid var(--orange); padding: 20px 22px 22px; isolation: isolate; }
footer .brand img { display: block; width: 284px; max-width: 100%; height: auto; mix-blend-mode: multiply; }
footer .brand p { color: var(--muted); font-size: 15px; max-width: 34ch; margin: 14px 0 0; }
footer .fh { font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .22em; font-size: 13px; color: var(--orange); margin: 0 0 16px; }
footer .flinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
footer .flinks a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; color: var(--paper); text-decoration: none; }
footer .flinks a[href]:hover { color: var(--orange); }
footer .flinks svg { color: var(--orange); flex: none; }
footer .flinks a.email { text-transform: none; letter-spacing: .02em; }
footer .hours li { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; color: var(--paper); }
footer .fnote { color: #c9c5be; font-size: 15px; max-width: 13em; margin: 16px 0 0; }
footer .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(248,246,242,.14); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; color: #a8a39b; }
footer .tlink { color: var(--paper); }
footer .brand .tlink { color: var(--ink); margin-top: 16px; }
@media (max-width: 999px) { footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Everything below is only for the non-home pages ---------- */

/* Header logo links home on these pages (on the homepage it is a plain image) */
header.top .logo { display: flex; flex: 0 1 auto; min-width: 0; }
header.top .logo img { max-width: 100%; }

/* Breadcrumb */
.crumbs { margin: 26px 0 0; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.crumbs li + li::before { content: "/"; color: var(--orange); margin-right: 10px; }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.crumbs [aria-current] { color: var(--muted); }

/* Project page: title area */
.case-hero { padding-block: 34px 36px; }
.case-hero h1 { font-size: clamp(42px, 8.4vw, 92px); }
.case-hero .meta { margin: 20px 0 0; font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case-hero .lede { max-width: 58ch; }

/* Before/after photo pairs with BEFORE / AFTER tags in the brand style */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.pair figure { position: relative; margin: 0; }
.pair img, .loads img { display: block; width: 100%; height: auto; background: var(--cream-2); }
@media (max-width: 640px) { .pair.wide { grid-template-columns: 1fr; } }
.tag { position: absolute; top: 12px; left: 12px; font-family: var(--display); text-transform: uppercase; font-size: clamp(15px, 2.2vw, 20px); line-height: 1; letter-spacing: .04em; color: var(--white); background: var(--ink); padding: 7px 11px 6px; }
.tag.after { background: var(--orange); }
.cap { margin: 12px 0 0; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Project page: write-up */
.case-body { padding-block: 8px 88px; }
.case-body > * { max-width: 780px; }
.case-body h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 5vw, 44px); line-height: 1; margin: 64px 0 18px; }
.case-body p { margin: 0 0 16px; font-size: 18px; }
.case-body .pair, .case-body .loads { margin: 28px 0 0; }
.case-body .after-figure { margin-top: 28px; }
.case-body .cap { margin: 12px 0 0; font-size: 12px; }
.loads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.loads figure { margin: 0; }
@media (max-width: 640px) { .loads { grid-template-columns: 1fr; } }

/* Project at a glance */
.glance { margin: 48px 0 0; background: var(--paper); border-top: 4px solid var(--orange); padding: 24px 26px 18px; }
.glance h2 { margin: 0 0 10px; }
.glance dl { display: grid; grid-template-columns: minmax(118px, 32%) minmax(0, 1fr); margin: 0; }
.glance dt, .glance dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.glance dt { padding-right: 16px; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.9; }
.glance dd { font-weight: 700; }
.glance dl > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 480px) {
  .glance dl { grid-template-columns: 1fr; }
  .glance dt { border-bottom: 0; padding-bottom: 0; }
  .glance dl > dt:nth-last-child(2) { border-bottom: 0; }
}

/* Customer review card (same look as the homepage card) */
.case-review { margin: 28px 0 0; background: var(--paper); border-left: 4px solid var(--orange); padding: 26px 28px; }
.case-review .stars { margin: 0 0 12px; color: var(--orange); font-size: 20px; letter-spacing: .12em; line-height: 1; }
.case-review blockquote { margin: 0; }
.case-review blockquote p { margin: 0; font-size: 19px; line-height: 1.55; }
.case-review figcaption { margin-top: 16px; font-weight: 700; }
.case-review .src { display: block; margin-top: 4px; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* FAQ and "keep exploring" links */
.case-body h3 { margin: 28px 0 10px; font-size: 20px; line-height: 1.35; }
.more { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }

/* Quote section headline is longer on these pages */
.quote .big.cta { font-size: clamp(40px, 8vw, 76px); }

/* ---------- Proof-first project layout ---------- */

/* Title + before/after: stacked on phones (photo inside the first screen), side by side on laptops */
.hero2 { padding-block: 22px 40px; display: grid; gap: 22px; }
.hero2 .eyebrow { margin-bottom: 14px; }
.hero2 h1 { font-size: clamp(36px, 9.6vw, 56px); }
.hero2 .meta { margin: 14px 0 0; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero2 .lede { font-size: 17px; margin-top: 14px; }
@media (min-width: 900px) {
  .hero2 { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 48px; align-items: center; padding-block: 34px 56px; }
  .hero2 h1 { font-size: clamp(48px, 5vw, 66px); }
  .hero2 .lede { font-size: 19px; }
}

/* Static before/after: two matched photos side by side, split by a thin light divider */
.sbs-fig { margin: 0; }
.sbs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--paper); }
.sbs-panel { position: relative; }
.sbs-panel img { display: block; width: 100%; height: auto; background: var(--cream-2); }
.sbs-panel:last-child .tag { left: auto; right: 12px; }
.hero2 .cap { margin-top: 10px; }

/* Stats strip: the dark band from the homepage, with orange numbers */
.stats { background: var(--ink); color: var(--paper); border-top: 10px solid var(--orange); }
.stats ul { list-style: none; margin: 0 auto; padding-block: 30px 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
@media (min-width: 760px) { .stats ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats strong { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--orange); font-size: clamp(34px, 6vw, 52px); line-height: 1; }
.stats span { display: block; margin-top: 8px; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #c9c5be; }

/* Review + a small quote card, right after the stats */
.proof-row { display: grid; gap: 16px; padding-block: 40px 8px; }
.proof-row .case-review { margin: 0; }
.ask { background: var(--ink); color: var(--paper); padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ask .ask-title { margin: 0 0 18px; color: var(--paper); font-family: var(--display); text-transform: uppercase; font-size: clamp(28px, 4vw, 34px); line-height: 1; }
.ask p { margin: 14px 0 0; color: #c9c5be; font-size: 16px; }
.ask a:not(.btn) { color: var(--paper); font-weight: 700; }
@media (min-width: 900px) { .proof-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; padding-block: 56px 16px; } }

/* The story in three numbered parts, in the homepage's "01 /" style */
.case-body .story-title { margin-top: 56px; font-size: clamp(40px, 7vw, 64px); }
.case-body .step { margin: 56px 0 12px; }
.case-body .step + h3 { margin: 0 0 18px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 4.6vw, 40px); line-height: 1; }

/* A short highlighted note inside the story */
.callout { margin: 28px 0 0; background: var(--paper); border-left: 4px solid var(--orange); padding: 18px 22px; }
.case-body .callout p { margin: 0; font-size: 17px; }
.callout .lbl { display: block; margin-bottom: 6px; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }

/* How it works: three steps, stacked on phones, in a row on laptops */
.how { list-style: none; margin: 8px 0 0; padding: 0; border-top: 2px solid var(--rule); }
.how li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 14px; padding-block: 18px; border-bottom: 2px solid var(--rule); }
.how .num { grid-row: span 2; font-family: var(--display); color: var(--orange); font-size: 34px; line-height: 1; }
.how strong { font-size: 18px; }
.case-body .how p { margin: 0; color: var(--muted); font-size: 16px; }
@media (min-width: 760px) {
  .how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; border-bottom: 2px solid var(--rule); }
  .how li { border-bottom: 0; grid-template-columns: 1fr; padding-block: 22px; }
  .how .num { grid-row: auto; margin-bottom: 8px; }
}

/* ---------- Our Work page ---------- */
.work-hero { padding-block: 22px 34px; }
.work-hero h1 { font-size: clamp(56px, 14vw, 112px); }
/* One card per project: photos + summary. Stacked on phones, side by side on laptops */
.featured { display: grid; gap: 22px; margin: 0 0 88px; background: var(--paper); border-top: 4px solid var(--orange); padding: 14px 14px 26px; }
.featured + .featured { margin-top: -64px; }
.featured .sbs { text-decoration: none; }
.featured .sbs-panel { display: block; }
.featured-text { padding-inline: 8px; }
.featured .meta { margin: 0; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.featured h2 { margin: 12px 0 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 6vw, 48px); line-height: 1; }
.featured h2 a { color: inherit; text-decoration: none; }
.featured h2 a:hover { color: var(--orange); }
.featured-text > p:not(.meta) { margin: 14px 0 0; color: var(--muted); }
.mini-stats { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.mini-stats strong { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--orange); font-size: 30px; line-height: 1; }
.mini-stats span { display: block; margin-top: 4px; font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.featured .tlink { margin-top: 24px; }
@media (min-width: 900px) {
  .featured { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; padding: 24px; align-items: center; }
  .featured-text { padding-inline: 0 12px; }
}

/* ---------- Services page ---------- */
.jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-block; padding: 7px 11px; font-size: 13px; background: var(--paper); border: 2px solid var(--rule); color: var(--ink); text-decoration: none; font-weight: 700; }
.jump a:hover { border-color: var(--orange); color: var(--orange); }
.case-body.svc-page { padding-top: 0; }
.svc-item { padding-block: 34px; border-bottom: 2px solid var(--rule); max-width: 780px; }
.svc-item:first-of-type { margin-top: 32px; border-top: 2px solid var(--rule); }
.case-body .svc-item .eyebrow { margin: 0 0 10px; }
.case-body .svc-item h2 { margin: 0 0 12px; font-size: clamp(34px, 6vw, 52px); }
.case-body .svc-item p:not(.eyebrow) { margin: 0 0 16px; }
