/* BN Designs Studio portfolio, v5: black-and-white page in the style of the Portfolite Framer template (Bryan's pick).
   Instrument Serif for the big headings, Geist for everything else. */
:root {
  --bg: #000;
  --panel: #050505;
  --card: #0d0d0d;
  --chip: #141414;
  --line: rgb(255 255 255 / 0.1);
  --text: #fff;
  --muted: rgb(255 255 255 / 0.65);
  --orange: #ff6b35;
  --blue: #2e7dff;
  --navy: #1e2a4a;
  --sky: #8fb3ff;
  --wrap: min(1120px, 100% - 80px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Instrument Serif", Georgia, serif;
  --sans: "Geist", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: 80px; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--sans); letter-spacing: 0; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, fieldset, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--orange); color: #000; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.skip { position: absolute; left: 24px; top: -80px; z-index: 60; background: #fff; color: #000; padding: 12px 16px; border-radius: 999px; }
.skip:focus { top: 80px; }
.display { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 5.4vw + 26px, 100px); line-height: 1; letter-spacing: -0.015em; }
.lead-l { font-size: clamp(19px, 1vw + 12px, 24px); line-height: 1.4; color: var(--muted); letter-spacing: -0.01em; }
.lead-s { font-size: 18px; line-height: 1.6; letter-spacing: -0.01em; }
.bw { filter: saturate(0.9) brightness(0.92); transition: filter 300ms ease, transform 400ms var(--ease-out); }

/* ---------- Buttons: a black body inside a thin grey ring that catches light at two corners ---------- */
.gbtn { position: relative; display: inline-flex; padding: 1.5px; border-radius: 11.5px; isolation: isolate; cursor: pointer; border: 0; color: #fff;
  background: radial-gradient(60% 90% at 100% 0%, var(--orange), transparent 62%), radial-gradient(55% 90% at 0% 100%, var(--blue), transparent 62%), #3b3b3b; /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
  box-shadow: 8px -4px 20px -8px rgb(255 107 53 / 0.35), -8px 4px 20px -8px rgb(46 125 255 / 0.35); transition: box-shadow 200ms ease, transform 160ms var(--ease-out), translate 200ms var(--ease-out); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.gbtn > span { display: block; padding: 8px 24px; border-radius: 10px; background: #000; font-size: 17px; line-height: 1.6; letter-spacing: -0.01em; white-space: nowrap; }
.gbtn::after { content: ""; position: absolute; inset: -6px; z-index: -1; border-radius: 16px; opacity: 0; transition: opacity 200ms ease;
  background: radial-gradient(40% 60% at 95% 5%, rgb(255 107 53 / 0.5), transparent 70%), radial-gradient(40% 60% at 5% 95%, rgb(46 125 255 / 0.5), transparent 70%); filter: blur(8px); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.gbtn:active { transform: scale(0.97); }
.gbtn-full { width: 100%; } .gbtn-full > span { width: 100%; text-align: center; }
.gbtn[disabled] { opacity: 0.6; cursor: progress; }
@media (hover: hover) and (pointer: fine) { .gbtn:hover { box-shadow: 10px -6px 28px -6px rgb(255 107 53 / 0.6), -10px 8px 28px -6px rgb(46 125 255 / 0.6); } .gbtn:hover::after { opacity: 1; } } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.ulink { font-size: 17px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.center-row { justify-content: center; gap: 28px; }
.tag-pill { display: inline-flex; align-items: center; gap: 10px; width: max-content; padding: 8px 16px; border-radius: 26px; background: rgb(20 20 20 / 0.7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.tag-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
/* only the hero keeps the pill; section labels are quiet text with the dot */
.panel .tag-pill, .dlg .tag-pill { padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; color: var(--muted); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; height: 72px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav::before { content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 400ms ease;
  background: linear-gradient(#000 0%, rgb(0 0 0 / 0.75) 55%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
  -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.nav.is-scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.brand svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a, .lang { font-size: 15px; color: var(--muted); padding: 12px 0; transition: color 200ms ease; }
.lang { background: none; border: 0; cursor: pointer; transition: color 200ms ease, transform 160ms var(--ease-out); }
.lang:active, .ulink:active { transform: scale(0.97); }
.ulink { display: inline-block; transition: transform 160ms var(--ease-out); }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 120px; font-size: 15px; color: rgb(255 255 255 / 0.85);
  background: linear-gradient(#0d0d0d -74%, rgb(255 255 255 / 0.1) 183%); box-shadow: inset 0 -0.5px 0.5px -1.25px rgb(0 0 0 / 0.68), inset 0 -1.8px 1.8px -2.5px rgb(0 0 0 / 0.6), inset 0 -8px 8px -3.75px rgb(0 0 0 / 0.24), inset 0 0 0 1px var(--line); /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
  transition: color 200ms ease, transform 160ms var(--ease-out), translate 200ms var(--ease-out); }
.pill-btn svg { width: 16px; height: 16px; }
.pill-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover, .lang:hover, .pill-btn:hover { color: #fff; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding-top: 72px; display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.smoke { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1600ms ease; }
.smoke.on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, #000); pointer-events: none; } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.hero-in { position: relative; z-index: 1; align-self: center; width: var(--wrap); margin: 0 auto; padding: 72px 0 40px; display: grid; justify-items: center; text-align: center; }
.hero-pill { margin-bottom: 20px; font-weight: 400; line-height: 1.5; }
.hero-title { max-width: 860px; text-wrap: balance; }
.hero-sub { margin-top: 24px; max-width: 540px; color: var(--muted); }
.hero-btns { margin-top: 36px; justify-content: center; }
.scroll-cue { margin-top: 64px; width: min(640px, 100%); display: flex; align-items: center; gap: 16px; color: var(--muted); white-space: nowrap; }
.scroll-cue .line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.25), transparent); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.mouse { width: 18px; height: 28px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.7); display: grid; justify-items: center; padding-top: 6px; } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.mouse b { width: 3px; height: 6px; border-radius: 2px; background: #fff; }
.trades-row { position: relative; z-index: 1; padding: 8px 0 56px; }

/* ---------- Endless rows (trades, tags, who-it's-for): one copy is cloned for a seamless loop ---------- */
.trades-row, .tag-rows, .who-row { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.loop { display: flex; gap: var(--gap, 72px); width: max-content; animation: loop var(--dur, 40s) linear infinite; }
.loop > li { flex: none; }
.loop-right { animation-direction: reverse; }
@keyframes loop { to { transform: translateX(calc(-50% - var(--gap, 72px) / 2)); } }
.is-off .loop { animation-play-state: paused; }
.trades-row li { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 28px; font-weight: 400; letter-spacing: -0.01em; color: rgb(255 255 255 / 0.8); }
.tm { width: 20px; height: 20px; display: grid; grid-template: 39% 1fr / 1fr 1fr; gap: 11%; }
.tm i { background: var(--blue); border-radius: 2px; } .tm i:first-child { grid-column: 1 / -1; background: var(--orange); } .tm i:last-child { background: var(--sky); }

/* ---------- Work grid ---------- */
.work { padding: 24px 0 120px; }
/* Work: each project fills the BN mark, a wide bar over two blocks, in the logo's own proportions (52 wide: bar 20 tall, blocks 23 x 26, gaps 6) */
.marks { width: min(1200px, 100% - 48px); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.mark { container-type: inline-size; }
.mark-grid { aspect-ratio: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 20fr 26fr; gap: calc(100cqw * 6 / 52); }
.mb { position: relative; overflow: hidden; background: #111; border-radius: calc(100cqw * 5 / 52); }
.mb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mb-bar { grid-column: 1 / -1; border-radius: calc(100cqw * 5 / 52) / calc(100cqw * 5 / 52); }
/* each block keeps a thin edge in its logo colour: orange bar, blue and light-blue blocks */
.mb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--edge); pointer-events: none; } /* taste-skill-ignore: logo-colour frame edge */
.mb-bar { --edge: rgb(255 107 53 / 0.85); } .mb-a { --edge: rgb(46 125 255 / 0.85); } .mb-b { --edge: rgb(143 179 255 / 0.85); background: #fff; }
/* the phone sits on the client's own colour inside its block */
.mb-phone img { position: absolute; top: 10%; left: 50%; transform: translateX(-50%); width: auto; height: 80%; aspect-ratio: 9 / 19.5; border-radius: 12% / 5.5%; border: 4px solid #0b0b0b; box-shadow: 0 18px 36px -14px rgb(0 0 0 / 0.7); } /* taste-skill-ignore: device frame */
.ph-neuro { background: radial-gradient(80% 70% at 50% 40%, #1b5a73, #0b2532); } /* taste-skill-ignore: client colour panel */
.ph-vr { background: radial-gradient(80% 70% at 50% 40%, #a3121a, #4a0408); } /* taste-skill-ignore: client colour panel */
.mark-cap { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-family: var(--display); font-size: 28px; letter-spacing: -0.01em; }
.mark-cap span { font-family: var(--sans); font-size: 15px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .mb:hover img.bw { transform: scale(1.03); filter: saturate(1.1); } .mb-phone:hover img { transform: translateX(-50%) translateY(-4px); } }
.mb-phone img { transition: transform 400ms var(--ease-out); }
.shot { position: relative; display: block; aspect-ratio: var(--ar, 4 / 3.6); border-radius: 4px; overflow: hidden; background: #111; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cap-pill { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: center; gap: 8px; padding: 8px 16px; border-radius: 40px;
  background: rgb(99 99 99 / 0.3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); font-size: 15px; color: #fff; } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.shot-next { background: var(--navy); display: grid; place-items: center; }
.big-mark { width: 34%; aspect-ratio: 1; display: grid; grid-template: 39.4% 1fr / 1fr 1fr; gap: 10.6% 10.8%; transform: translateY(-10%); }
.big-mark i { border-radius: 9% / 8%; background: var(--blue); transition: transform 300ms var(--ease-out); }
.big-mark i:nth-child(1) { background: var(--orange); } .big-mark i:nth-child(3) { background: var(--sky); }
.big-mark i:nth-child(1) { grid-column: 1 / -1; border-radius: 9% / 22%; }
@media (hover: hover) and (pointer: fine) {
  .shot:hover .bw, .split-pic:hover .bw, .faq-pic:hover .bw { filter: saturate(1.1); }
  .shot:hover img { transform: scale(1.03); }
  .shot-next:hover .big-mark i:nth-child(1) { transform: translateY(-6px); }
  .shot-next:hover .big-mark i:nth-child(3) { transform: translateX(6px); }
}
.work .center-row { margin-top: 56px; }

/* ---------- Panels: each section sits on its own rounded sheet ---------- */
.panel { position: relative; margin-top: 24px; padding: 120px 0; border-radius: 40px 40px 0 0; background: var(--panel); box-shadow: inset 0 1px 0 var(--edge, rgb(46 125 255 / 0.35)); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.process, .who, .contact { --edge: rgb(255 107 53 / 0.35); }
.split { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; align-items: start; }
.split-text { display: grid; gap: 20px; align-content: start; justify-items: start; }
.split-text .display { margin-bottom: 4px; }
.split-pic { border-radius: 8px; overflow: hidden; background: #111; }
.split-pic img { width: 100%; height: 100%; object-fit: cover; }
.about .split-pic { aspect-ratio: 4 / 4.4; margin-top: 40px; }
.process .split-pic { aspect-ratio: 1300 / 1430; }
/* the whole page in a browser window, never a crop; its three dots are the logo's colours */
.browser { align-self: center; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -24px rgb(0 0 0 / 0.8); } /* taste-skill-ignore: browser window */
.browser-bar { display: flex; gap: 8px; align-items: center; height: 32px; padding: 0 16px; background: #1a1a1a; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); } .browser-bar i:nth-child(2) { background: var(--blue); } .browser-bar i:nth-child(3) { background: var(--sky); }
.browser img { width: 100%; height: auto; }
.browser-faq { align-self: auto; width: 100%; margin-top: 12px; }
.services .split-pic { aspect-ratio: 5 / 4; }
.sticky-pic { position: sticky; top: 96px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { padding: 8px 12px; border-radius: 4px; background: var(--chip); font-size: 15px; color: var(--muted); }
.rule { width: 100%; height: 1px; margin: 8px 0; border: 0; background: var(--line); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.table { width: 100%; border-top: 1px solid var(--line); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.table div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 24px 16px; border-bottom: 1px solid var(--line); color: var(--muted); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.table dt { color: var(--muted); }
.table dd:last-child { text-align: right; }

/* process steps */
.steps { width: 100%; display: grid; gap: 16px; }
.step { position: relative; padding: 32px 28px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.04); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.step .num { position: absolute; top: 20px; right: 24px; font-size: 16px; color: var(--c, var(--orange)); }
.step .ic { width: 24px; height: 24px; color: var(--c, var(--orange)); }
.step:nth-child(2) { --c: var(--blue); } .step:nth-child(3) { --c: var(--sky); }
.step h3 { margin-top: 16px; font-family: var(--display); font-size: clamp(32px, 2vw + 16px, 40px); font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; }
.step hr { height: 1px; border: 0; margin: 24px 0; background: var(--line); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.step p { color: var(--muted); }

/* service cards + tag rows */
.cards { width: var(--wrap); margin: 72px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { padding: 32px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.04); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.card h3 { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 32px; font-weight: 400; letter-spacing: -0.01em; }
.card h3 svg { width: 24px; height: 24px; color: var(--c, var(--orange)); }
.card:nth-child(2) { --c: var(--blue); } .card:nth-child(3) { --c: var(--sky); } .card:nth-child(4) { --c: var(--orange); }
.card hr { height: 1px; border: 0; margin: 20px 0; background: var(--line); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.card p { color: var(--muted); }
.tag-rows { margin-top: 72px; display: grid; gap: 20px; }
.tag-rows .loop { --gap: 16px; }
.tag-rows li { padding: 12px 20px; border-radius: 30px; background: var(--card); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); color: var(--muted); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */

/* who it's for */
.who-row { margin-top: 72px; }
.who-row .loop { --gap: 24px; }
.who-card { width: 420px; padding: 40px 36px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.04); white-space: normal; } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.av { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: var(--navy); display: grid; grid-template: 39% 1fr / 1fr 1fr; gap: 3px; }
.av i { background: var(--blue); border-radius: 2px; } .av i:first-child { grid-column: 1 / -1; background: var(--orange); } .av i:last-child { background: var(--sky); }
.who-card h3 { margin-top: 28px; font-family: var(--display); font-size: 40px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; }
.who-card .role { margin-top: 4px; color: var(--muted); }
.who-card p:last-child { margin-top: 24px; font-size: 17px; line-height: 1.6; color: rgb(255 255 255 / 0.85); }
.stats { width: var(--wrap); margin: 80px auto 0; padding: 40px 0; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.04); display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.stats p { display: grid; gap: 8px; padding: 0 16px; color: var(--muted); font-size: 18px; }
.stats p + p { box-shadow: -1px 0 0 var(--line); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.stats strong { font-family: var(--display); font-weight: 400; font-size: 64px; line-height: 1; color: var(--orange); }
.stats p:nth-child(2) strong { color: var(--blue); } .stats p:nth-child(3) strong { color: var(--sky); }

/* FAQ */
.faq-pic { width: 100%; aspect-ratio: 4 / 3.1; border-radius: 8px; overflow: hidden; margin-top: 12px; }
.faq-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.qa { display: grid; gap: 12px; }
.q { border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.04); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px; font-size: 16px; }
.q summary::-webkit-details-marker { display: none; }
.q summary i { position: relative; width: 12px; height: 12px; flex: none; transition: transform 360ms var(--ease-soft); }
.q summary i::before, .q summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: #fff; transition: background-color 360ms ease; }
.q summary i::after { transform: rotate(90deg); }
.q[open]:not(.closing) summary i { transform: rotate(135deg); }
.q[open]:not(.closing) summary i::before, .q[open]:not(.closing) summary i::after { background: var(--orange); }
.q p { padding: 0 20px 20px; color: var(--muted); }

/* contact */
.form-card { display: grid; gap: 16px; padding: 32px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.04); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.trades { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trades legend { margin-bottom: 12px; padding: 0; color: var(--muted); }
.trades label { position: relative; }
.trades input { position: absolute; inset: -3px 0; opacity: 0; margin: 0; cursor: pointer; }
.trades span { display: block; padding: 8px 16px; border-radius: 4px; background: var(--chip); color: var(--muted); transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.trades label:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .trades label:hover span { color: #fff; } }
.trades input:checked + span { background: var(--orange); color: #000; }
.trades input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.cell { display: grid; gap: 8px; color: var(--muted); }
.cell input { height: 52px; border: 0; border-radius: 10px; background: #000; box-shadow: inset 0 0 0 1px var(--line); padding: 0 16px; font-size: 16px; color: #fff; transition: box-shadow 200ms ease; } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.cell input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--blue); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.cell input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #f97066; } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.hp { position: absolute; left: -10000px; }
.small { font-size: 13px; color: var(--muted); }
.status { font-weight: 500; min-height: 1.5em; }
.sketch { width: min(380px, 100%); display: grid; gap: 12px; margin-top: 12px; container-type: inline-size; }
.sketch figcaption { font-size: 14px; color: var(--muted); }
.sk-page { aspect-ratio: 1; display: grid; grid-template: 39% 1fr / 1fr 1fr; gap: 5% 6%; background: var(--card); border-radius: 16px; padding: 12%; box-shadow: inset 0 0 0 1px var(--line); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.sk-bar, .sk-lead, .sk-act { border-radius: 9% / 12%; transition: background-color 200ms ease; }
.sk-bar { grid-column: 1 / -1; background: var(--orange); color: #111; padding: 7% 8%; display: flex; flex-direction: column; justify-content: space-between; border-radius: 5% / 14%; }
.sk-name { font-family: var(--sans); font-weight: 500; font-size: min(24px, 6.4cqi); line-height: 1.05; letter-spacing: -0.02em; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } /* long names: two lines, then … */
.sk-nav { display: flex; gap: 8px; }
.sk-nav i { display: block; width: 18%; max-width: 54px; height: 8px; border-radius: 3px; background: rgb(17 17 17 / 0.35); }
.sk-lead { background: var(--blue); color: #111; padding: 12% 11%; display: flex; align-items: flex-end; }
.sk-head { font-weight: 500; font-size: 14px; line-height: 1.2; }
.sk-act { background: #44568a; padding: 12% 11%; display: flex; align-items: flex-end; }
.sk-btn { background: var(--orange); color: #111; font-weight: 500; padding: 6px 10px; border-radius: 10px; font-size: min(13px, 3.6cqi); line-height: 1.2; } /* a rounded rect, so a two-line label still reads as a button */
.sk-page[data-trade="restaurant"] .sk-lead { background: #a9c4ff; }
.sk-page[data-trade="salon"] .sk-bar { background: #a9c4ff; }
.sk-page[data-trade="shop"] .sk-act { background: var(--blue); }
.sk-page[data-trade="trades"] .sk-bar { background: #efeeea; }
.sk-page[data-trade="office"] .sk-lead { background: #efeeea; }

/* ---------- Footer ---------- */
.foot { position: relative; overflow: hidden; min-height: 100svh; display: grid; grid-template-rows: 1fr auto auto; }
.foot::before { content: ""; position: absolute; inset: 0 0 auto; height: 30%; background: linear-gradient(#000, transparent); z-index: 1; pointer-events: none; } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.foot::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, #000 70%); z-index: 1; pointer-events: none; } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
.foot-in { position: relative; z-index: 2; align-self: center; width: var(--wrap); margin: 0 auto; padding: 120px 0 64px; display: grid; justify-items: center; gap: 32px; text-align: center; }
.foot-h { max-width: 820px; font-family: var(--display); font-size: clamp(34px, 2.6vw + 16px, 48px); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.foot-links { display: flex; align-items: center; gap: 24px; color: var(--muted); }
.foot-links i { width: 1px; height: 20px; background: var(--line); }
.foot-links a { transition: color 200ms ease; }
.foot-cities { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; font-size: 14px; color: var(--muted); }
.foot-cities i { width: 1px; height: 16px; background: var(--line); }
.foot-cities a { position: relative; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(255 255 255 / 0.3); }
.foot-cities a::before { content: ""; position: absolute; inset: -12px -6px; }
.foot-bar { position: relative; z-index: 2; width: var(--wrap); margin: 0 auto; padding: 24px 0 32px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: end; color: rgb(255 255 255 / 0.85); }
/* the name in dots: gathers when reached, scatters from the pointer and glows blue then orange where it passes */
.dots-wrap { position: relative; z-index: 2; width: var(--wrap); margin: 0 auto; padding-top: 24px; }
.dots { display: block; width: 100%; aspect-ratio: 1120 / 150; cursor: crosshair; touch-action: pan-y; }
.credits { justify-self: center; max-width: 520px; text-align: center; font-size: 13px; color: var(--muted); }
.credits a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* headings arrive word by word out of a blur, like the template's */
  .js .words .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(10px); transition: opacity 700ms ease, filter 800ms ease, transform 900ms var(--ease-soft); transition-delay: var(--d, 0ms); }
  .js .words.in .w { opacity: 1; filter: none; transform: none; }
  /* hero: the rest follows the headline */
  .js .hero-sub, .js .hero-btns { opacity: 0; transform: translateY(12px); transition: opacity 800ms ease, transform 900ms var(--ease-soft); }
  /* decoration only fades */
  .js .hero-pill, .js .scroll-cue, .js .trades-row { opacity: 0; transition: opacity 800ms ease; }
  .js .hero.ready .hero-pill { opacity: 1; transform: none; transition-delay: 100ms; }
  .js .hero.ready .hero-sub { opacity: 1; transform: none; transition-delay: 500ms; }
  .js .hero.ready .hero-btns { opacity: 1; transform: none; transition-delay: 650ms; }
  .js .hero.ready .scroll-cue { opacity: 1; transform: none; transition-delay: 800ms; }
  .js .hero.ready .trades-row { opacity: 1; transform: none; transition-delay: 900ms; }
  /* blocks rise into place once */
  .js .rv { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 700ms var(--ease-out); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .mark + .mark { transition-delay: 100ms; }
  .js .cards .card:nth-child(even) { transition-delay: 80ms, 80ms, 0ms; } /* the hover lift (third) never waits */
  .js .qa .q:nth-child(2) { transition-delay: 60ms; } .js .qa .q:nth-child(3) { transition-delay: 110ms; } .js .qa .q:nth-child(4) { transition-delay: 150ms; } .js .qa .q:nth-child(5) { transition-delay: 180ms; } .js .qa .q:nth-child(6) { transition-delay: 200ms; }
  /* the footer's words rise slower than the page, as if from underneath */
  @supports (animation-timeline: view()) {
    .foot-in { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    @keyframes lift { from { transform: translateY(-30%); opacity: 0.2; } to { transform: none; opacity: 1; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loop { animation: none; }
  .trades-row, .tag-rows, .who-row { overflow-x: auto; }
  .js .rv { opacity: 0; transition: opacity 300ms ease; } .js .rv.in { opacity: 1; }
  .smoke { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .tag-pill, .cap-pill { background: #141414; -webkit-backdrop-filter: none; backdrop-filter: none; } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
  .nav::before { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; -webkit-mask: none; mask: none; } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
}
/* Increase contrast: secondary text gets brighter and every card gets a visible edge */
@media (prefers-contrast: more) {
  :root { --muted: rgb(255 255 255 / 0.85); --line: rgb(255 255 255 / 0.35); }
  .step, .card, .who-card, .q, .form-card, .stats, .chips li, .trades span { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.4); } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
  .cap-pill, .tag-pill { background: #000; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .nav-links a { display: none; }
  .split, .cards { grid-template-columns: 1fr; }
  .split-rev .split-pic { order: 2; }
  .sticky-pic { position: static; }
  .about .split-pic { margin-top: 0; }
  .process .split-pic { aspect-ratio: 4 / 3; }
  .browser { order: 2; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  :root { --wrap: calc(100% - 32px); }
  .nav { padding: 0 16px; height: 64px; }
  .brand span { display: none; }
  .nav-links { gap: 16px; }
  .pill-btn { height: 40px; padding: 0 12px; }
  .hero-in { padding-top: 48px; }
  .hero-sub { font-size: 15px; }
  .gbtn > span { font-size: 16px; padding: 8px 20px; }
  .scroll-cue { margin-top: 48px; font-size: 13px; gap: 10px; }
  .trades-row li { font-size: 20px; }
  .marks { grid-template-columns: 1fr; width: calc(100% - 32px); gap: 48px; }
  .mb-phone img { border-width: 3px; }
  .cap-pill { font-size: 13px; padding: 8px 12px; left: 8px; right: 8px; bottom: 8px; }
  .panel { padding: 80px 0; border-radius: 28px 28px 0 0; }
  .table div { padding: 16px 8px; font-size: 14px; }
  .step, .card, .form-card { padding: 24px 20px; }
  .cards, .tag-rows, .who-row { margin-top: 48px; }
  .who-card { width: 300px; padding: 28px 24px; }
  .who-card h3 { font-size: 30px; }
  .stats { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .stats p + p { box-shadow: none; } /* taste-skill-ignore: Portfolite template look and logo colours, chosen by Bryan */
  .foot-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .foot-bar { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* Touch: every tap target reaches 44px, with invisible hit areas so the layout does not move */
.brand, .ulink, .foot-links a, .foot-bar > a { position: relative; }
.brand::before, .lang::before, .ulink::before, .foot-links a::before, .foot-bar > a::before { content: ""; position: absolute; inset: -12px -6px; }
.lang { position: relative; }
@media (max-width: 767px) { .pill-btn { height: 44px; } }

/* Phone: the footer is only as tall as its content, and long lines step down a size so they keep to two lines */
@media (max-width: 767px) {
  .foot { min-height: 0; }
  .foot-in { padding: 96px 0 40px; }
  .hero-title, .display { font-size: 44px; }
  .display { overflow-wrap: break-word; }
  .foot-h { font-size: 30px; }
}


/* A faint glow in the logo colours drifts after the mouse; mouse and trackpad only, never with reduced motion */
.glow { position: fixed; left: 0; top: 0; z-index: 30; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity 600ms ease;
  background: radial-gradient(closest-side, rgb(46 125 255 / 0.09), rgb(255 107 53 / 0.04) 55%, transparent); mix-blend-mode: screen; will-change: transform; } /* taste-skill-ignore: subtle cursor glow Bryan asked for */
.glow.on { opacity: 1; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) { .glow { display: none; } }

/* The 3D mark: a still render (tools/render-mark-3d.html) on a matching dark panel */
.mark3d-wrap { align-self: center; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: radial-gradient(60% 55% at 50% 45%, #1a2236, #07080c 75%); box-shadow: inset 0 0 0 1px var(--line); } /* taste-skill-ignore: lit backdrop for the 3D logo */
.mark3d-wrap img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .mark3d-wrap { order: 2; width: min(100%, 520px); } }

/* Photos glow like the buttons on hover, permanently, in two colours taken from each photo (--c1 top right, --c2 bottom left) */
.split-pic, .mark3d-wrap, .faq-pic { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06), 18px -12px 56px -18px color-mix(in srgb, var(--c1, #ff6b35) 60%, transparent), -18px 14px 56px -18px color-mix(in srgb, var(--c2, #2e7dff) 60%, transparent); } /* taste-skill-ignore: picture glow Bryan asked for */
.split-pic, .faq-pic { overflow: clip; }

/* Hover lift: buttons rise 3px, cards 2px. Uses `translate`, so it never fights the reveal or the press scale */
.card, .step, .who-card, .js .rv:is(.card, .step) { transition: opacity 600ms ease, transform 700ms var(--ease-out), translate 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .gbtn:hover, .pill-btn:hover { translate: 0 -3px; }
  .card:hover, .step:hover, .who-card:hover { translate: 0 -2px; }
}

/* One accent word per heading (data-accent), set in the serif's italic in the logo orange */
.words .acc { font-style: italic; color: var(--orange); padding-right: 0.04em; }

/* sections focused after a nav jump (for keyboard and screen readers) show no ring */
[tabindex="-1"]:focus { outline: none; }

/* Free mockup pop-up: a card that rises in over a dimmed page on desktop, a sheet from the bottom on phones */
.dlg { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 24px; border: 0; background: transparent; color: var(--text); display: none; place-items: center; overflow: auto; }
.dlg[open] { display: grid; }
.dlg::backdrop { background: rgb(0 0 0 / 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html:has(.dlg[open]) { overflow: hidden; scrollbar-gutter: stable; }
.dlg-card { position: relative; width: min(980px, 100%); display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 48px; border-radius: 28px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), 24px -16px 70px -30px rgb(255 107 53 / 0.45), -24px 18px 70px -30px rgb(46 125 255 / 0.45); } /* taste-skill-ignore: logo-colour glow like the buttons */
.dlg-side { display: grid; gap: 16px; align-content: start; }
.dlg-h { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 3vw + 18px, 56px); line-height: 1.02; letter-spacing: -0.01em; }
.dlg-h em { color: var(--orange); }
.dlg-p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); }
.dlg-sketch .sketch { margin-top: 4px; width: min(300px, 100%); }
.dlg-form .form-card { background: rgb(255 255 255 / 0.03); }
.dlg-x { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.06); color: #fff; cursor: pointer; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.dlg-x svg { width: 16px; height: 16px; }
.dlg-x:active { transform: scale(0.94); }
.dlg-x:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .dlg-x:hover { background: rgb(255 255 255 / 0.12); } }

@media (prefers-reduced-motion: no-preference) {
  .dlg[open] .dlg-card { animation: dlg-in 320ms var(--ease-out) both; }
  .dlg[open]::backdrop { animation: dlg-fade 320ms ease both; }
  .dlg.closing .dlg-card { animation: dlg-out 200ms ease-out both; }
  .dlg.closing::backdrop { animation: dlg-fade 200ms ease reverse both; }
}
@media (prefers-reduced-motion: reduce) { .dlg[open] .dlg-card, .dlg[open]::backdrop { animation: dlg-fade 200ms ease both; } }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes dlg-fade { from { opacity: 0; } }

@media (max-width: 860px) {
  .dlg { padding: 0; place-items: end stretch; }
  .dlg-card { width: 100%; max-height: 92dvh; overflow: auto; overscroll-behavior: contain; grid-template-columns: 1fr; gap: 20px; padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  .dlg-sketch, .dlg-p { display: none; }
  .dlg-h { font-size: 38px; padding-right: 48px; }
  .dlg-form .form-card { padding: 0; background: none; box-shadow: none; }
  .dlg-x { top: 20px; right: 16px; }
  @media (prefers-reduced-motion: no-preference) {
    .dlg[open] .dlg-card { animation: sheet-in 460ms cubic-bezier(0.32, 0.72, 0, 1) both; }
    .dlg.closing .dlg-card { animation: sheet-out 280ms cubic-bezier(0.32, 0.72, 0, 1) both; }
  }
}
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }

/* the buttons' hidden hover glow (::after, 6px outside) must not widen the page on small phones; clip (not hidden) keeps sticky photos working */
main { overflow-x: clip; }
