/* Lupfox — lupfox.com. Every value comes from the brandbook (../brandbook). */

@font-face { font-family: "Geist"; src: url(../fonts/geist.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/geist-mono.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Orbitron"; src: url(../fonts/orbitron.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

/* Night theme: the brand's own, and the default for lupfox.com. */
:root {
  --night: #141624; --ember: #fb6c2a; --amber: #fd9525; --flare: #fea024; --fur: #396174; --glint: #5cbdcb;
  --on-night: #eef0f6; --on-night-muted: #a0a6ba;
  --surface: var(--night); --surface-raised: #1c1f31; --line: #2b2f45; --line-strong: #666d8a;
  --ink: var(--on-night); --ink-muted: var(--on-night-muted); --accent: var(--ember); --on-ember: var(--night);
  --focus-ring: var(--glint); --error: #ff8a80;

  --font-display: Orbitron, system-ui, sans-serif;
  --font-sans: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 4px; --radius-md: 8px; --radius-round: 999px;
  --gutter: clamp(16px, 5vw, 64px);
  --section: clamp(64px, 9vw, 96px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --signature: linear-gradient(215deg in oklab, var(--flare) 0%, var(--ember) 18%, var(--night) 62%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 26px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 20; padding: 10px 16px; background: var(--ember); color: var(--on-ember); border-radius: var(--radius-sm); font-weight: 500; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { max-width: 1280px; margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* --- type ------------------------------------------------------------- */
.label { font-family: var(--font-display); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.accent { color: var(--accent); }
.muted { color: var(--ink-muted); }
.h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; font-weight: 500; letter-spacing: -.04em; text-wrap: balance; }
.h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; font-weight: 500; letter-spacing: -.03em; text-wrap: balance; }
.h3 { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -.015em; }
.lead { font-size: 20px; line-height: 32px; letter-spacing: -.01em; color: var(--ink-muted); max-width: 34em; }
.small { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .28em; transition: text-decoration-thickness .2s var(--ease); }
.link:hover { text-decoration-thickness: 2px; }
.nowrap { white-space: nowrap; }
.rule { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.dots { display: flex; flex-direction: column; gap: 6px; }
.dots li { position: relative; padding-left: 18px; }
.dots li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: var(--radius-round); background: var(--accent); }

/* --- lockup: mark + name, built from --mark (the mark's diameter) ---------- */
.lockup { --mark: 48px; display: inline-flex; align-items: center; gap: calc(var(--mark) / 6); color: var(--ink); text-decoration: none; }
.lockup img { flex: none; width: var(--mark); height: var(--mark); border-radius: var(--radius-round); }
/* top: -.024em centres Orbitron's capitals on the mark */
.lockup span { position: relative; top: -.024em; font-family: var(--font-display); font-weight: 400; font-size: calc(var(--mark) * .76); line-height: 1; white-space: nowrap; }
.lockup--nav { --mark: 36px; }
.lockup--foot { --mark: 40px; }

/* --- buttons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius-sm); font: 500 15px/1 var(--font-sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.btn-sm { height: 40px; padding: 0 18px; }
.btn-primary { background: var(--ember); color: var(--on-ember); }
.btn-primary:hover { background: var(--amber); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-on-night { color: var(--on-night); }
.btn:disabled { background: transparent; color: var(--ink-muted); border-color: var(--line); cursor: progress; }
.btn-text { height: auto; padding: 4px 0; border: 0; background: none; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .32em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- navigation ---------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-text a { font-size: 15px; color: var(--ink-muted); text-decoration: none; transition: color .2s var(--ease); }
.nav-text a:hover, .nav-text a[aria-current="page"] { color: var(--ink); }
.nav-text a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .4em; }

/* --- hero: the one signature gradient on the site ------------------------ */
/* The second layer fades the bottom into night, so the band never ends on a hard orange edge. */
.hero { background: var(--night); background: linear-gradient(to bottom, transparent 55%, var(--night)), var(--signature); color: var(--on-night); }
.hero-in { display: flex; flex-direction: column; gap: 24px; padding-block: clamp(112px, 16vw, 200px) clamp(64px, 8vw, 112px); }
.hero-label { color: var(--on-night-muted); }
.hero-title { font-size: clamp(44px, 7.4vw, 96px); line-height: .98; font-weight: 500; letter-spacing: -.045em; max-width: 9.5em; text-wrap: balance; }
.hero-lead { font-size: clamp(18px, 2vw, 20px); line-height: 1.6; color: var(--on-night-muted); max-width: 34em; }
.hero .actions { margin-top: 8px; }
.hero-in > * { animation: rise .4s var(--ease) both; }
.hero-in > :nth-child(2) { animation-delay: .06s; }
.hero-in > :nth-child(3) { animation-delay: .12s; }
.hero-in > :nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* --- sections ------------------------------------------------------------ */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section--tight { padding-top: 0; }
.section-head { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head > div { display: flex; flex-direction: column; gap: 14px; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 64px; }
.services .muted { max-width: 34em; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: none; }
.steps li { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; }

.work { display: grid; grid-template-columns: 7fr 5fr; gap: 32px 56px; align-items: center; padding: clamp(16px, 3vw, 32px); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.work-shot { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.work-shot img { width: 100%; }
.work-body { display: flex; flex-direction: column; gap: 18px; }
.work-logo { width: 180px; }
.work-lead { font-size: 18px; line-height: 28px; letter-spacing: -.01em; }
.work-notes { margin-top: clamp(40px, 6vw, 64px); }
.specs > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding-block: 10px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 14px; line-height: 22px; font-variant-numeric: tabular-nums; }
.specs dt { color: var(--ink-muted); }

.cta { background: var(--surface-raised); border-top: 1px solid var(--line); }
.cta-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; padding-block: var(--section); }
.cta-in > div { display: flex; flex-direction: column; gap: 14px; }

/* --- inner pages ---------------------------------------------------------- */
.phero .wrap { display: flex; flex-direction: column; gap: 18px; padding-block: clamp(64px, 10vw, 128px) clamp(32px, 5vw, 56px); }
.phero--end .wrap { padding-bottom: var(--section); }

.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 48px 96px; }
.contact-aside { display: flex; flex-direction: column; gap: 32px; }

/* WhatsApp's own green and teals, as on brandweb.uk: the button is theirs to colour.
   It takes the form's old place and its full height. The words sit in the middle,
   on the teal, where white reads (4.1:1 or more, large text). */
.whatsapp { align-self: stretch; display: grid; place-content: center; justify-items: center; gap: 24px; min-height: 360px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-md); background: #128c7e; background: linear-gradient(160deg, #25d366 0%, #128c7e 56%, #075e54 100%); color: #ffffff; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; font-weight: 500; letter-spacing: -.03em; text-align: center; text-wrap: balance; text-decoration: none; transition: filter .2s var(--ease); }
.whatsapp:hover { filter: brightness(1.06); }
.whatsapp svg { width: 96px; height: 96px; fill: currentColor; }

/* --- cookie banner ------------------------------------------------------- */
.consent { position: fixed; z-index: 30; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-md); }
.consent:focus { outline: none; }
.consent[hidden], .consent [hidden] { display: none; }
.consent-choose { display: grid; gap: 14px; padding-block: 14px; border-block: 1px solid var(--line); }
.consent-row { display: flex; justify-content: space-between; gap: 18px; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.consent-row strong { display: block; font-weight: 500; color: var(--ink); }
label.consent-row { cursor: pointer; }
.consent-row input { appearance: none; flex: none; position: relative; width: 44px; height: 26px; margin: 0; border-radius: var(--radius-round); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; transition: background-color .2s var(--ease); }
.consent-row input::after { content: ""; position: absolute; top: 5px; left: 5px; width: 16px; height: 16px; border-radius: var(--radius-round); background: var(--ink-muted); transition: transform .2s var(--ease); }
.consent-row input:checked { background: var(--ember); box-shadow: none; }
.consent-row input:checked::after { background: var(--on-ember); transform: translateX(18px); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-actions .btn-text, .consent-actions [data-consent="save"] { grid-column: 1 / -1; justify-self: start; }
.consent-actions [data-consent="save"] { justify-self: stretch; }

.sitemap { display: flex; flex-direction: column; gap: 32px; max-width: 65ch; }
.sitemap .h3 { text-decoration-thickness: 1px; }
.sitemap-sub { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.prose { max-width: 65ch; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -.015em; margin-top: 32px; }
.prose p { color: var(--ink-muted); }
.prose .lead { color: var(--ink); }

/* --- footer -------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding-block: 64px 32px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 16px; }
.foot-grid ul { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.foot-grid ul a { color: var(--ink-muted); text-decoration: none; transition: color .2s var(--ease); }
.foot-grid ul a:hover { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-base a { color: inherit; }

/* --- narrower screens ---------------------------------------------------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .section-head, .work, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-text { display: none; }
  .services, .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .lead { font-size: 18px; line-height: 28px; }
  .whatsapp { min-height: 240px; }
  .whatsapp svg { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-in > * { animation-name: fade; }
  @keyframes fade { from { opacity: 0; } }
  .btn, .link, .nav-text a, .foot-grid ul a, .whatsapp, .consent-row input, .consent-row input::after { transition: none; }
}
