/* Section layouts shared by every page: heads, audiences, services, packages, steps, FAQ, enquiry,
   plus the pricing, process, guide, legal and 404 page pieces. */

.section { position: relative; padding-block: var(--space-section); border-top: 1px solid var(--line); }
/* Crop marks in the corners of each section, like a render region */
.section::before, .section::after { content: ""; position: absolute; top: 1.25rem; width: 14px; height: 14px; border-top: 1px solid var(--line-strong); pointer-events: none; }
.section::before { left: var(--gutter); border-left: 1px solid var(--line-strong); }
.section::after { right: var(--gutter); border-right: 1px solid var(--line-strong); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 1.8rem + 2vw, 4rem); }
.section-head .muted { margin-top: 1.1rem; max-width: 36rem; }
.section-head--split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; max-width: none; }
.section-head--split .muted { margin-top: 0; }
@media (max-width: 880px) { .section-head--split { grid-template-columns: 1fr; } }

/* Line illustrations: drawn in as wireframes, then the accent strokes light up (motion.js adds .is-drawn) */
.draw { fill: none; stroke: #6a6d66; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.draw .accent { stroke: var(--lime); }
.draw .accent-red { stroke: var(--red); }
/* pathLength="1" makes dash lengths fractions of the path, so the dashed frame uses small fractions */
.draw .dashed { stroke-dasharray: .02 .015; }
.motion .draw [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1400ms var(--ease); }
.motion .draw .accent, .motion .draw .accent-red { transition-delay: 500ms; }
.motion .draw.is-drawn [pathLength] { stroke-dashoffset: 0; }
.motion .draw.is-drawn .dashed { stroke-dasharray: .02 .015; }

/* Audiences */
.audience-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.audience { position: relative; display: flex; flex-direction: column; gap: .9rem; padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); background: var(--raised); transition: background-color 400ms var(--ease); }
.audience + .audience { border-left: 1px solid var(--line); }
.audience:hover { background: var(--raised-2); }
.audience__art { width: 100%; max-width: 15rem; height: auto; margin-bottom: .75rem; }
.audience__tag { color: var(--lime); font-size: .6875rem; }
.audience__title { font-size: 1.35rem; line-height: 1.12; }
.audience p:not(.mono) { color: #d9d6cf; font-size: 1rem; }
.audience__fit { margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--line-strong); color: var(--muted); font-size: .6875rem; }
@media (max-width: 960px) { .audience-list { grid-template-columns: 1fr; } .audience + .audience { border-left: 0; border-top: 1px solid var(--line); } }

/* Industries: a contact sheet of line drawings; the 1px gap over the line colour draws the grid */
.industry-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--line); }
.industry { display: flex; flex-direction: column; gap: .75rem; padding: clamp(1rem, .8rem + .8vw, 1.5rem); background: var(--raised); transition: background-color 400ms var(--ease); }
.industry:hover { background: var(--raised-2); }
.industry__art { width: 2.75rem; height: 2.75rem; }
.industry__title { font-size: 1rem; line-height: 1.2; }
.industry p { color: #d9d6cf; font-size: .9375rem; }
.industry--any { background: var(--charcoal, var(--raised)); }
.industry--any .industry__title { color: var(--lime); }
.industries__more { margin-top: 1.5rem; }

/* Industries page: jump links, then one split block per industry */
.ind-jump { margin-top: 2rem; }
.ind-jump ul { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .75rem; }
.ind-jump a { display: inline-block; padding: .5rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ivory); text-decoration: none; }
.ind-jump a:hover { border-color: var(--lime); color: var(--lime); }
.ind { scroll-margin-top: 5.5rem; padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); border-top: 1px solid var(--line); }
.ind__fit { margin-top: 1rem; color: var(--lime); font-size: .75rem; }
.ind .split__body { display: grid; gap: 1rem; color: #d9d6cf; }
@media (max-width: 1100px) { .industry-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .industry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Smallest phones: one column, drawing beside the name, so long words like "manufacturing" never break out */
@media (max-width: 400px) {
  .industry-grid { grid-template-columns: 1fr; }
  .industry { flex-direction: row; align-items: center; gap: 1rem; padding-block: .85rem; }
  .industry__art { flex: none; width: 2.25rem; height: 2.25rem; }
}

/* Services */
.services__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.service-block { padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.service-block--studio { background: var(--ivory); color: var(--graphite); border-color: var(--ivory); }
.service-block--studio .muted { color: #4a4c47; }
.service-block__title { font-size: 1.6rem; margin-bottom: 1.5rem; }
.service-block__note { display: block; margin-top: .6rem; font-size: .6875rem; font-stretch: 100%; letter-spacing: .1em; color: #a3311f; }
.service-list { display: grid; margin-bottom: 1.25rem; }
.service-list li { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: .25rem 1.5rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.service-block--studio .service-list li { border-top-color: #d8d2c4; }
.service-list b { font-weight: 600; }
.service-list span { color: var(--muted); font-size: .9688rem; }
.service-block--studio .service-list span { color: #4a4c47; }
@media (max-width: 960px) { .services__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .service-list li { grid-template-columns: 1fr; } }

/* Packages */
.pkgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.pkg { position: relative; display: flex; flex-direction: column; gap: .8rem; padding: 1.6rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised); transition: border-color var(--fast), transform 400ms var(--ease); }
.pkg:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pkg--featured { border-color: var(--lime); background: linear-gradient(180deg, rgb(201 247 85 / .07), transparent 40%), var(--raised); }
.pkg__flag { position: absolute; top: -.7rem; left: 1.4rem; padding: .25rem .55rem; background: var(--lime); color: var(--graphite); border-radius: 2px; font-size: .625rem; }
.pkg__pass { color: var(--muted); font-size: .625rem; }
.pkg__name { font-size: 1.45rem; }
.pkg__price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.pkg__amount { font: 800 2.4rem/1 var(--font-display); font-stretch: 125%; letter-spacing: -.03em; }
.pkg__from { color: var(--muted); font-size: .9375rem; }
.pkg__cur { color: var(--muted); font-size: .6875rem; }
.pkg__fit { color: #d9d6cf; font-size: .9688rem; min-height: 3em; }
.pkg__list { display: grid; gap: .45rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9375rem; }
.pkg__list li { display: flex; gap: .6rem; }
.pkg__list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .6em; background: var(--lime); transform: rotate(45deg); }
.pkg__cta { margin-top: auto; padding-top: 1.25rem; color: var(--lime); font-weight: 600; text-decoration: none; }
.pkg__cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pkg__cta:focus-visible { outline: none; }
.pkg:has(.pkg__cta:focus-visible) { outline: 3px solid var(--lime); outline-offset: 3px; }
.packages__more { margin-top: 2rem; }
@media (max-width: 1100px) { .pkgs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pkgs { grid-template-columns: 1fr; } }

/* Process steps: a render progress bar fills across them (motion.js sets --pp) */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; padding-top: 2rem; border-top: 2px solid var(--line); }
.motion .steps::before { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 2px; background: var(--lime); transform-origin: left; transform: scaleX(var(--pp, 0)); }
.step { position: relative; display: flex; flex-direction: column; gap: .6rem; }
.step::before { content: ""; position: absolute; top: calc(-2rem - 6px); left: 0; width: 10px; height: 10px; background: var(--graphite); border: 2px solid var(--line-strong); transform: rotate(45deg); transition: background-color 300ms, border-color 300ms; }
.motion .step.is-lit::before, html:not(.motion) .step::before { background: var(--lime); border-color: var(--lime); }
.step__num { color: var(--lime); font-size: .6875rem; }
.step__title { font-size: 1.15rem; line-height: 1.15; }
.step p:not(.mono) { color: var(--muted); font-size: .9375rem; }
.step__pay { margin-top: auto; padding-top: .75rem; color: var(--ivory); font-size: .625rem; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; gap: 1.75rem; padding-top: 0; padding-left: 2rem; border-top: 0; border-left: 2px solid var(--line); }
  .motion .steps::before { top: 0; bottom: 0; left: -2px; right: auto; width: 2px; height: auto; transform-origin: top; transform: scaleY(var(--pp, 0)); }
  .step::before { top: .2rem; left: calc(-2rem - 6px); }
}

/* FAQ */
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem 4rem; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { position: relative; display: block; padding: 1.25rem 3rem 1.25rem 0; cursor: pointer; font-weight: 600; font-size: 1.0625rem; list-style: none; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; position: absolute; right: .5rem; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: translateY(-75%) rotate(45deg); transition: transform var(--fast) var(--ease); }
.faq__list details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq__list summary:hover { color: var(--lime); }
.faq__list details > :not(summary) { padding-bottom: 1.4rem; color: #d9d6cf; max-width: 46rem; }
@media (max-width: 880px) { .faq__grid { grid-template-columns: 1fr; } }

/* Enquiry */
.brief { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.brief__form { display: grid; gap: 1.25rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised); }
.brief__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.brief__status { min-height: 1.5em; color: var(--lime); font-weight: 500; }
.brief__status.is-error { color: var(--red-text); }
.brief__aside { display: grid; gap: 1.5rem; }
.brief__aside-title { font-size: 1.35rem; }
.next-steps { counter-reset: next; display: grid; gap: 1.1rem; }
.next-steps li { counter-increment: next; position: relative; padding-left: 2.75rem; color: var(--muted); font-size: .9688rem; }
.next-steps li b { display: block; color: var(--ivory); }
.next-steps li::before { content: "0" counter(next); position: absolute; left: 0; top: .1rem; font: 500 .75rem/1 var(--font-mono); color: var(--graphite); background: var(--lime); padding: .3rem .35rem; border-radius: 2px; }
.direct { display: grid; gap: .25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.direct__label { margin-bottom: .5rem; color: var(--muted); font-size: .6875rem; }
.direct__link { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: baseline; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--ivory); text-decoration: none; overflow-wrap: anywhere; }
.direct__link .mono { color: var(--lime); font-size: .6875rem; }
.direct__link:hover { color: var(--lime); }
@media (max-width: 960px) { .brief { grid-template-columns: 1fr; } }

/* Floating enquiry button (shown between the hero and the enquiry section) */
.float-cta { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .7); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
html:not(.js) .float-cta { display: none; }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2.5rem, 2rem + 2vw, 4rem); position: relative; overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; opacity: .35; mask-image: linear-gradient(to bottom, #000, transparent); }
.page-head__title { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5rem); font-weight: 800; letter-spacing: -.035em; line-height: .98; max-width: 16ch; }
.page-head__lead { margin-top: 1.4rem; max-width: 42rem; color: #d9d6cf; font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); }
.page-head__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 1.75rem; color: var(--muted); }
.page-head__facts b { color: var(--ivory); font-weight: 500; }
.breadcrumb { margin-bottom: 1.75rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; font: 500 .75rem/1.4 var(--font-mono); letter-spacing: .06em; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current] { color: var(--ivory); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.table-wrap:focus-visible { outline-offset: 2px; }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .9375rem; }
.compare caption { text-align: left; padding: 1rem 1.25rem; color: var(--muted); font-size: .875rem; caption-side: bottom; border-top: 1px solid var(--line); }
.compare th, .compare td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { position: sticky; top: 0; background: var(--raised); font: 600 1rem/1.2 var(--font-body); }
.compare thead th span { display: block; margin-top: .3rem; color: var(--lime); font: 500 .75rem/1 var(--font-mono); letter-spacing: .06em; }
.compare tbody th { color: var(--muted); font-weight: 500; width: 22%; }
.compare .is-featured { background: rgb(201 247 85 / .05); }
.compare .yes { color: var(--lime); }
.compare tbody tr:last-child > * { border-bottom: 0; }

/* Terms */
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.term { display: grid; align-content: start; gap: .6rem; padding: 1.5rem; background: var(--graphite); }
.term__label { color: var(--lime); font-size: .6875rem; }
.term h3 { font-size: 1.1rem; line-height: 1.2; }
.term p:not(.mono) { color: var(--muted); font-size: .9375rem; }
@media (max-width: 960px) {
  .terms { grid-template-columns: 1fr 1fr; }
  .term:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd count would leave an empty cell */
}
@media (max-width: 600px) { .terms { grid-template-columns: 1fr; } }

/* Split block: copy + timeline / list */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem 4rem; align-items: start; }
.split + .split { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.split__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.split__body { display: grid; gap: 1rem; color: #d9d6cf; }
.split__body h3 { color: var(--ivory); font-size: 1.15rem; margin-top: .75rem; }
.ticks { display: grid; gap: .65rem; }
.ticks li { position: relative; padding-left: 1.4rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--lime); transform: rotate(45deg); }
.ticks--no li::before, .ticks--no li::after { top: .78em; width: 10px; height: 2px; background: var(--red); }
.ticks--no li::after { content: ""; position: absolute; left: 0; transform: rotate(-45deg); }
.fit__label { margin: 0 0 .8rem; font-size: 1rem; }
.ticks + .fit__label { margin-top: 2rem; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* Work grid (work page, below the corridor) */
.work-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.work-row { display: grid; grid-template-columns: 4rem minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 1rem 2rem; align-items: baseline; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.work-row__num { color: var(--lime); }
.work-row__title { font-size: 1.25rem; }
.work-row p { color: var(--muted); }
@media (max-width: 760px) { .work-row { grid-template-columns: 3rem minmax(0, 1fr); } .work-row p, .work-row .link-arrow { grid-column: 2; } }

/* Guides */
.guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.guide-card { display: grid; gap: .7rem; height: 100%; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised); text-decoration: none; transition: border-color var(--fast), transform 400ms var(--ease); }
.guide-card:hover { border-color: var(--lime); transform: translateY(-3px); }
.guide-card__num { color: var(--lime); font-size: .6875rem; }
.guide-card__title { font: 750 1.4rem/1.12 var(--font-display); font-stretch: var(--wide); letter-spacing: -.02em; }
.guide-card__desc { color: var(--muted); font-size: .9688rem; }
.guide-card__meta { margin-top: .5rem; color: var(--muted); font-size: .625rem; }
@media (max-width: 760px) { .guide-cards { grid-template-columns: 1fr; } }

.guide__container { max-width: 50rem; }
.guide__head { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.guide__title { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.75rem); font-weight: 800; line-height: 1; }
.guide__lead { margin-top: 1.25rem; font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); color: var(--ivory); }
.guide__meta { margin-top: 1.25rem; color: var(--muted); font-size: .6875rem; }
.prose { display: grid; gap: 1.1rem; color: #d9d6cf; font-size: 1.0625rem; }
.prose h2 { margin-top: 1.75rem; color: var(--ivory); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.prose h3 { margin-top: 1rem; color: var(--ivory); font-size: 1.15rem; }
.prose ul { display: grid; gap: .5rem; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; background: var(--lime); transform: rotate(45deg); }
.prose ol { display: grid; gap: .5rem; counter-reset: p; }
.prose ol li { counter-increment: p; position: relative; padding-left: 2rem; }
.prose ol li::before { content: counter(p) "."; position: absolute; left: 0; color: var(--lime); font-family: var(--font-mono); font-size: .9rem; }
.prose strong { color: var(--ivory); }
.prose .table-wrap { margin-block: .5rem; }
.prose .callout { padding: 1.25rem 1.4rem; border-left: 3px solid var(--lime); background: var(--raised); color: var(--ivory); }
.prose .faq__list { margin-top: .5rem; }
.guide-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 3rem; padding: 1.75rem; border: 1px solid var(--lime); border-radius: var(--radius-lg); }
.guide-cta p { max-width: 30rem; font-weight: 500; }
/* End-of-page CTA box that is also the container: its own padding replaces the container's side gutter,
   so narrow it by the gutter instead, or its border runs into the screen edges on phones */
.container.guide-cta { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--container) - 2 * var(--gutter)); margin-top: 0; }

/* Legal */
.legal { max-width: 48rem; }
.legal h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.legal h2:first-child { margin-top: 0; }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; padding-block: 5rem; }
.notfound__code { font: 800 clamp(5rem, 3rem + 12vw, 12rem)/.85 var(--font-display); font-stretch: 125%; color: transparent; -webkit-text-stroke: 1.5px var(--lime); letter-spacing: -.04em; }
.notfound__links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
