/* bendesignr.com in the Melfi landing-page layout (dark, blue accent, Sora + Inter, pill buttons) */
@font-face { font-family: "Sora"; src: url("fonts/sora.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --bg: #000000;
  --card: #0f131f;
  --card-2: #141925;
  --chip: #1b2332;
  --tag: #1f232c;
  --line: #121419;
  --border: #1d222c;
  --ink: #ffffff;
  --muted: #838383;
  --muted-2: #9a9a9a;
  --blue: #2776ef;
  --blue-hi: #4a8ff8;
  --blue-deep: #053580;
  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --frame: 1380px;
  --wrap: 1226px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.45 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 12px 18px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- page frame: hairline construction lines with tool marks ---------- */
.frame { position: relative; max-width: var(--frame); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.rule { position: relative; height: 1px; background: var(--line); margin: 0 calc((100vw - min(100vw, var(--frame))) / -2); }
.rule::before, .rule::after { content: ""; position: absolute; top: -6px; width: 12px; height: 12px; background: center / contain no-repeat; opacity: .8; }
.rule::before { left: max(0px, calc((100vw - min(100vw, var(--frame))) / 2 - 6px)); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23d9d9d9' stroke-width='1.1'%3E%3Crect x='3.5' y='1' width='5' height='3.4' rx='1.7'/%3E%3Crect x='3.5' y='4.4' width='5' height='3.4' rx='1.7'/%3E%3Crect x='3.5' y='7.8' width='2.5' height='3.2' rx='1.25'/%3E%3C/svg%3E"); }
.rule::after { right: max(0px, calc((100vw - min(100vw, var(--frame))) / 2 - 6px)); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%23fff'%3E%3Cpath d='M3 1h7v3.5H6.5L10 8H6.5v3.5L3 8V4.5h3.5z'/%3E%3C/svg%3E"); }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }

/* ---------- buttons: pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 64px; padding: 0 24px; border-radius: 999px; font: 500 18px/1 var(--text); white-space: nowrap; transition: transform .18s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #e9edf5; }
.btn-blue { background: linear-gradient(180deg, var(--blue-hi) 0%, #1f6ff0 55%, #1a63dc 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 24px -10px rgba(39,118,239,.8); height: 62px; padding: 0 28px; }
.btn-blue:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 32px -10px rgba(39,118,239,.95); }
.btn-outline { border: 1px solid rgba(255,255,255,.85); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.06); }
.btn-sm { height: 48px; padding: 0 22px; font-size: 16px; }

.badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: #3b82f6; color: #dbe8ff; font: 400 12.5px/1 var(--text); }
.section-head { text-align: center; display: grid; justify-items: center; gap: 14px; }
.section-head h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.2; max-width: 14ch; }
.section-head p { color: var(--muted); max-width: 33em; font-size: 18px; line-height: 1.45; }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 30px 34px; }
.nav-pill { display: flex; align-items: center; gap: 51px; height: 64px; padding: 0 42px 0 30px; border: 1px solid #1a1e27; border-radius: 999px; background: rgba(255,255,255,.012); }
.nav-pill .logo { display: flex; align-items: center; margin-right: 26px; }
.nav-pill .logo img { height: 24px; width: auto; }
.nav-pill a.link { font-size: 18px; color: #fff; opacity: .92; transition: opacity .2s; }
.nav-pill a.link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.menu { display: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 584px; gap: 40px; align-items: center; padding: 0 60px; min-height: 928px; position: relative; }
.hero > div:first-child { padding-bottom: 130px; }
.tools { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px 0 16px; border-radius: 999px; background: #000612; border: 1px solid #0b1220; }
.tools span { color: #8a8f99; font-size: 17px; margin-right: 10px; }
.tools i { width: 28px; height: 28px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; }
.tools i img { width: 13px; height: 13px; object-fit: contain; filter: brightness(0) invert(1); }
.hero h1 { font-size: clamp(44px, 4.5vw, 64px); line-height: 1.22; margin-top: 18px; max-width: 10.6em; }
.boxed { position: relative; display: inline-block; padding: 0 8px; margin-left: 2px; }
.boxed::before { content: ""; position: absolute; inset: -2px -3px 2px; border: 1.5px solid #4f7dff; pointer-events: none; }
.boxed i { position: absolute; width: 8px; height: 8px; background: #fff; border: 1.5px solid #4f7dff; }
.boxed i:nth-of-type(1) { left: -7px; top: -6px; } .boxed i:nth-of-type(2) { right: -7px; top: -6px; }
.boxed i:nth-of-type(3) { left: -7px; bottom: -2px; } .boxed i:nth-of-type(4) { right: -7px; bottom: -2px; }
.hero .lede { color: var(--muted); font-size: 18px; line-height: 1.45; max-width: 32em; margin-top: 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 40px; }

.stack { position: relative; height: 950px; margin-top: -22px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 33px; }
.stack .col { display: grid; gap: 26px; align-content: start; }
.stack .col:first-child { margin-top: -112px; }
.stack .col:last-child { margin-top: -10px; }
.shot { border-radius: 18px; overflow: hidden; border: 1px solid #23283a; background: #0b0e16; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.stack .fade { position: absolute; left: -20px; right: -20px; height: 260px; pointer-events: none; z-index: 2; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.stack .fade.top { top: -10px; background: linear-gradient(#000 0%, rgba(0,0,0,.6) 45%, transparent 100%); -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); }
.stack .fade.bot { bottom: -10px; background: linear-gradient(transparent 0%, rgba(0,0,0,.65) 55%, #000 100%); -webkit-mask-image: linear-gradient(transparent, #000 65%); mask-image: linear-gradient(transparent, #000 65%); }

/* ---------- logos ---------- */
.trusted { padding: 70px 0 70px; text-align: center; }
.trusted h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.2; }
.trusted .facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 16px; color: var(--muted-2); font-size: 15px; }
.trusted .facts span { display: inline-flex; align-items: center; gap: 9px; }
.trusted .facts svg { width: 18px; height: 18px; color: #8f8f8f; }
.marquee { position: relative; overflow: hidden; margin-top: 64px; display: grid; gap: 50px; -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 14%, #000 86%, transparent 96%); mask-image: linear-gradient(90deg, transparent 4%, #000 14%, #000 86%, transparent 96%); }
.marquee .row { display: flex; width: max-content; gap: 92px; align-items: center; animation: slide 46s linear infinite; }
.marquee .row.rev { animation-direction: reverse; }
.marquee .logo { height: 30px; display: flex; align-items: center; gap: 10px; color: #fff; font: 700 22px/1 var(--display); white-space: nowrap; }
.marquee .logo img { height: 100%; width: auto; max-width: 150px; object-fit: contain; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .row { animation: none; } .marquee { -webkit-mask-image: none; mask-image: none; } .marquee .row { flex-wrap: wrap; width: auto; justify-content: center; } .marquee .row .dup { display: none; } }

/* ---------- services ---------- */
.services { padding: 88px 0 90px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 110px; }
.svc { border-radius: 32px; overflow: hidden; background: linear-gradient(180deg, var(--blue-deep) 0%, #0b1c3d 9%, var(--card) 26%); padding: 31px 28px 34px; display: grid; gap: 0; }
.svc:nth-child(2), .svc:nth-child(4) { background: linear-gradient(180deg, #0a2a52 0%, #0c1a33 9%, var(--card) 26%); }
.svc .media { height: 356px; border-radius: 18px; overflow: hidden; position: relative; background: #070a12; border: 1px solid #1c2232; }
.svc .media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.svc .media::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, var(--card)); }
.svc h3 { display: flex; align-items: center; gap: 14px; font-size: 26px; line-height: 1.2; margin-top: 52px; }
.svc h3 svg { width: 28px; height: 28px; flex: none; }
.svc p { color: var(--muted); font-size: 18px; margin-top: 14px; }

/* ---------- projects ---------- */
.projects { padding: 46px 0 120px; }
.proj-list { display: grid; gap: 40px; margin-top: 140px; }
.proj { display: grid; grid-template-columns: 418px 1fr; gap: 52px; padding: 32px; border-radius: 32px; background: var(--card); }
.proj .media { height: 383px; border-radius: 24px; overflow: hidden; background: #e9e9ec; }
.proj .media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.proj .info { display: grid; align-content: center; gap: 0; padding-right: 30px; }
.proj .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.proj .icons { display: flex; gap: 8px; }
.proj .icons i { width: 40px; height: 40px; border-radius: 50%; background: #1b202b; border: 1px solid #262c38; display: grid; place-items: center; }
.proj .icons i img { width: 15px; height: 15px; filter: brightness(0) invert(1); }
.proj .time { display: inline-flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 17px; }
.proj .time svg { width: 18px; height: 18px; }
.proj h3 { font-size: 30px; line-height: 1.24; margin-top: 30px; }
.proj .sub { color: var(--muted-2); font-size: 18px; margin-top: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tag { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--tag); display: inline-flex; align-items: center; font-size: 16px; }
.t-white { color: #eaeaea; } .t-green { color: #8fe36d; } .t-lilac { color: #f0b7ff; } .t-peach { color: #f4d6b2; } .t-red { color: #ff7a6e; }
.proj .btn { margin-top: 30px; width: fit-content; }
.see-more { display: block; width: fit-content; margin: 80px auto 0; font: 700 26px/1.2 var(--display); }
.see-more:hover { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }

/* ---------- process ---------- */
.process { padding: 100px 0 160px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 190px; }
.step { border-radius: 24px; border: 1px solid #13254a; background: #0a0e17; padding: 24px 22px 54px; }
.step .art { height: 309px; border-radius: 18px; background: #000; display: grid; place-items: center; }
.step .art img { width: 150px; height: auto; }
.step h3 { display: flex; align-items: center; gap: 10px; font-size: 26px; margin-top: 50px; }
.step h3 svg { width: 26px; height: 26px; flex: none; }
.step p { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 18em; }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 170px 0 160px; }
.why .left { align-self: start; }
.why .badge { margin-bottom: 18px; }
.why h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.22; max-width: 9em; }
.why .left p { color: var(--muted); font-size: 18px; max-width: 26em; margin-top: 18px; }
.why .left .btn { margin-top: 62px; }
.timeline { position: relative; display: grid; gap: 100px; padding-left: 100px; padding-top: 6px; }
.timeline::before { content: ""; position: absolute; left: 31px; top: 30px; bottom: -50px; border-left: 1.5px dashed #6b6b6b; }
.timeline .item { position: relative; }
.timeline .dot { position: absolute; left: -84px; top: 4px; width: 30px; height: 30px; border-radius: 50%; background: #8a8a8a; }
.timeline .item.on .dot { background: #3b82f6; box-shadow: 0 0 0 17px rgba(59,130,246,.14); }
.timeline .item.on::before { content: ""; position: absolute; left: -70.5px; top: 34px; height: 106px; width: 3px; background: #3b82f6; border-radius: 3px; }
.timeline h3 { font-size: 32px; line-height: 1.2; }
.timeline p { color: var(--muted); font-size: 19px; line-height: 1.85; margin-top: 14px; max-width: 23em; }

/* ---------- FAQ ---------- */
.faq { padding: 100px 0 180px; }
.faq-list { width: min(840px, 100%); margin: 96px auto 0; }
.faq details { border-bottom: 1px solid #1d1f24; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 16px; cursor: pointer; font-size: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 20px; height: 20px; position: relative; flex: none; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: #fff; }
.faq summary .pm::after { transform: rotate(90deg); transition: transform .25s var(--ease); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq details[open] summary { padding-bottom: 18px; }
.faq details p { color: var(--muted); font-size: 16px; line-height: 1.9; padding: 0 16px 30px; letter-spacing: .01em; }
.faq .more { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 16px; border-bottom: 1px solid #1d1f24; font-size: 20px; }

/* ---------- CTA banner ---------- */
.cta-wrap { padding: 112px 0; }
.cta { position: relative; overflow: hidden; border-radius: 48px; min-height: 408px; max-width: 1190px; margin: 0 auto; display: grid; place-items: center; text-align: center; padding: 70px 24px;
  background: linear-gradient(180deg, #2c5aa2 0%, #22488a 22%, #19356a 50%, #152c58 75%, #142848 100%); isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; background: url("melfi/noise.png") repeat; background-size: 300px; opacity: .12; mix-blend-mode: overlay; z-index: -1; }
.cta .env { position: absolute; bottom: 0; height: 67%; width: auto; pointer-events: none; }
.cta .env.l { left: 0; } .cta .env.r { right: 0; }
.cta .copy { position: relative; z-index: 1; display: grid; justify-items: center; gap: 16px; max-width: 720px; }
.cta h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.45; }
.cta p { color: #a5b2c8; font-size: 18px; margin-top: -6px; }
.cta .btn { margin-top: 26px; }
.glow { position: relative; height: 260px; overflow: hidden; background: radial-gradient(60% 120% at 50% 110%, #12305f 0%, #0a1a38 40%, #000 75%); }
.glow i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #7d9bd1; opacity: .7; }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 34px 30px 44px; color: var(--muted); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 28px; }
.foot a:hover { color: #fff; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .rv.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .hero { grid-template-columns: 1fr 46%; padding-left: 40px; }
  .nav-pill { gap: 30px; padding: 0 28px 0 24px; }
  .proj { grid-template-columns: 360px 1fr; gap: 36px; }
  .proj .media { height: 340px; }
}
@media (max-width: 1024px) {
  .nav-pill a.link { display: none; }
  .nav-pill { gap: 0; padding: 0 22px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 40px 24px 0; }
  .hero > div:first-child { padding-bottom: 24px; }
  .stack { height: 560px; }
  .svc-grid, .why { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; margin-top: 80px; }
  .proj { grid-template-columns: 1fr; }
  .proj .media { height: 320px; }
  .proj .info { padding-right: 0; }
  .why { gap: 80px; }
  .cta { padding-bottom: 230px; }
  .cta .env { height: auto; width: 40%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { padding: 20px 16px; }
  .nav .btn { height: 48px; padding: 0 18px; font-size: 15px; }
  .nav .btn .long { display: none; }
  .hero { padding: 24px 16px 0; }
  .hero .actions { gap: 14px; }
  .hero .actions .btn { height: 54px; font-size: 16px; padding: 0 20px; }
  .stack { height: 420px; gap: 14px; }
  .stack .col { gap: 14px; }
  .svc-grid, .proj-list { margin-top: 56px; gap: 20px; }
  .svc { padding: 18px 16px 26px; border-radius: 24px; }
  .svc .media { height: 220px; }
  .svc h3 { font-size: 22px; margin-top: 28px; }
  .proj { padding: 16px; border-radius: 24px; }
  .proj .media { height: 240px; border-radius: 16px; }
  .proj h3 { font-size: 23px; margin-top: 22px; }
  .timeline { padding-left: 64px; gap: 64px; }
  .timeline .dot { left: -58px; width: 22px; height: 22px; }
  .timeline::before { left: 16px; }
  .timeline .item.on::before { left: -48.5px; top: 28px; height: 80px; }
  .timeline .item.on .dot { box-shadow: 0 0 0 10px rgba(59,130,246,.14); }
  .timeline h3 { font-size: 24px; }
  .timeline p { font-size: 16px; line-height: 1.7; }
  .faq summary { padding: 24px 4px; font-size: 17px; }
  .faq details p { padding: 0 4px 24px; }
  .faq .more { padding: 24px 4px; font-size: 17px; }
  .cta { border-radius: 28px; padding: 48px 18px 168px; }
  .cta .env { height: auto; width: 47%; opacity: 1; }
  .stack .fade { height: 120px; }
  .marquee .row { gap: 56px; }
  .marquee .logo { height: 24px; font-size: 18px; }
  .frame { border: 0; }
}

/* =====================================================================
   SIZING SYSTEM (the established one)
   Type + spacing: apple-hig-design web tokens (8-pt grid, hero/H2/H3/lede/body/caption,
   44px minimum targets, section rhythm 96 desktop / 64 mobile, card padding 24).
   Shape + hierarchy: bendesignr-taste STYLE.md (pills for buttons/tags, cards 24px,
   large marketing cards 40px, inner radius = outer - gap, big jump between headline and body).
   Layout and colour stay Melfi.
   ===================================================================== */
:root {
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px;
  --space-16: 64px; --space-20: 80px; --space-24: 96px;

  --fs-hero: clamp(2.5rem, 5vw, 4.5rem);   --lh-hero: 1.05; --tr-hero: -0.02em;
  --fs-h2:   clamp(1.75rem, 3.5vw, 3rem);  --lh-h2: 1.1;    --tr-h2: -0.015em;
  --fs-h3:   1.5rem;   --lh-h3: 1.2;   /* HIG lists 1.2rem; raised to 1.5rem so card titles keep the taste spec's headline/body jump */
  --fs-lede: 1.15rem;  --lh-lede: 1.45;
  --fs-body: 1.0625rem; --lh-body: 1.5;
  --fs-cap:  0.8rem;   --lh-cap: 1.35;

  --hit-min: 44px;
  --r-pill: 999px; --r-card: 24px; --r-inner: 16px; --r-big: 40px;
  --section-y: var(--space-24);
  --gutter: clamp(16px, 4vw, 56px);
}
@media (max-width: 760px) { :root { --section-y: var(--space-16); } }

body { font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: 0; }

/* buttons, tags, badges: pills, >=44px targets */
.btn { min-height: 48px; height: auto; padding: var(--space-3) var(--space-6); font-size: var(--fs-body); gap: var(--space-2); border-radius: var(--r-pill); }
.btn-blue { height: auto; padding: var(--space-3) var(--space-6); }
.btn svg { width: 18px; height: 18px; }
.badge { height: auto; padding: var(--space-1) var(--space-3); font-size: var(--fs-cap); line-height: var(--lh-cap); }
.tag { height: auto; min-height: 32px; padding: var(--space-1) var(--space-3); font-size: var(--fs-cap); }

/* section heads: badge -> H2 -> sub, then 64 to content */
.section-head { gap: 0; }
.section-head .badge { margin-bottom: var(--space-4); }
.section-head h2, .why h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); max-width: 16ch; }
.section-head p { font-size: var(--fs-lede); line-height: var(--lh-lede); margin-top: var(--space-4); max-width: 46ch; }

/* nav */
.nav { min-height: 0; padding: var(--space-8) var(--gutter) var(--space-6); }
.nav-pill { height: 56px; padding: 0 var(--space-8); gap: var(--space-10); }
.nav-pill .logo { margin-right: var(--space-2); }
.nav-pill .logo img { height: 24px; }
.nav-pill a.link { font-size: var(--fs-body); margin-right: 0; }
.nav .btn-white { min-height: 56px; font-size: var(--fs-body); }

/* hero: hero size over lede (~4x jump) */
.hero { min-height: min(calc(100svh - 112px), 880px); align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); gap: var(--space-12); padding: var(--space-8) var(--gutter) var(--space-12); }
.hero > div:first-child { padding: 0; }
.tools { height: 44px; padding: 0 var(--space-3) 0 var(--space-4); }
.tools span { font-size: var(--fs-cap); margin-right: var(--space-2); }
.tools i { width: 28px; height: 28px; }
.hero h1 { font-size: var(--fs-hero); line-height: var(--lh-hero); letter-spacing: var(--tr-hero); margin-top: var(--space-6); max-width: 13ch; }
.hero .lede { font-size: var(--fs-lede); line-height: var(--lh-lede); margin-top: var(--space-6); max-width: 46ch; }
.hero .actions { margin-top: var(--space-10); gap: var(--space-4); }
.stack { height: min(calc(100svh - 112px), 880px); margin-top: 0; gap: var(--space-6); }
.stack .col { gap: var(--space-6); }
.stack .col:first-child { margin-top: calc(-1 * var(--space-24)); }
.stack .shot { height: calc(var(--h) * 0.85px) !important; border-radius: var(--r-inner); }

/* logos */
.trusted { min-height: 0; padding: var(--section-y) 0; }
.trusted h2 { font-size: 1.75rem; line-height: var(--lh-h2); }
.trusted .facts { margin-top: var(--space-4); font-size: var(--fs-cap); gap: var(--space-2) var(--space-6); }
.marquee { margin-top: var(--space-12); gap: var(--space-8); }
.marquee .row { gap: var(--space-16); }
.marquee .logo { height: 28px; font-size: 1.25rem; }

/* services */
.services, .projects, .process, .faq { min-height: 0; padding: var(--section-y) 0; }
.svc-grid { margin-top: var(--space-16); gap: var(--space-8); }
.svc { min-height: 0; padding: var(--space-6); border-radius: var(--r-card); }
.svc .media { height: clamp(220px, 24vw, 340px); border-radius: var(--r-inner); }
.svc h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); margin-top: var(--space-8); gap: var(--space-3); }
.svc h3 svg { width: 24px; height: 24px; }
.svc p { font-size: var(--fs-body); line-height: var(--lh-body); margin-top: var(--space-2); }

/* projects */
.proj-list { margin-top: var(--space-16); gap: var(--space-8); }
.proj { min-height: 0; padding: var(--space-6); gap: var(--space-12); grid-template-columns: minmax(0, 40%) 1fr; border-radius: var(--r-card); }
.proj .media { height: auto; aspect-ratio: 418 / 383; border-radius: var(--r-inner); }
.proj .info { padding: var(--space-4) var(--space-6) var(--space-4) 0; }
.proj .icons i { width: 40px; height: 40px; }
.proj .time { font-size: var(--fs-cap); }
.proj h3 { font-size: clamp(1.5rem, 2.2vw, 1.75rem); line-height: var(--lh-h3); margin-top: var(--space-6); }
.proj .sub { font-size: var(--fs-body); line-height: var(--lh-body); margin-top: var(--space-2); }
.tags { margin-top: var(--space-6); gap: var(--space-2); }
.proj .btn { margin-top: var(--space-8); }
.see-more { margin-top: var(--space-12); font-size: var(--fs-h3); }

/* process */
.steps { margin-top: var(--space-16); gap: var(--space-8); }
.step { min-height: 0; padding: var(--space-6) var(--space-6) var(--space-8); border-radius: var(--r-card); }
.step .art { height: clamp(200px, 20vw, 280px); border-radius: var(--r-inner); }
.step .art img { width: clamp(120px, 12vw, 168px); }
.step h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); margin-top: var(--space-8); gap: var(--space-3); }
.step h3 svg { width: 24px; height: 24px; }
.step p { font-size: var(--fs-body); line-height: var(--lh-body); margin-top: var(--space-2); }

/* why */
.why { min-height: 0; padding: var(--section-y) 0; gap: var(--space-16); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.why .left { padding-top: 0; }
.why .badge { margin-bottom: var(--space-4); }
.why .left p { font-size: var(--fs-lede); line-height: var(--lh-lede); margin-top: var(--space-4); max-width: 42ch; }
.why .left .btn { margin-top: var(--space-10); }
.timeline { display: block; padding: 0 0 0 var(--space-16); }
.timeline .item { min-height: 0; padding-bottom: var(--space-16); }
.timeline .item:last-child { padding-bottom: 0; }
.timeline .dot { left: calc(-1 * var(--space-16)); top: 2px; width: 24px; height: 24px; }
.timeline .item.on .dot { box-shadow: 0 0 0 var(--space-3) rgba(59,130,246,.14); }
.timeline::before { left: 11px; top: 26px; bottom: 0; }
.timeline .item.on::before { left: calc(-1 * var(--space-16) + 10.5px); top: 26px; height: var(--space-16); width: 3px; }
.timeline h3 { font-size: clamp(1.5rem, 2.2vw, 1.75rem); line-height: var(--lh-h3); }
.timeline p { font-size: var(--fs-body); line-height: var(--lh-body); margin-top: var(--space-2); max-width: 46ch; }

/* faq */
.faq-list { margin-top: var(--space-16); width: min(840px, 100%); min-width: 0; }
.faq summary { padding: var(--space-6) var(--space-4); font-size: var(--fs-lede); line-height: var(--lh-lede); min-height: var(--hit-min); }
.faq details[open] summary { padding-bottom: var(--space-3); }
.faq details p { font-size: var(--fs-body); line-height: var(--lh-body); padding: 0 var(--space-4) var(--space-6); max-width: 70ch; }
.faq .more { min-height: 0; padding: var(--space-6) var(--space-4); font-size: var(--fs-lede); }
.faq .more .btn { min-height: 48px; }

/* cta: large marketing card, 40px corners */
.cta-wrap { min-height: 0; padding: var(--section-y) 0; }
.cta { min-height: 0; max-width: 1190px; border-radius: var(--r-big); padding: var(--space-16) var(--space-6); align-content: start; }
.cta h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); max-width: 20ch; }
.cta p { font-size: var(--fs-lede); margin-top: var(--space-2); }
.cta .btn { margin-top: var(--space-8); }
.cta .env { height: 62%; }
.glow { height: 200px; }
.foot { padding: var(--space-8) var(--gutter) var(--space-12); font-size: var(--fs-cap); }
.foot nav { gap: var(--space-6); }
.foot nav a { min-height: var(--hit-min); display: inline-flex; align-items: center; }

/* tablet and phone: stacked, same tokens */
@media (max-width: 1024px) {
  .nav-pill a.link { display: none; }
  .nav-pill { padding: 0 var(--space-6); }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: var(--space-8) var(--gutter) 0; }
  .stack { height: 480px; }
  .stack .shot { height: calc(var(--h) * .6px) !important; }
  .svc-grid, .why { grid-template-columns: 1fr; }
  .proj { grid-template-columns: 1fr; }
  .proj .info { padding: 0; }
  .steps { grid-template-columns: 1fr; }
  .cta { padding: var(--space-12) var(--space-6) 220px; }
  .cta .env { height: auto; width: 40%; }
}
@media (max-width: 640px) {
  .nav { padding: var(--space-4); }
  .nav .btn .long { display: none; }
  .hero { padding: var(--space-6) var(--space-4) 0; }
  .stack { height: 380px; gap: var(--space-3); }
  .stack .col { gap: var(--space-3); }
  .stack .shot { height: calc(var(--h) * .46px) !important; border-radius: 12px; }
  .stack .fade { height: 110px; }
  .svc, .proj, .step { padding: var(--space-4); }
  .timeline { padding-left: var(--space-12); }
  .timeline .dot { left: calc(-1 * var(--space-12)); }
  .timeline .item.on::before { left: calc(-1 * var(--space-12) + 10.5px); }
  .cta { border-radius: var(--r-card); padding: var(--space-12) var(--space-4) 160px; }
  .cta .env { width: 47%; }
  .frame { border: 0; }
}

.rule { margin-bottom: -1px; }
.nav-pill a.link { display: inline-flex; align-items: center; min-height: var(--hit-min); }
.see-more { display: flex; align-items: center; min-height: var(--hit-min); }

/* spacing fix: one horizontal grid for every section, hero on the section rhythm, off-scale gaps snapped */
.wrap { width: min(1268px, calc(100% - 2 * var(--gutter))); }
.hero { min-height: 0; align-items: start; padding: var(--section-y) var(--gutter); }
.stack { align-self: stretch; height: auto; min-height: 560px; margin: calc(-1 * var(--section-y)) 0; }
.cta { max-width: none; }
.marquee .logo { gap: var(--space-2); }
.trusted .facts span { gap: var(--space-2); }
.proj .time { gap: var(--space-2); }
.tools { gap: var(--space-1); }
.tools span { margin-right: var(--space-3); }
.faq .more { gap: var(--space-4); }
@media (max-width: 1024px) {
  .hero { padding: var(--section-y) var(--gutter) 0; }
  .stack { min-height: 0; height: 480px; margin: var(--space-12) 0 0; }
}
@media (max-width: 640px) {
  .stack { height: 380px; }
}
/* the screenshot column is decoration: it fills the hero's height instead of setting it */
.hero { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); }
.stack { position: absolute; top: 0; bottom: 0; right: var(--gutter); width: min(584px, 42%); height: auto; min-height: 0; margin: 0; }
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .stack { position: relative; right: auto; width: auto; height: 480px; margin: var(--space-12) 0 0; }
}
@media (max-width: 640px) { .stack { height: 380px; } }
@media (max-width: 1024px) { .nav-pill a.link { display: none; } .nav-pill { gap: 0; } }

/* self-review fixes */
.boxed::before { inset: .1em -.06em .02em; }
.boxed i { width: 7px; height: 7px; }
.boxed i:nth-of-type(1) { top: calc(.1em - 4px); } .boxed i:nth-of-type(2) { top: calc(.1em - 4px); }
.boxed i:nth-of-type(3) { bottom: calc(.02em - 4px); } .boxed i:nth-of-type(4) { bottom: calc(.02em - 4px); }
.boxed i:nth-of-type(1), .boxed i:nth-of-type(3) { left: calc(-.06em - 4px); }
.boxed i:nth-of-type(2), .boxed i:nth-of-type(4) { right: calc(-.06em - 4px); }
/* logos balanced by optical size, not one fixed height */
.marquee .logo { height: 44px; }
.marquee .logo img { height: 28px; max-width: none; }
.marquee .logo img[src*="devon"] { height: 40px; }
.marquee .logo img[src*="ppdc"] { height: 38px; }
.marquee .logo img[src*="justicetech"] { height: 44px; }
.marquee .logo img[src*="slate"] { height: 32px; }
.marquee .logo img[src*="axao"] { height: 26px; }
.marquee .logo img[src*="propertyplug"] { height: 30px; }
@media (max-width: 640px) {
  .marquee .logo { height: 36px; }
  .marquee .logo img { height: 22px; }
  .marquee .logo img[src*="devon"], .marquee .logo img[src*="justicetech"] { height: 34px; }
  .marquee .logo img[src*="ppdc"] { height: 30px; }
}

/* =====================================================================
   MID-SIZE SCREENS (761-1280px): keep the desktop composition, scale it down.
   Same tokens; only phones (<=760) get the single stacked column.
   ===================================================================== */
@media (max-width: 1280px) {
  :root { --fs-body: 1rem; --fs-lede: 1.0625rem; --fs-h3: clamp(1.125rem, 1.6vw, 1.5rem); --section-y: var(--space-20); }
  .btn { min-height: 44px; padding: 10px 20px; font-size: 1rem; }
  .nav .btn-white, .nav-pill { min-height: 48px; height: 48px; }
  .svc .media { height: clamp(180px, 22vw, 300px); }
  .step .art { height: clamp(160px, 17vw, 240px); }
  .step .art img { width: clamp(96px, 10vw, 150px); }
  .proj h3, .timeline h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
  .tags { margin-top: var(--space-4); }
  .proj .btn { margin-top: var(--space-6); }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); padding: var(--section-y) var(--gutter); }
  .stack { position: absolute; top: 0; bottom: 0; right: var(--gutter); width: 40%; height: auto; margin: 0; }
  .stack .shot { height: calc(var(--h) * .62px) !important; }
  .hero h1 { font-size: clamp(2.25rem, 5vw, 3rem); }
  .svc-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .svc { padding: var(--space-4); }
  .svc h3 { margin-top: var(--space-6); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
  .step { padding: var(--space-4) var(--space-4) var(--space-6); }
  .step h3 { margin-top: var(--space-6); }
  .proj { grid-template-columns: minmax(0, 38%) 1fr; gap: var(--space-8); padding: var(--space-4); }
  .proj .media { aspect-ratio: 4 / 5; }
  .proj .info { padding: var(--space-2) var(--space-4) var(--space-2) 0; }
  .why { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
  .timeline { padding-left: var(--space-12); }
  .timeline .dot { left: calc(-1 * var(--space-12)); }
  .timeline .item.on::before { left: calc(-1 * var(--space-12) + 10.5px); }
  .timeline .item { padding-bottom: var(--space-12); }
  .cta { padding: var(--space-12) var(--space-6) var(--space-12); }
  .cta .env { height: 55%; width: auto; }
  .cta .copy { max-width: 56%; }
  .section-head h2, .why h2 { font-size: clamp(1.75rem, 3.8vw, 2.25rem); }
}

/* =====================================================================
   FULL-VIEWPORT SECTIONS + GENTLE SNAP
   Every section is at least one screen tall with its content centred.
   Snapping is "proximity": it only settles when you stop near a section edge,
   so long sections (projects) still scroll freely. Off for reduced motion.
   ===================================================================== */
.hero { min-height: calc(100svh - var(--nav-h, 112px)); align-content: center; }
.trusted, .services, .projects, .process, .faq { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.why { min-height: 100svh; align-content: center; }
.cta-wrap { min-height: calc(100svh - var(--end-h, 300px)); display: flex; flex-direction: column; justify-content: center; }
.trusted > *, .services > *, .projects > *, .process > *, .faq > *, .cta-wrap > * { width: min(1268px, calc(100% - 2 * var(--gutter))); margin-left: auto; margin-right: auto; }
.trusted > .marquee { width: 100%; }
@media (max-width: 1024px) and (min-width: 761px) { .hero { align-items: center; } }
@media (max-width: 760px) { .hero { min-height: calc(100svh - var(--nav-h, 80px)); align-content: start; } }

/* hero screenshots: two columns drifting in opposite directions (motion lives in the imagery, type holds still) */
.stack .col { display: block; overflow: visible; }
.stack .col:first-child, .stack .col:last-child { margin-top: 0; }
.stack .track { display: grid; gap: inherit; row-gap: var(--space-6); will-change: transform; animation: hero-up 60s linear infinite; }
.stack .track.down { animation-name: hero-down; animation-duration: 70s; }
.stack .track > .shot { margin: 0; }
@keyframes hero-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - var(--space-3))); } }
@keyframes hero-down { from { transform: translateY(calc(-50% - var(--space-3))); } to { transform: translateY(0); } }
.stack:hover .track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .stack .track { animation: none; } }
@media (max-width: 640px) { .stack .track { row-gap: var(--space-3); } @keyframes hero-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 6px)); } } @keyframes hero-down { from { transform: translateY(calc(-50% - 6px)); } to { transform: translateY(0); } } }

/* hero scaled down ~15% (still on the token scale) */
.hero h1 { font-size: clamp(2.125rem, 4.2vw, 3.75rem); margin-top: var(--space-4); }
.hero .lede { font-size: 1rem; line-height: 1.55; margin-top: var(--space-4); max-width: 44ch; }
.hero .actions { margin-top: var(--space-8); gap: var(--space-3); }
.hero .btn { min-height: 44px; padding: 10px 20px; font-size: .9375rem; }
.hero .btn svg { width: 16px; height: 16px; }
.tools { height: 36px; padding: 0 var(--space-2) 0 var(--space-3); }
.tools span { font-size: .75rem; margin-right: var(--space-2); }
.tools i { width: 24px; height: 24px; }
.tools i img { width: 11px; height: 11px; }
.boxed i { width: 6px; height: 6px; }
.stack { width: min(500px, 38%); }
.stack .shot { height: calc(var(--h) * .72px) !important; border-radius: 14px; }
.stack .track { row-gap: var(--space-4); }
@keyframes hero-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 8px)); } }
@keyframes hero-down { from { transform: translateY(calc(-50% - 8px)); } to { transform: translateY(0); } }
.nav .btn-white { font-size: .9375rem; }
@media (min-width: 761px) and (max-width: 1024px) {
  .hero h1 { font-size: clamp(2rem, 4.4vw, 2.5rem); }
  .stack { width: 38%; }
  .stack .shot { height: calc(var(--h) * .55px) !important; }
}
@media (max-width: 760px) {
  .hero h1 { font-size: 2.125rem; }
  .stack { width: auto; }
  .stack .shot { height: calc(var(--h) * .45px) !important; }
}
@media (max-width: 640px) { .hero .actions .btn { height: auto; min-height: 44px; padding: 10px 18px; font-size: .9375rem; } }

/* Benjamin wordmark (white on the black page) */
.nav-pill .logo img { height: 22px; width: auto; }
.foot-brand { display: inline-flex; align-items: center; gap: var(--space-4); }
.foot-brand img { height: 18px; width: auto; opacity: .9; }
@media (max-width: 640px) { .nav-pill .logo img { height: 20px; } .foot-brand { flex-direction: column; align-items: flex-start; gap: var(--space-2); } }

/* ── HERO TEXT ONLY + PROJECT REEL (ported from the live site, two rows on scroll) ── */
.hero { grid-template-columns: minmax(0, 1fr) !important; justify-items: center; text-align: center; }
.hero > div:first-child { display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-left: auto; margin-right: auto; }
.hero .actions { justify-content: center; }

.reel { position: relative; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: var(--space-14, 56px) 0; }
.reel-rows { display: flex; flex-direction: column; gap: 18px; }
.reel-track { display: flex; gap: 18px; width: max-content; will-change: transform; }
.reel-card { --w: calc(25vw - 16px); flex: none; width: var(--w); display: block; color: inherit; text-decoration: none; border-radius: 20px; overflow: hidden; background: var(--card); border: 10px solid rgba(255,255,255,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 48px -24px rgba(0,0,0,.8); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.reel-card:hover { transform: translateY(-4px); }
.reel-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.reel-img { position: relative; height: calc(var(--w) * .68); overflow: hidden; border-radius: 10px 10px 0 0; }
.reel-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* glossy sheen over each screen */
.reel-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(155deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.04) 28%, transparent 46%); }
.reel-view { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; }
.reel-view span { background: rgba(10,14,24,.78); color: #fff; font-weight: 600; font-size: 13px; padding: 10px 20px; border-radius: 999px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.reel-card:hover .reel-view, .reel-card:focus-visible .reel-view { opacity: 1; }
.reel-info { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 5px; }
.reel-name { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.reel-type { font-size: 12.5px; color: var(--muted); font-weight: 500; }
/* glossy blurred edges, same treatment the hero stack had */
.reel-fade { position: absolute; top: 0; bottom: 0; width: min(120px, 8vw); z-index: 3; pointer-events: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.reel-fade.l { left: 0; background: linear-gradient(90deg, #000, rgba(0,0,0,.5) 50%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent); }
.reel-fade.r { right: 0; background: linear-gradient(270deg, #000, rgba(0,0,0,.5) 50%, transparent); -webkit-mask-image: linear-gradient(270deg, #000 30%, transparent); mask-image: linear-gradient(270deg, #000 30%, transparent); }
@media (max-width: 1280px) { .reel-card { --w: calc(30vw - 14px); } }
@media (max-width: 950px) { .reel-card { --w: calc(33.33vw - 14px); } }
@media (max-width: 760px) { .reel { min-height: 0; padding: var(--section-y) 0; } }
@media (max-width: 620px) { .reel-card { --w: calc(66.67vw - 12px); border-radius: 16px; border-width: 8px; } .reel-info { padding: 18px 20px 20px; gap: 6px; } }

/* gold-dot wordmark with the BENJAMIN J. line */
.nav-pill .logo img { height: 34px; }
.foot-brand img { height: 26px; opacity: 1; }
@media (max-width: 640px) { .nav-pill .logo img { height: 26px; } }
@media (max-width: 760px) { .hero { align-content: center; padding-bottom: var(--section-y); } }

/* logo in the page blue: wordmark in the nav, full lockup (with BENJAMIN J.) in the footer */
.nav-pill .logo img { height: 24px; }
.foot-brand img { height: 24px; }
@media (max-width: 640px) { .nav-pill .logo img { height: 22px; } .foot-brand img { height: 22px; } }

/* =====================================================================
   PROPORTIONS PASS: one button scale and fluid type, so every element
   keeps the same relationship to the others at every screen width.
   Buttons: lg (hero, final CTA) > md (cards, FAQ, nav) ; never < 44px.
   Type: hero ≈ 1.4× H2 ≈ 1.8× H3 at all widths (was 1.1× at 943px).
   ===================================================================== */
:root {
  --fs-hero: clamp(2.25rem, 3vw + 1.5rem, 3.75rem);   /* 36 → 52 @943 → 60 */
  --fs-h2:   clamp(1.75rem, 2.4vw + .75rem, 2.75rem); /* 28 → 35 @943 → 44 */
  --fs-h3:   clamp(1.125rem, .8vw + .85rem, 1.5rem);  /* 18 → 21 @943 → 24 */
  --fs-h3-lg: clamp(1.25rem, 1.2vw + .85rem, 1.75rem); /* 20 → 25 @943 → 28 */
  --fs-lede: clamp(1rem, .4vw + .85rem, 1.15rem);     /* 16 → 17 @943 → 18.4 */
  --btn-md-h: 48px; --btn-md-px: 24px; --btn-md-fs: 1rem;
  --btn-lg-h: 52px; --btn-lg-px: 28px; --btn-lg-fs: 1.0625rem;
  --nav-ctl-h: 52px;
}
@media (max-width: 1024px) {
  :root { --btn-md-h: 44px; --btn-md-px: 20px; --btn-md-fs: .9375rem;
          --btn-lg-h: 48px; --btn-lg-px: 24px; --btn-lg-fs: 1rem; --nav-ctl-h: 48px; }
}

/* buttons */
.btn, .btn-blue, .hero .btn, .hero .actions .btn, .proj .btn, .faq .more .btn, .why .left .btn {
  height: var(--btn-md-h); min-height: var(--btn-md-h); padding: 0 var(--btn-md-px);
  font-size: var(--btn-md-fs); font-weight: 500; line-height: 1; gap: var(--space-2);
}
.hero .actions .btn, .cta .btn { height: var(--btn-lg-h); min-height: var(--btn-lg-h); padding: 0 var(--btn-lg-px); font-size: var(--btn-lg-fs); }
.btn svg, .hero .btn svg { width: 1em; height: 1em; }
.hero .actions { gap: var(--space-3); }
/* nav: pill and CTA share one height */
.nav-pill, .nav .btn-white, .nav .btn { height: var(--nav-ctl-h); min-height: var(--nav-ctl-h); }
.nav .btn-white, .nav .btn { padding: 0 var(--btn-md-px); font-size: var(--btn-md-fs); }
/* "See All Work" is a real button now, centred under the projects */
.see-more.btn { display: flex; margin: var(--space-12) auto 0; font-family: var(--text); text-decoration: none; }
.see-more.btn:hover { text-decoration: none; }

/* type */
.hero h1 { font-size: var(--fs-hero); line-height: 1.08; }
.hero .lede { font-size: var(--fs-lede); line-height: 1.5; }
:is(.section-head, .why, .faq, .cta) h2 { font-size: var(--fs-h2); line-height: 1.12; }
.trusted h2 { font-size: var(--fs-h3-lg); }
.svc h3, .step h3 { font-size: var(--fs-h3); line-height: 1.25; }
.svc h3 svg, .step h3 svg { width: 1em; height: 1em; }
.proj h3, .timeline h3 { font-size: var(--fs-h3-lg); line-height: 1.2; }
.reel-name { font-size: var(--fs-h3); }
.faq .more { font-size: var(--fs-lede); }
.foot, .foot nav a { font-size: .875rem; }
/* labels: section badges and project tags share one chip size */
.badge, .tag { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; font-size: .8125rem; line-height: 1; }
.section-head p { font-size: var(--fs-lede); max-width: 52ch; }
/* service cards: titles line up across a row whatever the description length */
.svc { grid-template-rows: auto auto 1fr; align-content: start; }
.svc h3 { align-self: start; }
.nav-pill .logo { display: inline-flex; align-items: center; min-height: 44px; }

/* Tools I use: all 18 tools loop through a fixed window inside the chip */
.tools { gap: 0; }
.tools-win { --tool: 24px; --tgap: 4px; width: calc(6 * var(--tool) + 5 * var(--tgap)); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.tools-track { display: flex; gap: var(--tgap); width: max-content; animation: tools-loop 36s linear infinite; }
.tools-track i { flex: none; width: var(--tool); height: var(--tool); }
.tools:hover .tools-track { animation-play-state: paused; }
@keyframes tools-loop { to { transform: translateX(calc(-50% - var(--tgap) / 2)); } }
@media (prefers-reduced-motion: reduce) { .tools-track { animation: none; } }
/* Figma keeps its real five-colour mark; the white filter merges its shapes into one blob */
.tools i img[src$="figma.svg"] { filter: none; height: 14px; }
/* Bendesignr mark (blue tile) in nav and footer */
.nav-pill .logo img { height: 30px; }
.foot-brand img { height: 28px; }
@media (max-width: 640px) { .nav-pill .logo img { height: 28px; } .foot-brand img { height: 26px; } }

/* =====================================================================
   PROJECT REEL: exact match of the live bendesignr.com reel
   (no sheen, no edge fades, warm card, Sora meta line, live padding)
   ===================================================================== */
.reel { min-height: 0; display: block; padding: 56px 0 72px; background: #000; }
.reel-rows { gap: 18px; }
.reel-track { gap: 18px; }
.reel-card { --w: calc(25vw - 16px); background: #16130c; border: 10px solid rgba(255,255,255,.07); border-radius: 20px; box-shadow: none; }
.reel-img { height: calc(var(--w) * .68); border-radius: 0; }
.reel-img::after { content: none; }
.reel-view span { background: rgba(16,19,24,.82); font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: -.01em; padding: 10px 20px; }
.reel-info { padding: 20px 22px 22px; gap: 5px; }
.reel-name { font-family: var(--display); font-size: 20px; font-weight: 700; color: #f4f6f8; letter-spacing: -.03em; line-height: 1.15; }
.reel-type { font-family: var(--display); font-size: 12.5px; font-weight: 500; color: #a49c8c; }
@media (max-width: 1280px) { .reel-card { --w: calc(30vw - 14px); } }
@media (max-width: 950px) { .reel-card { --w: calc(33.33vw - 14px); } }
@media (max-width: 760px) { .reel { padding: 56px 0 72px; } }
@media (max-width: 620px) { .reel-card { --w: calc(66.67vw - 12px); border-radius: 16px; border-width: 8px; } .reel-info { padding: 18px 20px 20px; gap: 6px; } }

/* frame marks: the real Figma (left) and Framer (right) logos, not hand-drawn copies */
.rule::before, .rule::after { top: -7px; width: 14px; height: 14px; opacity: 1; }
.rule::before { left: max(0px, calc((100vw - min(100vw, var(--frame))) / 2 - 7px)); background-image: url("tools/figma.svg"); }
.rule::after { right: max(0px, calc((100vw - min(100vw, var(--frame))) / 2 - 7px)); background-image: url("tools/framer.svg"); }

/* Tools I use: wider window, 12 tools visible on desktop, 9 on tablet, 7 on phones */
.tools-win { width: calc(12 * var(--tool) + 11 * var(--tgap)); }
@media (max-width: 1024px) { .tools-win { width: calc(9 * var(--tool) + 8 * var(--tgap)); } }
@media (max-width: 480px) { .tools-win { width: calc(7 * var(--tool) + 6 * var(--tgap)); } }

/* hero: the same blue glow + stars as above the footer, rising from the bottom edge */
.hero { overflow: hidden; }
.hero > div:first-child { position: relative; z-index: 1; }
.hero-glow { position: absolute; left: 0; right: 0; bottom: 0; height: min(260px, 32%); z-index: 0; pointer-events: none; }
@media (max-width: 760px) { .hero-glow { height: 200px; } }

/* =====================================================================
   SERVICES: Melfi bento (wide + narrow, then narrow + wide), black theme.
   Text top-left, artwork bleeds off the bottom edge of each card.
   ===================================================================== */
.bento { display: grid; gap: var(--space-4); margin-top: var(--space-16); }
.bento-row { display: grid; gap: var(--space-4); }
.bento-row.r1 { grid-template-columns: 1.4fr 1fr; }
.bento-row.r2 { grid-template-columns: 1fr 1.76fr; }
.bc { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--card); border: 1px solid #161b28; height: 420px; }
.bento-row.r2 .bc { height: 480px; }
.bc-brand { background: linear-gradient(180deg, #0f1f3d 0%, #0b1730 100%); border-color: #17284a; }
.bc-text { position: relative; z-index: 2; padding: var(--space-8) var(--space-8) 0; max-width: 34ch; }
.bc-ui .bc-text { padding-left: 12%; }
.bc-brand .bc-text { padding-left: 9%; }
.bc h3 { font-size: var(--fs-h3); line-height: 1.25; margin: 0; }
.bc p { color: var(--muted); font-size: var(--fs-body); line-height: 1.5; margin-top: var(--space-3); }
.bc .art { position: absolute; z-index: 1; }

/* UI/UX: a dark design-tool window with three live cursors */
.art-ui { left: 12%; right: 12%; top: 178px; bottom: -40px; }
.ed { height: 100%; border-radius: 14px 14px 0 0; background: #121726; border: 1px solid #222a3d; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.ed-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: #0d111c; }
.ed-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; } .ed-bar i:nth-child(2) { background: #febc2e; } .ed-bar i:nth-child(3) { background: #28c840; }
.ed-bar b { width: 12px; height: 12px; margin-left: 10px; border-radius: 3px; background: var(--blue); } .ed-bar b.w { width: 60px; height: 6px; margin-left: 4px; border-radius: 3px; background: #2a3248; }
.ed-tools { display: flex; align-items: center; gap: 10px; height: 26px; padding: 0 12px; border-bottom: 1px solid #1f2637; background: #151b2b; }
.ed-tools span { width: 11px; height: 11px; border-radius: 50%; background: #2a3248; } .ed-tools span.on { background: var(--blue); } .ed-tools span.sq { width: 24px; border-radius: 4px; margin-left: auto; }
.ed-tools em { width: 110px; height: 5px; border-radius: 3px; background: #2a3248; margin-left: 20px; }
.ed-body { display: grid; grid-template-columns: 22% 1fr 22%; height: calc(100% - 52px); }
.ed-side { display: grid; align-content: start; gap: 10px; padding: 14px 12px; border-right: 1px solid #1f2637; }
.ed-side.r { border-right: 0; border-left: 1px solid #1f2637; }
.ed-side u { display: block; height: 5px; width: 60%; border-radius: 3px; background: #252d42; text-decoration: none; }
.ed-side u.l { width: 85%; } .ed-side u.dot { width: 9px; height: 9px; border-radius: 50%; background: #3a4560; }
.ed-canvas { padding: 16px 18px 0; background: #0f1320; }
.ed-frame { height: 100%; border-radius: 10px 10px 0 0; background: #181e2e; border: 1px solid #252d42; padding: 14px; display: grid; align-content: start; gap: 12px; }
.ed-frame u { display: block; text-decoration: none; border-radius: 6px; background: #252d42; }
.ed-frame u.pill { width: 34%; height: 12px; } .ed-frame u.pill.r { width: 22%; justify-self: end; margin-top: -24px; }
.ed-row { display: grid; grid-template-columns: 1fr 34%; gap: 12px; } .ed-frame u.bar { height: 10px; align-self: center; } .ed-frame u.bar.s { width: 40%; } .ed-frame u.box { height: 52px; border-radius: 8px; background: #22304d; }
.ed-avatars { display: flex; justify-content: space-around; } .ed-avatars u { width: 28px; height: 28px; border-radius: 50%; } .ed-avatars.t u { width: 46px; height: 6px; border-radius: 3px; }
.cur { position: absolute; display: flex; align-items: flex-start; gap: 2px; z-index: 3; will-change: transform; }
.cur svg { width: 15px; height: 15px; fill: currentColor; }
.cur em { margin-top: 10px; font: 600 10px/1 var(--text); font-style: normal; color: #fff; padding: 4px 8px; border-radius: 999px; background: currentColor; }
.cur em { background: none; position: relative; } .cur em::before { content: ""; position: absolute; inset: 0; border-radius: 999px; background: currentColor; z-index: -1; }
.cur.c1 { color: #8b6cff; left: 14%; top: 22%; animation: cur1 9s ease-in-out infinite; }
.cur.c2 { color: #ff6b6b; left: 46%; top: 52%; animation: cur2 11s ease-in-out infinite; }
.cur.c3 { color: var(--blue); left: 58%; top: 12%; animation: cur3 10s ease-in-out infinite; }
@keyframes cur1 { 0%,100% { transform: translate(0,0); } 30% { transform: translate(90px,40px); } 60% { transform: translate(40px,110px); } }
@keyframes cur2 { 0%,100% { transform: translate(0,0); } 35% { transform: translate(-80px,-50px); } 70% { transform: translate(60px,-20px); } }
@keyframes cur3 { 0%,100% { transform: translate(0,0); } 40% { transform: translate(-60px,70px); } 75% { transform: translate(70px,30px); } }

/* Design Systems: token file typing in a code window */
.art-code { left: var(--space-6); right: var(--space-6); top: 176px; bottom: var(--space-6); }
.win { height: 100%; border-radius: 14px; overflow: hidden; background: #0c1020; border: 1px solid #1e2640; border-top: 0; position: relative; }
.win::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, #7c5cff, var(--blue) 45%, #2fd3c5 80%, #ffb547); }
.win-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; }
.win-top i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; } .win-top i:nth-child(2) { background: #febc2e; } .win-top i:nth-child(3) { background: #28c840; }
.win-top span { margin-left: auto; font: 600 11px/1 var(--text); color: #8ea9ff; }
.code { margin: 0 14px; padding: 12px 14px; min-height: 150px; border-radius: 10px; background: #10162a; border: 1px solid #1e2640; font: 12px/1.75 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #c9d4f2; white-space: pre; overflow: hidden; }
.t-c { color: #66718f; font-style: italic; } .t-k { color: #8ea9ff; } .t-s { color: #7ee2b8; } .t-n { color: #ffb86b; } .t-p { color: #c9d4f2; }
.caret { display: inline-block; width: 7px; height: 14px; vertical-align: -2px; background: var(--blue); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Product Strategy and Brand Identity: real artefacts, framed, bleeding off the card */
.art-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-strat { left: var(--space-8); right: -12%; top: 168px; bottom: -2px; border-radius: 14px 0 0 0; overflow: hidden; border: 1px solid #252d42; border-right: 0; border-bottom: 0; background: #fff; }
.art-strat img { object-position: 50% 4%; }
.art-brand { left: 9%; right: 9%; top: 178px; bottom: -2px; border-radius: 16px 16px 0 0; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-bottom: 0; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); transform: perspective(1600px) rotateX(18deg); transform-origin: 50% 100%; }
.art-brand img { object-position: 50% 0; }

@media (prefers-reduced-motion: reduce) { .cur { animation: none; } .caret { animation: none; } }
@media (max-width: 1024px) {
  .bento-row.r1, .bento-row.r2 { grid-template-columns: 1fr; }
  .bc, .bento-row.r2 .bc { height: 440px; }
  .bc-text { padding: var(--space-6) var(--space-6) 0; }
  .bc-ui .bc-text, .bc-brand .bc-text { padding-left: var(--space-6); }
  .art-ui { left: var(--space-6); right: var(--space-6); top: 168px; }
  .art-code, .art-strat, .art-brand { top: 168px; }
  .art-brand { left: var(--space-6); right: var(--space-6); }
}
@media (max-width: 640px) {
  .bc, .bento-row.r2 .bc { height: 400px; }
  .art-ui, .art-code, .art-strat, .art-brand { top: 176px; }
  .ed-side.r { display: none; } .ed-body { grid-template-columns: 26% 1fr; }
  .cur.c3 { left: 50%; } .code { font-size: 11px; }
}
/* cursor tags: colour comes from --c so the label text stays white */
.cur { color: var(--c); }
.cur em { color: #fff; background: var(--c); position: static; }
.cur em::before { content: none; }
.cur.c1 { --c: #8b6cff; } .cur.c2 { --c: #ff6b6b; } .cur.c3 { --c: var(--blue); }
.bc-ui .bc-text, .bc-brand .bc-text { max-width: 54ch; }
.bc-ui .bc-text p, .bc-brand .bc-text p { max-width: 40ch; }

/* Brand Identity: client jobs drifting on a tilted plane, rows in opposite directions */
.art-jobs { left: 0; right: 0; top: 170px; bottom: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.jplane { position: absolute; left: -20%; right: -20%; top: 4%; display: grid; gap: 14px; transform: perspective(1500px) rotateX(24deg) rotateZ(-7deg); transform-origin: 50% 0; }
.jrow { overflow: visible; }
.jtrack { display: flex; gap: 14px; width: max-content; animation: jobs-l 60s linear infinite; }
.jrow.b .jtrack { animation-name: jobs-r; animation-duration: 70s; }
.jrow.a2 .jtrack { animation-duration: 80s; }
.jtrack img { flex: none; width: 236px; height: 115px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 30px -18px rgba(0,0,0,.9); }
@keyframes jobs-l { to { transform: translateX(calc(-50% - 7px)); } }
@keyframes jobs-r { from { transform: translateX(calc(-50% - 7px)); } to { transform: translateX(0); } }
.bc-brand:hover .jtrack { animation-play-state: paused; }

/* Product Strategy: the flow map pans slowly, as if being read */
.art-strat img.pan { height: auto; min-height: 100%; object-fit: initial; animation: flow-pan 26s ease-in-out infinite alternate; }
@keyframes flow-pan { from { transform: translateY(0); } to { transform: translateY(calc(-100% + 280px)); } }

@media (prefers-reduced-motion: reduce) { .jtrack, .art-strat img.pan { animation: none; } }
@media (max-width: 640px) { .jtrack img { width: 180px; height: 88px; } .jplane { left: -40%; right: -40%; } }

/* Brand Identity: a mark constructed on a triangle lattice (replaces the jobs plane) */
.art-mark { left: 0; right: 0; top: 160px; bottom: 0; }
.art-mark svg { width: 100%; height: 100%; display: block; }
#markBuild .t { fill: transparent; stroke: #4a6fb8; stroke-width: 1; stroke-linejoin: round; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1), fill .5s ease, stroke .5s ease; }
/* s1: lattice builds (centre row first) */
#markBuild.s1 .t { opacity: .75; transform: none; transition-delay: var(--d); }
/* s2: the mark's cells get selected */
#markBuild.s2 .t.in { fill: rgba(120,160,255,.18); stroke: #8fb2ff; transition-delay: var(--c); }
/* s3: everything outside the mark is cut away */
#markBuild.s3 .t:not(.in) { opacity: 0; transform: scale(.6); transition-delay: 0ms; transition-duration: .5s; }
/* s4: the three faces fill and the seams close */
#markBuild.s4 .t.in { opacity: 1; transition-delay: var(--c); }
#markBuild.s4 .t.f1 { fill: #4a8ff8; stroke: #4a8ff8; }
#markBuild.s4 .t.f2 { fill: #1f6ff0; stroke: #1f6ff0; }
#markBuild.s4 .t.f3 { fill: #133f96; stroke: #133f96; }
/* s5: fade out before the loop restarts */
#markBuild.s5 .t { opacity: 0; transition-delay: 0ms; transition-duration: .6s; }
/* s0: the seed triangle appears first, as in the drawing */
#markBuild.s0:not(.s1) .t.in.f2:first-of-type { opacity: 1; transform: none; }
@media (max-width: 640px) { .art-mark { top: 176px; } }

/* Brand Identity, aligned with the other cards: same card colour, same app-window
   framing as UI/UX, slate wireframe lines, page palette for the finished mark */
.bc-brand { background: var(--card); border-color: #161b28; }
.art-mark { left: 9%; right: 9%; top: 178px; bottom: -40px; }
.mk-win { height: 100%; }
.mk-canvas { height: calc(100% - 52px); background: #0f1320; overflow: hidden; }
#markBuild .t { stroke: #2a3248; }
#markBuild.s1 .t { opacity: 1; }
#markBuild.s2 .t.in { fill: rgba(39,118,239,.14); stroke: #3a5a99; }
#markBuild.s4 .t.f1 { fill: var(--blue); stroke: var(--blue); }
#markBuild.s4 .t.f2 { fill: #c9d4f2; stroke: #c9d4f2; }
#markBuild.s4 .t.f3 { fill: #3a4560; stroke: #3a4560; }
#markBuild .sel { opacity: 0; transition: opacity .4s ease; }
#markBuild .sel rect { fill: none; stroke: var(--blue); stroke-width: 1.2; }
#markBuild .sel rect.h { fill: #fff; stroke: var(--blue); }
#markBuild.s4 .sel { opacity: 1; transition-delay: 1.1s; }
#markBuild.s5 .sel { opacity: 0; transition-delay: 0ms; }
@media (max-width: 1024px) { .art-mark { left: var(--space-6); right: var(--space-6); top: 168px; } }
@media (max-width: 640px) { .art-mark { top: 176px; } }
/* Product Strategy in the same window framing, flow map shown in dark mode */
.art-strat { left: var(--space-8); right: -12%; top: 178px; bottom: -40px; border: 0; border-radius: 0; background: none; overflow: visible; }
.st-win { height: 100%; }
.st-canvas { height: calc(100% - 26px); overflow: hidden; background: #0f1320; }
.st-canvas img.pan { display: block; width: 100%; height: auto; filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.95); opacity: .9; }
@media (max-width: 1024px) { .art-strat { top: 168px; left: var(--space-6); } }
@media (max-width: 640px) { .art-strat { top: 176px; } }
/* flow map: brighter dark-mode render so the boxes and lines read like Melfi's journey map */
.st-canvas img.pan { filter: invert(1) hue-rotate(180deg) brightness(1.35) contrast(1.25) saturate(1.6); opacity: 1; width: 135%; max-width: none; margin-left: -6%; }
/* flow map's inverted (black) background takes the canvas navy, like the other windows */
.st-canvas { background: #0f1320; isolation: isolate; }
.st-canvas img.pan { mix-blend-mode: lighten; }
/* one card colour across the page (process steps were a darker shade) */
.step { background: var(--card); }

/* project images: the screenshots have their own rounded corners baked in on black
   (about 20px at display size). Clip with a radius at least that big and no light
   backdrop, so nothing white or black shows along the curve. */
.proj .media { background: transparent; border-radius: 20px; isolation: isolate; }
.proj .media img { display: block; border-radius: inherit; transform: scale(1.012); transform-origin: center top; }
@media (max-width: 640px) { .proj .media { border-radius: 16px; } }

/* nav: only the link text and the button are smaller; bar, logo and spacing unchanged */
.nav-pill a.link { font-size: .9375rem; }
.nav .btn-white, .nav .btn { height: 44px; min-height: 44px; padding: 0 18px; font-size: .9375rem; gap: 6px; }
.nav .btn svg { width: 14px; height: 14px; }
/* official single-colour Figma logo (Simple Icons) replaces the hand-drawn white version */
.rule::before { background-image: url("tools/figma-mono.svg"); }
/* right-hand line marks: Figma as well (was Framer) */
.rule::after { background-image: url("tools/figma-mono.svg"); }

/* =====================================================================
   MOBILE MENU (nav.js): Menu button in the nav pill below 1025px,
   panel with the page's links + Book a Call
   ===================================================================== */
.menu-btn { display: none; }
.menu-panel { display: none; }
@media (max-width: 1024px) {
  header { position: relative; z-index: 50; }
  .nav-pill { gap: var(--space-3); padding-right: 6px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px; margin-left: auto; border: 1px solid #222a3d; border-radius: 999px; background: rgba(255,255,255,.04); color: #fff; font: 500 .9375rem/1 var(--text); cursor: pointer; }
  .menu-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
  .menu-ico { position: relative; width: 16px; height: 10px; }
  .menu-ico i { position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .25s ease, top .25s ease; }
  .menu-ico i:first-child { top: 0; } .menu-ico i:last-child { top: 8px; }
  .menu-open .menu-ico i:first-child { top: 4px; transform: rotate(45deg); }
  .menu-open .menu-ico i:last-child { top: 4px; transform: rotate(-45deg); }
  .menu-panel:not([hidden]) { display: block; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 4px); z-index: 60; padding: var(--space-3); background: #0b0f1a; border: 1px solid #1f2637; border-radius: var(--r-card); box-shadow: 0 30px 60px -20px rgba(0,0,0,.85); animation: menu-in .2s ease; }
  .menu-panel ul { list-style: none; margin: 0; padding: 0; }
  .menu-panel li + li { border-top: 1px solid #161b28; }
  .menu-panel a:not(.btn) { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 var(--space-4); color: #e6ebf5; font-size: 1.0625rem; text-decoration: none; border-radius: 12px; }
  .menu-panel a:not(.btn):hover, .menu-panel a:not(.btn):focus-visible { background: rgba(255,255,255,.05); outline: none; }
  .menu-panel a svg { width: 18px; height: 18px; color: var(--muted); }
  .menu-cta { display: flex; width: 100%; margin-top: var(--space-3); }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 380px) {
  .menu-btn .menu-txt { display: none; }
  .menu-btn { padding: 0 13px; }
  .nav .btn-white, .nav .btn { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { .menu-panel:not([hidden]) { animation: none; } .menu-ico i { transition: none; } }

/* tablet and phone nav: the Menu button sits the same 4px inside the pill's outline on every side */
@media (max-width: 1024px) {
  .nav-pill { padding-right: 3px; }
  .menu-btn { height: calc(var(--nav-ctl-h) - 8px); min-height: 0; }
}
/* the Menu button stays 40px to sit evenly in the pill, but its tap area is the full 44px+ (Apple HIG minimum) */
@media (max-width: 1024px) {
  .menu-btn { position: relative; }
  .menu-btn::after { content: ""; position: absolute; inset: -4px -4px; }
}

/* Shared by every long page (case-progress.js): reading progress + back to top, and on
   case studies, About and Résumé the nav that returns when scrolling up. */
/* nav returns when scrolling up */
header.nav-float { position: fixed; top: 0; left: 0; right: 0; z-index: 80; transform: translateY(-110%); background: rgba(0,0,0,.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid rgba(255,255,255,.06); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
header.nav-float.nav-in { transform: none; }
header.nav-float .nav { padding-top: var(--space-4); padding-bottom: var(--space-4); }

/* reading progress + back to top */
.k-progress { position: fixed; right: 24px; bottom: 24px; z-index: 70; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 12px; background: rgba(11,15,26,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 14px 34px -14px rgba(0,0,0,.9); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s cubic-bezier(.2,.7,.2,1), background .2s; }
.k-progress.on { opacity: 1; transform: none; pointer-events: auto; }
.k-progress:hover { background: #121a2e; }
.k-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.k-ring rect { fill: none; stroke-width: 3; }
.k-ring-bg { stroke: rgba(255,255,255,.12); }
.k-ring-fg { stroke: var(--blue-hi); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; transition: stroke-dashoffset .15s linear; }
.k-pct, .k-up { grid-area: 1 / 1; transition: opacity .2s, transform .2s; }
.k-pct { font: 600 15px/1 var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.k-up { width: 22px; height: 22px; opacity: 0; transform: translateY(6px); }
.k-progress:hover .k-pct, .k-progress:focus-visible .k-pct, .k-progress.done .k-pct { opacity: 0; transform: translateY(-6px); }
.k-progress:hover .k-up, .k-progress:focus-visible .k-up, .k-progress.done .k-up { opacity: 1; transform: none; }
.k-progress.done .k-ring-fg { stroke: #3ccf8e; }
@media (max-width: 760px) { .k-progress { right: 16px; bottom: 16px; width: 56px; height: 56px; } }
@media (prefers-reduced-motion: reduce) { header.nav-float, .k-progress, .k-pct, .k-up, .k-ring-fg { transition: none; } }

/* "Email address copied" message (booking.js): bottom centre, clear of the progress badge in the corner */
.copy-toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 12px;
  background: #fff; color: #000; font: 500 .9375rem/1.35 var(--text); text-align: center;
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.copy-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .copy-toast { bottom: 88px; } }
@media (prefers-reduced-motion: reduce) { .copy-toast { transition: none; } }
