/* Monarc Services: high-end layer (redesign branch).
   Loaded after site.css and fx.css. Remove this file and lux.js and the site goes back to the old look.
   Principles: rounded, calm surfaces; one strong ease-out curve; hover only where a mouse exists;
   press feedback on touch; nothing animates from nothing. */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;
  --line: #1c201c;
  --line-2: #272c27;
  --bg-2: #0e100e;
  --bg-3: #151815;
  --header-h: 76px;
}

/* ---------- mobile-native baseline ---------- */
html { -webkit-tap-highlight-color: transparent; }
a, button, [role="button"], summary, .btn, .chip, .svc__item, .card--link { touch-action: manipulation; }
.btn, button, summary, .tabs button, .rcar__btn, .burger, .nav__link { -webkit-user-select: none; user-select: none; }
input, select, textarea, .field input, .field select, .field textarea { font-size: 16px; }
body { font-size: 17.5px; line-height: 1.62; }
.hdr__in { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.ftr { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }

/* Hover that sticks after a tap: undo the moving parts on touch screens */
@media (hover: none) {
  .btn:hover svg, .link-arrow:hover svg, .svc__item:hover .svc__go, .grp__go:hover svg { transform: none; }
  .card--link:hover, .svc__item:hover { background-color: inherit; }
}

/* ---------- type ---------- */
h1, h2, h3, h4 { letter-spacing: -0.032em; }
.h-xl { font-size: clamp(52px, 9.2vw, 148px); letter-spacing: -0.055em; line-height: 0.9; font-weight: 700; }
.h-l { font-size: clamp(36px, 5.2vw, 76px); letter-spacing: -0.045em; line-height: 0.96; }
.h-m { letter-spacing: -0.035em; }
.lead { line-height: 1.5; letter-spacing: -0.005em; }
.eyebrow { font-size: 11.5px; letter-spacing: 0.14em; }

/* ---------- surfaces ---------- */
.sec { padding: clamp(88px, 12vw, 168px) 0; }
.sec--tight { padding: clamp(56px, 7vw, 96px) 0; }
.sec--line { border-top: 0; }
.sec--paper { background: #f1f1ec; border-radius: var(--r-l); margin: 0 clamp(8px, 1.2vw, 16px); }
.sec--deep { background: var(--bg-2); border-radius: var(--r-l); margin: 0 clamp(8px, 1.2vw, 16px); }
.grid-bg { background-image: none; }

.ph { border-radius: var(--r-m); border: 0; isolation: isolate; }
.ph img { transition: transform 1.1s var(--ease-out); }
.card { border-radius: var(--r-m); border-color: var(--line); background: var(--bg-2); }
.card--media { overflow: hidden; }
.card--media .ph { border-radius: 0; }
.sec--paper .card { border-color: #e0e1da; }
.chip { border-radius: 999px; padding: 13px 18px; }
.chips { gap: 8px; }
.oa { border-radius: var(--r-m); }
.form-card { border-radius: var(--r-l); }
.field input, .field select, .field textarea { border-radius: var(--r-s); background: #0b0c0b; }
.tabs { border-radius: 999px; }
.tabs button { border-radius: 999px; }
.drop { border-radius: var(--r-m); padding: 8px; transform-origin: top left; }
.drop a { border-radius: var(--r-s); }
.cta-box { border-radius: var(--r-l); }
.rcar__item { border-radius: var(--r-m); border-top-width: 1px; }
.rcar__btn { border-radius: 999px; }
.grp__bridge { border-radius: var(--r-m); overflow: hidden; }
.grp__card { border-radius: var(--r-m); }
.td__tag { border-radius: 14px; padding: 5px 12px; }
.td__bar i { border-radius: 4px; }
.burger { border-radius: 999px; }
.gbar { background: #050605; }

/* ---------- buttons: pill, instant press ---------- */
.btn { border-radius: 999px; min-height: 54px; padding: 0 26px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 250ms var(--ease-out), filter 200ms ease; }
.btn--sm { min-height: 42px; padding: 0 18px; }
.btn--line { border-color: #333a33; }
.btn:active, .chip:active, .rcar__btn:active, .tabs button:active, .burger:active { transform: scale(0.97); }
.fx-on .btn:active { transform: scale(0.97); }
.btn svg { transition: transform 200ms var(--ease-out); }

/* ---------- header: a calm translucent material ---------- */
.hdr { background: rgba(8, 9, 8, 0.62); -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px); border-bottom: 1px solid transparent;
  transition: transform 420ms var(--ease-out), background-color 300ms ease, border-color 300ms ease; }
.hdr.is-scrolled { border-bottom-color: rgba(255, 255, 255, 0.06); background: rgba(8, 9, 8, 0.72); }
.lx-hide .hdr.is-scrolled { transform: translateY(-100%); }
.lx-hide .fx-seam { transform: translateY(calc(-1 * var(--header-h))); }
.fx-seam { transition: transform 420ms var(--ease-out); }
.nav__link { font-weight: 500; transition: color 200ms ease; }
.drop.is-open, .drop--wide.is-open { animation: lxPop 200ms var(--ease-out); }
@keyframes lxPop { from { opacity: 0; transform: translateY(-4px) scale(0.97); } }
@media (prefers-reduced-motion: reduce) { .drop.is-open, .drop--wide.is-open { animation: none; } .lx-hide .hdr.is-scrolled { transform: none; } }

/* mobile menu: full sheet, links arrive in order */
@media (max-width: 1140px) {
  .mnav { padding-bottom: calc(40px + env(safe-area-inset-bottom)); overscroll-behavior: contain; background: rgba(8, 9, 8, 0.96); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
  .mnav.is-open { display: block; animation: lxSheet 380ms var(--ease-drawer); }
  .mnav.is-open > * { animation: lxRise 520ms var(--ease-out) both; }
  .mnav.is-open > :nth-child(2) { animation-delay: 30ms; } .mnav.is-open > :nth-child(3) { animation-delay: 60ms; }
  .mnav.is-open > :nth-child(4) { animation-delay: 90ms; } .mnav.is-open > :nth-child(5) { animation-delay: 120ms; }
  .mnav.is-open > :nth-child(6) { animation-delay: 150ms; } .mnav.is-open > :nth-child(n+7) { animation-delay: 180ms; }
  .mnav summary, .mnav > a { font-size: 26px; letter-spacing: -0.03em; }
  .mnav .btn { min-height: 56px; }
}
@keyframes lxSheet { from { opacity: 0; } }
@keyframes lxRise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .mnav.is-open, .mnav.is-open > * { animation: none; } }

/* ---------- reveals: rise, fade and come into focus ---------- */
.rv { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out), filter 900ms var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; filter: none; }
.no-js .rv { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; filter: none; transition: none; } }

/* ---------- home hero ---------- */
.lx-hero { border-bottom: 0; overflow: visible; }
.lx-hero .fx-glow, .lx-hero .fx-glow--b { display: none; }
.lx-hero__in { min-height: calc(100svh - var(--header-h) - 34px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 28px;
  padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(40px, 8vh, 88px); }
.lx-hero .h-xl { max-width: 12ch; }
.lx-hero .lead { max-width: 600px; margin: 0 auto; color: #c3c8bf; }
.lx-hero .btn-row { justify-content: center; }
.lx-hero .hero__meta { justify-content: center; }
.lx-hero .hero__meta span::before { border-radius: 50%; }
.fx-on .lx-up { opacity: 0; transform: translateY(16px); filter: blur(4px); transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out), filter 900ms var(--ease-out); }
.fx-on .fx-go .lx-up { opacity: 1; transform: none; filter: none; }
.fx-on .fx-go .lx-up:nth-child(1) { transition-delay: 0ms; }
.fx-on .fx-go .lead.lx-up { transition-delay: 520ms; }
.fx-on .fx-go .btn-row.lx-up { transition-delay: 620ms; }
.fx-on .fx-go .hero__meta.lx-up { transition-delay: 720ms; }
.fx-on .lx-hero .fxl__in { transition-timing-function: var(--ease-out); transition-duration: 1200ms; }
@media (min-width: 900px) {
  .lx-hero .h-xl { max-width: none; }
  .lx-hero .h-xl .fxl { display: inline-block; vertical-align: top; }
  .lx-hero .h-xl .fxl + .fxl { margin-left: 0.22em; }
  .lx-hero .h-xl { font-size: clamp(64px, 7.6vw, 132px); }
}

/* the workshop photo: a card that grows to full width as you scroll */
.lx-grow { position: relative; height: 190vh; margin-top: -10vh; }
.lx-grow__stick { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lx-grow__card { --g: 0; position: relative; width: 100%; height: 100%; overflow: hidden;
  clip-path: inset(calc((1 - var(--g)) * 22%) calc((1 - var(--g)) * 24%) calc((1 - var(--g)) * 22%) calc((1 - var(--g)) * 24%) round calc((1 - var(--g)) * 28px + 0px)); }
.lx-grow__card img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; transform: scale(calc(1.18 - var(--g) * 0.18)); will-change: transform; }
.lx-grow__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 5, 0.75)); opacity: var(--g); pointer-events: none; }
.lx-grow__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 max(var(--gutter), env(safe-area-inset-left)) clamp(28px, 5vh, 56px); opacity: calc(var(--g) * 1.6 - 0.6); }
.lx-grow__cap .eyebrow { color: #e9ece5; }
.no-js .lx-grow, .lx-static .lx-grow { height: auto; margin-top: 0; }
.no-js .lx-grow__stick, .lx-static .lx-grow__stick { position: relative; height: auto; padding: 0 clamp(8px, 1.2vw, 16px); }
.no-js .lx-grow__card, .lx-static .lx-grow__card { clip-path: none; aspect-ratio: 16 / 9; border-radius: var(--r-l); --g: 1; }
@media (max-width: 700px) {
  .lx-grow { height: 150vh; margin-top: 0; }
  .lx-grow__card { clip-path: inset(calc((1 - var(--g)) * 26%) calc((1 - var(--g)) * 6%) calc((1 - var(--g)) * 26%) calc((1 - var(--g)) * 6%) round calc((1 - var(--g)) * 22px)); }
  .lx-grow__card img { object-position: 66% 50%; }
}

/* ---------- brand strip ---------- */
.brands { border-bottom: 0; }
.brands__in { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.brands__name:has(.brands__logo) { opacity: 0.55; transition: opacity 300ms ease; }
@media (hover: hover) and (pointer: fine) { .brands__name:has(.brands__logo):hover { opacity: 1; } }

/* ---------- statement ---------- */
.lx-say { background: var(--accent); color: var(--accent-ink); border-radius: var(--r-l); margin: clamp(24px, 4vw, 56px) clamp(8px, 1.2vw, 16px) 0; }
.lx-say__in { padding-top: clamp(80px, 13vw, 180px); padding-bottom: clamp(80px, 13vw, 180px); display: grid; gap: clamp(20px, 3vw, 36px); }
.lx-say .eyebrow { color: rgba(8, 9, 8, 0.7); }
.lx-say__h { font-size: clamp(40px, 7vw, 116px); line-height: 0.95; letter-spacing: -0.055em; max-width: 15ch; }
.lx-say__lead { font-size: clamp(18px, 1.6vw, 22px); max-width: 520px; color: rgba(8, 9, 8, 0.78); }
.lx-w { opacity: 0.16; transition: opacity 280ms ease; }
.lx-w.is-lit { opacity: 1; }
.no-js .lx-w, .lx-static .lx-w { opacity: 1; }

/* ---------- teardown ---------- */
.td { height: 560vh; border-top: 0; }
.td__sticky { top: 0; height: 100svh; }
.lx-hide .td__sticky, .td__sticky { padding-top: 0; }
.td__copy { gap: 20px; }
.td__stage { min-height: 240px; }
.td__stage.is-swap > * { animation: lxSwap 620ms var(--ease-out) both; }
.td__stage.is-swap > :nth-child(2) { animation-delay: 50ms; }
.td__stage.is-swap > :nth-child(3) { animation-delay: 100ms; }
@keyframes lxSwap { from { opacity: 0; transform: translateY(12px); filter: blur(5px); } }
.td__bar { gap: 8px; }
.td__bar i { height: 3px; transition: background-color 400ms var(--ease-out); }
.td__body { color: #c9cec5; }
.m3 { height: min(calc(100svh - 120px), 760px); }
.m3__hud { top: 6%; }
@media (min-width: 901px) {
  /* the machine gets the whole stage; the words sit in a column on the right */
  .td__grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 34%); }
  .td__art { position: absolute; inset: 0; }
  .m3 { position: absolute; inset: 0; height: auto; }
  .m3__cv { -webkit-mask-image: radial-gradient(120% 90% at 38% 55%, #000 55%, transparent 100%); mask-image: radial-gradient(120% 90% at 38% 55%, #000 55%, transparent 100%); }
  .m3__hud { position: static; width: 100%; grid-template-columns: 1fr 1fr; column-gap: 28px; margin-top: clamp(12px, 3vh, 32px); }
  .m3__h, .m3__ex { grid-column: 1 / -1; }
  .td__copy { grid-column: 2; position: relative; z-index: 1; }
  .td__copy::before { content: ""; position: absolute; inset: -18% -30% -40% -24%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(8, 9, 8, 0.82), rgba(8, 9, 8, 0)); }
}
.m3__row { border-bottom-color: #222822; }
@media (max-width: 900px) {
  .td { height: 520vh; }
  .td__sticky { align-items: stretch; }
  .td__grid { grid-template-rows: auto 1fr; align-content: start; padding-top: calc(var(--header-h) + 4px); }
  .m3 { height: 46svh; min-height: 280px; }
  .td__stage { min-height: 0; }
  .td__copy { gap: 12px; align-self: start; }
  .td__copy .link-arrow { display: none; }
  .td__copy { position: static; }
  .m3__hud { right: var(--gutter); top: calc(var(--header-h) + 4% + 4px); }
  .td__tag { font-size: 12px; }
}
@media (max-width: 900px) and (max-height: 760px) {
  .m3 { height: 36svh; min-height: 220px; }
  .td__body { font-size: 15.5px; line-height: 1.5; }
  .td__stage .h-m { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .td__stage.is-swap > * { animation: none; } }

/* ---------- service list: big type rows ---------- */
.svc { display: block; border: 0; border-top: 1px solid var(--line-2); }
.svc__item { display: grid; grid-template-columns: 64px minmax(0, 1.25fr) minmax(0, 1fr) 40px; gap: 6px 28px; align-items: baseline; padding: clamp(26px, 3.2vw, 40px) 4px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  transition: background-color 300ms ease, padding 400ms var(--ease-out); }
.svc__n { grid-row: auto; padding-top: 0; font-size: 13px; }
.svc__t { font-size: clamp(26px, 3.4vw, 50px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; transition: color 250ms ease; }
.svc__s { grid-column: 3; grid-row: 1; align-self: center; }
.svc__d { grid-column: 3; grid-row: 2; margin-top: 0; max-width: 46ch; }
.svc__go { position: static; grid-column: 4; grid-row: 1; align-self: center; width: 26px; height: 26px; transition: color 250ms ease, transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .svc__item:hover { background: transparent; padding-left: 16px; }
  .svc__item:hover .svc__t { color: var(--accent); }
  .svc__item:hover .svc__go { transform: rotate(45deg); color: var(--accent); }
  .fx-on .svc__item:hover { background-image: none; }
}
.svc__item:active .svc__t { color: var(--accent); }
@media (max-width: 800px) {
  .svc__item { grid-template-columns: 36px minmax(0, 1fr) 24px; gap: 8px 14px; }
  .svc__s, .svc__d { grid-column: 2; grid-row: auto; }
  .svc__go { grid-column: 3; grid-row: 1; width: 20px; height: 20px; }
}
.sec--paper .svc { border-color: #d3d5cd; }
.sec--paper .svc__item { border-color: #d3d5cd; }

/* ---------- cards ---------- */
@media (hover: hover) and (pointer: fine) {
  .card--link:hover .ph img { transform: scale(1.04); }
  .fx-on .card--link:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); border-color: #2a302a; }
}
.card--link { transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out), border-color 300ms ease; }
.card--link:active { transform: scale(0.985); }

/* ---------- stats ---------- */
.stats { border-top: 0; gap: 12px; }
.stats > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px 24px; }
.stats b { font-size: clamp(44px, 5vw, 72px); letter-spacing: -0.05em; }

/* ---------- reel ---------- */
.reel { border-radius: var(--r-l); margin: 0 clamp(8px, 1.2vw, 16px); min-height: min(88svh, 860px); }

/* ---------- group bar ---------- */
.gbar__in { min-height: 34px; }

/* ---------- footer: the mark ---------- */
.ftr { background: #050605; border-top: 0; overflow: hidden; }
.ftr__mark { padding: clamp(40px, 6vw, 80px) clamp(8px, 1.2vw, 16px) 0; display: flex; justify-content: center; }
.ftr__mark img { width: min(100%, 1400px); height: auto; opacity: 0.1; transform: translateY(var(--lx-mk, 0px)); }

/* ---------- reduced transparency ---------- */
@media (prefers-reduced-transparency: reduce) {
  .hdr, .hdr.is-scrolled { background: #080908; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .mnav { background: #080908; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- break-ui fixes ---------- */
.lx-grow__card { background: radial-gradient(120% 90% at 60% 40%, #1a1e1a, #0b0c0b); }
.lx-grow__card img { color: transparent; }
.svc__go { align-self: start; margin-top: 0.4em; }
.quote figcaption { overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 12px; padding-bottom: 12px; max-width: 100%; }
}
