/* Norb Pharma — clean and current. A white page, large confident headings, pictures in rounded
   colour frames that overlap, one live 3D scene on the home page. Reading text stays large for
   older visitors; the layout and pictures are aimed at younger ones too. */
:root {
  --ink: #0b1424;
  --text: #1c2838;
  --muted: #586579;
  --line: #e4e8ef;
  --soft: #f3f6fb;
  --white: #ffffff;
  --blue: #1f6bff;
  --blue-deep: #1552d6;
  --sky: #e4edff;
  --mint: #13a888;
  --mint-deep: #0b7a63;
  --mint-soft: #d9f5ec;
  --whatsapp: #177a47;
  --radius: 18px;
  --radius-lg: 36px;
  --shadow: 0 2px 4px rgba(11, 20, 36, 0.04), 0 22px 48px rgba(11, 20, 36, 0.09);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Familjen Grotesk", "Segoe UI", Arial, sans-serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 18px; overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 100px; scrollbar-color: var(--blue) var(--soft); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--sans); line-height: 1.65; caret-color: var(--blue); }
::selection { background: var(--blue); color: var(--white); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 0.45em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.3rem); }
h1 em { font-style: normal; color: var(--blue); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0 0 1.1em; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }
img { max-width: 100%; }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 32px; }
main section { padding: 104px 0; }
.lead { font-size: 1.2rem; line-height: 1.6; max-width: 54ch; color: var(--muted); margin-bottom: 1.6em; }
.sub { color: var(--muted); font-size: 1.12rem; margin: 0; max-width: 60ch; }
.actions { margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.head { margin-bottom: 48px; }
.head h2 { margin-bottom: 0.3em; }
.head.center { text-align: center; }
.head.center .sub { margin: 0 auto; }
.head.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }

/* Buttons: pills */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px;
  background: var(--blue); color: var(--white); border: 2px solid var(--blue); border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); box-shadow: 0 10px 22px rgba(31, 107, 255, 0.26); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn.dark { background: var(--ink); border-color: var(--ink); }
.btn.dark:hover { background: #22304a; border-color: #22304a; box-shadow: none; }
.btn.light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn.light:hover { background: var(--sky); border-color: var(--sky); box-shadow: none; }
.btn.wa-btn { background: var(--whatsapp); border-color: var(--whatsapp); }
.btn.wa-btn:hover { background: #126339; border-color: #126339; box-shadow: 0 10px 22px rgba(23, 122, 71, 0.26); }
.arr { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.glyph { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.glyph .solid { fill: currentColor; stroke: none; }

/* Header: logo, centred menu, one dark button, as in the client's reference */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.3s ease-out; }
.top.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1; }
.brand img { width: 40px; height: 40px; object-fit: cover; background: var(--ink); border-radius: 11px; }
.menu { flex: 1; display: flex; justify-content: center; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.menu a { display: block; padding: 9px 18px; white-space: nowrap; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.98rem; transition: background-color 0.2s ease-out; }
.menu a:hover { background: var(--soft); }
.menu a[aria-current="page"] { background: var(--soft); font-weight: 700; }
.menu-contact { display: none; }
.top-cta { padding: 11px 22px; }
.menu-toggle { display: none; }

/* Home hero and page headings: words on the left, a picture collage on the right */
.hero, .page-hero { padding: 56px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.page-hero .lead { margin-bottom: 0; }
.page-hero.plain { padding-bottom: 56px; }
.page-hero.plain h1 { max-width: 16ch; }
.crumbs { display: flex; gap: 8px; margin-bottom: 22px; font-size: 0.98rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--blue-deep); font-weight: 700; }

/* Picture frames: rounded, coloured, overlapping. Client photographs drop into the same frames. */
.frame { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); }
.frame img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform 0.9s var(--ease); }
.frame.photo img { object-fit: cover; padding: 0; }
.t-sky { background: var(--sky); }
.t-mint { background: #c9f1e3; }
.t-blue { background: var(--blue); }
.t-ink { background: var(--ink); }
.collage { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; margin-left: auto; }
.collage .big { position: absolute; right: 0; top: 0; width: 84%; aspect-ratio: 1; }
.collage .small { position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 1; box-shadow: 0 0 0 12px var(--white); }
.collage:hover .big img { transform: scale(1.04) rotate(-1.5deg); }
.collage:hover .small img { transform: scale(1.07) rotate(3deg); }

/* The round badge with turning lettering */
.badge { position: absolute; left: 4%; top: 22%; z-index: 2; display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.badge > svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); overflow: visible; }
.badge text { font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; fill: var(--ink); }
.badge span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: var(--white); transition: transform 0.4s var(--ease); }
.badge span .arr { transform: rotate(-45deg); }
.badge:hover span { transform: scale(1.1); }

/* The live 3D scene sits inside the big hero frame */
.scene { position: absolute; inset: 0; }
.halo { display: none; }
.obj { position: absolute; left: var(--x); top: var(--y); width: var(--w); transform: translate(-50%, -50%); }
.obj svg { display: block; width: 100%; height: auto; transform: rotate(var(--r)); filter: drop-shadow(0 16px 16px rgba(12, 60, 130, 0.2)); }
.stage3d { position: absolute; left: -14%; top: -14%; width: 128%; height: 128%; display: block; pointer-events: none; }
.has3d .obj { display: none; }
.defs { position: absolute; }

/* Intro: one large centred statement that lights up as it is read, then three figures */
.intro { text-align: center; }
.statement { margin: 0 auto 0.9em; max-width: 24em; font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3.1vw, 2.55rem); line-height: 1.22; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.support { margin: 0 auto; max-width: 62ch; color: var(--muted); font-size: 1.1rem; }
.figs { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 940px; margin: 64px auto 0; }
.figs > div { display: flex; flex-direction: column; align-items: center; padding: 4px 16px; }
.figs > div + div { border-left: 1px solid var(--line); }
.figs dd { order: -1; margin: 0 0 6px; font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.figs dt { color: var(--muted); font-size: 1.05rem; }

/* Services. The home page first shows four link cards (.tiles), then swaps in the full list from the
   Services page: four cards in a row, and the chosen service's detail opening beneath them. */
.svc { background: var(--soft); border-radius: 48px; margin: 0 16px; }
.svc > .wrap > .sub { margin-bottom: 32px; }
.tiles, .services { list-style: none; margin: 0; padding: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tiles a, .services button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 100%; height: 100%; min-height: 240px; padding: 28px 26px;
  border: 0; border-radius: 28px; background: var(--white); color: var(--ink); cursor: pointer; text-align: left; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 1.28rem; line-height: 1.2; letter-spacing: -0.015em;
  transition: background-color 0.35s ease-out, color 0.35s ease-out, transform 0.4s var(--ease), box-shadow 0.4s ease-out;
}
.tiles a:hover, .services button:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tiles .arr { margin-top: auto; width: 26px; height: 26px; color: var(--blue); }
.art { display: block; flex: none; width: 72px; height: 72px; fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s ease-out; }
.art .y { stroke: var(--mint); }
.art * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.services h2, .services h3 { margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: inherit; line-height: inherit; color: inherit; height: 100%; }
.plus { margin-top: auto; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--soft); fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; transition: background-color 0.3s ease-out, stroke 0.3s ease-out, transform 0.5s var(--ease); }
.plus path:first-child { transform-origin: 12px 12px; transition: transform 0.5s var(--ease); }
.services > li.open button { background: var(--blue); color: var(--white); box-shadow: 0 18px 36px rgba(31, 107, 255, 0.28); }
.services > li.open .art { stroke: var(--white); }
.services > li.open .art .y { stroke: #9cf3d9; }
.services > li.open .plus { background: rgba(255, 255, 255, 0.18); stroke: var(--white); transform: rotate(180deg); }
.services > li.open .plus path:first-child { transform: scaleY(0); }
.drop { display: grid; grid-template-rows: 1fr; }
.drop > div { overflow: hidden; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: center; margin-top: 16px; padding: 36px 40px; border-radius: 32px; background: var(--white); }
.detail .frame { aspect-ratio: 1; border-radius: 28px; }
.about { margin: 0 0 1.1em; max-width: 68ch; color: var(--muted); font-size: 1.05rem; }
.cols.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.group { margin: 0 0 0.6em; font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.ticks { list-style: none; margin: 0; padding: 0; }
.cols:not(.two) .ticks { columns: 2; column-gap: 40px; }
.ticks li { position: relative; padding: 7px 0 7px 34px; break-inside: avoid; line-height: 1.45; }
.ticks li::before, .reasons li::before { content: ""; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3l3 3 6-6.6' fill='none' stroke='%230b7a63' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.js .drop { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.55s var(--ease), visibility 0s 0.55s; }
.js .services > li.open .drop { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
html:not(.js) .plus { display: none; }
html:not(.js) .services > li + li { margin-top: 16px; }
@media (min-width: 1101px) {
  .js .services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .js .services > li { display: contents; }
  .js .services h2, .js .services h3 { grid-row: 1; }
  .js .drop { grid-row: 2; grid-column: 1 / -1; }
}

/* How We Work: a wide picture, then five steps joined by a line that fills as the visitor scrolls */
.frame.wide { aspect-ratio: 1600 / 640; }
.frame.wide img { padding: 2% 4%; }
.steps { --p: 1; position: relative; list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; counter-reset: step; }
.steps::before, .steps::after { content: ""; position: absolute; left: 26px; top: 25px; height: 2px; width: var(--len, calc(80% + 22px)); background: var(--line); }
.steps::after { background: var(--mint); transform-origin: 0 0; transform: scaleX(var(--p)); }
.steps > li { position: relative; z-index: 1; counter-increment: step; }
.steps > li::before {
  content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px;
  border-radius: 50%; background: var(--mint); color: var(--white); box-shadow: 0 0 0 8px var(--white);
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; font-variant-numeric: lining-nums;
  transition: background-color 0.4s ease-out, color 0.4s ease-out, transform 0.5s var(--ease);
}
.steps h3 { font-size: 1.22rem; margin-bottom: 0.4em; }
.steps p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.55; }

/* Team */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ph { overflow: hidden; border-radius: 30px; background: var(--sky); }
.ph img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.8s var(--ease); }
.team li:hover .ph img { transform: scale(1.05); }
.team h2, .team h3 { font-size: 1.3rem; margin: 18px 0 4px; }
.team p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.45; }
.team-preview { padding-top: 0; }
.team-page { padding-top: 24px; }

/* Why choose Norb Pharma: a collage beside five reasons */
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: start; }
.collage.tall { position: sticky; top: 120px; margin: 0; }
.why h2 { margin-bottom: 0.3em; }
.reasons { list-style: none; margin: 36px 0 0; padding: 0; }
.reasons li { position: relative; padding: 24px 0 24px 56px; border-top: 1px solid var(--line); }
.reasons li:last-child { border-bottom: 1px solid var(--line); }
.reasons li::before { top: 24px; width: 34px; height: 34px; }
.reasons h3 { font-size: 1.32rem; margin: 3px 0 0.3em; }
.reasons p { margin: 0; color: var(--muted); }

/* Contact */
.contact { padding-top: 24px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: stretch; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cards li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 30px 28px; border-radius: 28px; background: var(--soft); }
.cards h2 { margin: 0; font-family: var(--sans); font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.cards .big { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.cards p:not(.big) { margin: 0; color: var(--muted); }
.cards .btn { margin-top: auto; padding: 12px 20px; }
.cards li > .big + .btn { margin-top: 18px; }
.frame.side { min-height: 360px; }

/* Closing panel */
.cta { padding-bottom: 0; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center; padding: 64px; border-radius: 44px; background: var(--ink); color: #c9d4e6; }
.panel h2 { color: var(--white); max-width: 15ch; }
.panel p:not(.actions) { font-size: 1.15rem; max-width: 44ch; margin-bottom: 1.6em; }
.panel :focus-visible { outline-color: var(--white); }
.panel-art { aspect-ratio: 1; border-radius: 32px; }

/* Footer */
footer { background: var(--ink); color: #b7c3d6; padding: 72px 0 96px; margin-top: 104px; font-size: 0.98rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.brand.light { color: var(--white); margin-bottom: 18px; }
.brand.light img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
footer h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; color: var(--white); margin-bottom: 0.8em; }
footer p { max-width: 34ch; }
footer a { color: var(--white); }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { padding: 5px 0; }
footer :focus-visible { outline-color: var(--white); }
.copyright { display: block; margin-top: 48px; margin-bottom: 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); color: #8d9bb2; }

/* Quick contact: a WhatsApp button on large screens, Call and WhatsApp buttons on phones */
.quickbar { position: fixed; right: 20px; bottom: 20px; z-index: 30; }
.quickbar a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 999px; color: var(--white); font-weight: 600; text-decoration: none; box-shadow: 0 8px 22px rgba(11, 20, 36, 0.25); }
.quickbar .wa { background: var(--whatsapp); }
.quickbar .wa:hover { background: #126339; }
.quickbar .call { display: none; background: var(--blue); }
.quickbar a:focus-visible { outline-color: var(--white); outline-offset: -4px; }

/* ---------- Motion: only while motion.js is running with motion allowed ---------- */
.motion .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.1em 0.16em; margin: 0 -0.1em -0.16em; }
.motion .w > span { display: inline-block; animation: rise 1s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 80ms); }
.w.em > span { color: var(--blue); }
.motion .hero-copy .lead, .motion .hero-copy .actions, .motion .page-hero .lead { animation: fade-up 0.9s var(--ease) 0.5s both; }
.motion .hero-copy .actions { animation-delay: 0.65s; }
.motion .collage .big, .motion .collage .small { animation: frame-in 1.2s var(--ease) both; }
.motion .collage .big { animation-delay: 0.15s; }
.motion .collage .small { animation-delay: 0.35s; }
.motion .badge { animation: pop 0.9s var(--ease) 0.6s both; }
.motion .badge > svg { animation: turn 22s linear infinite; }
.motion .obj svg { animation: bob 7s ease-in-out infinite alternate; }
.motion .statement .t { color: #b8c3d3; transition: color 0.35s ease-out; }
.motion .statement .t.lit { color: var(--ink); }
.motion .reveal { clip-path: inset(12% 12% 12% 12% round var(--radius-lg)); opacity: 0; transition: clip-path 1.1s var(--ease), opacity 0.6s ease-out; }
.motion .reveal.in { clip-path: inset(0 0 0 0 round var(--radius-lg)); opacity: 1; }
.motion .services > li.open .art * { animation: draw 1.3s var(--ease) both; animation-delay: calc(var(--n) * 70ms + 100ms); }
.motion .services > li.open .ticks li { animation: fade-up 0.7s var(--ease) both; animation-delay: calc(var(--n) * 50ms + 160ms); }
.motion .services > li.open .detail .frame img { animation: frame-in 0.9s var(--ease) both; }
.motion .steps > li::before { background: var(--white); color: var(--mint-deep); box-shadow: 0 0 0 8px var(--white), inset 0 0 0 2px #a9dfcd; }
.motion .steps > li.on::before { background: var(--mint); color: var(--white); box-shadow: 0 0 0 8px var(--white); transform: scale(1.08); }
.motion .steps > li h3, .motion .steps > li p { opacity: 0.4; transition: opacity 0.5s ease-out; }
.motion .steps > li.on h3, .motion .steps > li.on p { opacity: 1; }
@keyframes rise { from { transform: translateY(110%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes frame-in { from { opacity: 0; transform: scale(0.92); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6) rotate(-30deg); } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes bob { from { transform: rotate(var(--r, 0deg)) translateY(5px); } to { transform: rotate(calc(var(--r, 0deg) + 6deg)) translateY(-9px); } }
@keyframes draw { from { stroke-dashoffset: 1; } }

/* ---------- Tablets and small laptops ---------- */
@media (max-width: 1100px) {
  .bar { gap: 16px; }
  .menu a { padding: 9px 13px; }
  .services > li { border-radius: 28px; background: var(--white); }
  .services > li + li { margin-top: 12px; }
  .services button { flex-direction: row; align-items: center; min-height: 0; gap: 18px; padding: 18px 20px; font-size: 1.15rem; box-shadow: none !important; transform: none !important; }
  .services h2, .services h3 { height: auto; }
  .services .art { width: 52px; height: 52px; }
  .plus { margin: 0 0 0 auto; flex: none; }
  .detail { grid-template-columns: 1fr; margin-top: 0; padding: 4px 22px 26px; border-radius: 0 0 28px 28px; }
  .detail .frame { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles a { min-height: 200px; }
}
@media (max-width: 960px) {
  main section { padding: 72px 0; }
  .bar { min-height: 72px; }
  .top-cta { display: none; }
  .js .menu-toggle { display: grid; place-content: center; gap: 7px; width: 48px; height: 48px; margin-left: auto; border: 0; border-radius: 50%; background: var(--soft); cursor: pointer; }
  .menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.35s var(--ease); }
  .top.open .menu-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .top.open .menu-toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
  .js .menu { position: absolute; left: 0; right: 0; top: 100%; display: block; padding: 8px 20px 24px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(11, 20, 36, 0.08); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s ease-out, transform 0.35s var(--ease), visibility 0s 0.35s; }
  .js .top.open .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js .menu ul { flex-direction: column; gap: 2px; }
  .js .menu a { padding: 14px 16px; border-radius: 16px; font-size: 1.12rem; }
  .js .menu-contact { display: flex; gap: 10px; margin: 16px 0 0; }
  .js .menu-contact .btn { flex: 1; justify-content: center; padding: 13px 10px; gap: 8px; font-size: 0.98rem; }
  html:not(.js) .bar { flex-wrap: wrap; padding-bottom: 12px; }
  html:not(.js) .menu { flex-basis: 100%; justify-content: flex-start; }
  html:not(.js) .menu ul { flex-wrap: wrap; }
  .hero, .page-hero { padding: 32px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .collage { max-width: 480px; margin: 0 auto; }
  .head { margin-bottom: 36px; }
  .svc { border-radius: 36px; margin: 0 10px; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .collage.tall { position: relative; top: auto; margin: 0 auto; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .frame.side { display: none; }
  .panel { grid-template-columns: 1fr; padding: 48px 40px; }
  .panel-art { display: none; }
  .foot { grid-template-columns: 1fr; gap: 28px; }
  footer { padding: 56px 0; margin-top: 72px; }
  /* the steps stack, and the line runs down the left */
  .steps { grid-template-columns: 1fr; gap: 30px; margin-top: 44px; }
  .steps::before, .steps::after { left: 25px; top: 26px; width: 2px; height: var(--len, calc(100% - 100px)); }
  .steps::after { transform: scaleY(var(--p)); }
  .steps > li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 20px; align-content: start; }
  .steps > li::before { grid-row: 1 / span 2; margin: 0; }
  .steps h3 { margin: 12px 0 4px; }
  .steps p { grid-column: 2; }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  html { font-size: 17px; }
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 20px; }
  main section { padding: 56px 0; }
  .bar { gap: 12px; min-height: 66px; }
  .brand { font-size: 1.2rem; }
  .brand img { width: 38px; height: 38px; }
  h1, .page-hero h1 { font-size: clamp(2rem, 9.4vw, 2.6rem); overflow-wrap: break-word; }
  .hero, .page-hero { padding: 20px 0 48px; }
  .lead { font-size: 1.08rem; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .collage { max-width: 360px; }
  .collage .small { box-shadow: 0 0 0 8px var(--white); }
  .badge { width: 104px; height: 104px; left: 0; top: 18%; }
  .badge text { font-size: 10px; }
  .badge span { width: 40px; height: 40px; }
  .frame { border-radius: 26px; }
  .statement { font-size: 1.45rem; line-height: 1.25; }
  .figs { margin-top: 40px; }
  .figs > div { padding: 4px 6px; }
  .figs dd { font-size: 2.05rem; }
  .figs dt { font-size: 0.86rem; line-height: 1.35; }
  .head.split .btn { flex: 1 1 100%; justify-content: center; }
  .svc { margin: 0; border-radius: 28px; }
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tiles a { flex-direction: row; align-items: center; gap: 14px; min-height: 0; padding: 16px 18px; font-size: 1.08rem; }
  .tiles .art { width: 44px; height: 44px; }
  .tiles .arr { margin: 0 0 0 auto; flex: none; }
  .services button { gap: 12px; padding: 16px; font-size: 1.05rem; }
  .services .art { width: 42px; height: 42px; }
  .plus { width: 36px; height: 36px; padding: 9px; }
  .detail { padding: 2px 16px 22px; }
  .cols.two { grid-template-columns: 1fr; gap: 20px; }
  .cols:not(.two) .ticks { columns: 1; }
  .frame.wide { aspect-ratio: 4 / 3; }
  .frame.wide img { padding: 4%; object-fit: cover; }
  .reasons li { padding: 20px 0 20px 48px; }
  .reasons li::before { width: 30px; height: 30px; top: 20px; }
  .reasons h3 { font-size: 1.2rem; }
  .team { gap: 24px 14px; }
  .ph { border-radius: 20px; }
  .team h2, .team h3 { font-size: 1.1rem; margin-top: 12px; }
  .team p { font-size: 0.88rem; }
  .cards { grid-template-columns: 1fr; }
  .panel { padding: 36px 24px; border-radius: 30px; }
  footer { padding: 44px 0 40px; margin-top: 56px; }
  .quickbar { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .quickbar a { padding: 15px 8px; font-size: 1.02rem; }
  .quickbar .call { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .arr, .plus, .plus path, .menu a, .ph img, .frame img, .tiles a, .services button, .js .drop, .badge span, .top { transition: none; }
  .btn:hover, .tiles a:hover, .services button:hover, .team li:hover .ph img, .collage:hover img, .btn:hover .arr { transform: none; }
}

/* Printing: everything visible, nothing moving */
@media print {
  .top, .quickbar, .scene, .badge, .menu-toggle { display: none !important; }
  .motion .reveal, .motion .w > span, .motion .hero-copy .lead, .motion .hero-copy .actions, .motion .page-hero .lead, .motion .collage .big, .motion .collage .small { opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; }
  .motion .statement .t { color: var(--ink) !important; }
  .motion .steps > li h3, .motion .steps > li p { opacity: 1 !important; }
  .js .drop { grid-template-rows: 1fr !important; visibility: visible !important; }
  .js .services { display: block !important; }
  .js .services > li { display: block !important; margin-bottom: 14px; }
}
