/* Waystar Royco — site layer on top of tokens.css + components.css (design system). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 24px; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--surface); padding: 8px 16px; z-index: 200; }
.skip:focus { left: 8px; }

:root { --pad: var(--space-4); --ph: #4a4a4a; --ph-ink: #d0d0d0; --header-h: 72px; }
@media (min-width: 861px) { :root { --pad: var(--space-12); } }
.wrap { padding-inline: var(--pad); max-width: 1680px; margin-inline: auto; }
.section { padding-block: var(--space-16); }
@media (min-width: 861px) { .section { padding-block: var(--space-24); } }
.grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(4, 1fr); }
@media (min-width: 861px) { .grid { grid-template-columns: repeat(12, 1fr); gap: var(--space-12); } }

/* type scale, fluid */
.display-xl { font-size: clamp(48px, 11vw, 168px); }
.display-l { font-size: clamp(40px, 8vw, 112px); }
.headline { font-size: clamp(32px, 4.6vw, 64px); }
.title { font-size: clamp(22px, 2.2vw, 28px); }
.muted { color: var(--ink-muted); }
.accent { color: var(--accent); }
.urdu { font-family: var(--font-urdu); direction: rtl; line-height: 2; }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 40ch; }

/* ---------- placeholders (grey, replaced later) ---------- */
.ph { position: relative; background: var(--ph); color: var(--ph-ink); overflow: hidden; display: flex; align-items: flex-end; }
.ph::after { content: attr(data-ph); position: absolute; left: 16px; bottom: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ph > img, .ph > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-16x9 { aspect-ratio: 16/9; } .ph-4x3 { aspect-ratio: 4/3; } .ph-3x4 { aspect-ratio: 3/4; } .ph-1x1 { aspect-ratio: 1; } .ph-21x9 { aspect-ratio: 21/9; }
.ph-inner { position: absolute; inset: 0; background: var(--ph); will-change: transform; }

/* ---------- header ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); transition: background .4s ease, border-color .4s ease; border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(0,0,0,.82); backdrop-filter: blur(10px); border-color: var(--hairline); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.nav__logo img { height: 32px; width: auto; }
.nav__links { display: none; gap: var(--space-8); align-items: center; }
.nav__links a { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.nav__links a[aria-current="page"] { color: var(--ink-muted); }
.nav__cta { display: none; }
.menu-btn { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--hairline-strong); border-radius: var(--radius-pill); }
@media (min-width: 861px) { .nav__links, .nav__cta { display: flex; } .menu-btn { display: none; } }

/* roll-text: two stacked copies, top one slides out on hover */
.roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.25; height: 1.25em; }
.roll__in { display: block; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.roll__in > span { display: block; height: 1.25em; }
a:hover .roll__in, button:hover .roll__in, a:focus-visible .roll__in { transform: translateY(-50%); }

/* menu overlay */
.menu { position: fixed; inset: 0; z-index: 150; background: var(--surface); visibility: hidden; clip-path: inset(0 0 100% 0); display: flex; flex-direction: column; justify-content: space-between; padding: var(--space-6) var(--pad) var(--space-8); }
.menu.is-open { visibility: visible; }
.menu__top { display: flex; justify-content: space-between; align-items: center; height: 48px; }
.menu__list a { display: flex; align-items: baseline; gap: var(--space-4); font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 11vw, 96px); line-height: 1.05; letter-spacing: -.03em; padding-block: 6px; border-bottom: 1px solid var(--hairline); }
.menu__list a small { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-muted); font-weight: 500; }
.menu__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); font-size: 14px; color: var(--ink-muted); }

/* ---------- buttons / links extras ---------- */
.wr-btn { transition: background .3s ease, color .3s ease; position: relative; }
.wr-btn--primary:hover { background: #fff; color: #000; }
.wr-btn--secondary:hover { background: var(--ink); color: var(--surface); }
.link-u { position: relative; display: inline-block; padding-bottom: 4px; }
.link-u::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform-origin: right; transition: transform .4s ease; }
.link-u:hover::after { animation: ul .6s ease; }
@keyframes ul { 0% { transform: scaleX(1); transform-origin: right; } 49% { transform: scaleX(0); transform-origin: right; } 50% { transform: scaleX(0); transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--header-h) + var(--space-12)); padding-bottom: var(--space-12); min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-12); }
.hero__meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); }
.hero__list { display: flex; flex-wrap: wrap; gap: 8px var(--space-8); }
.hero__title { max-width: 14ch; }
.hero__foot { display: grid; gap: var(--space-6); align-items: end; }
@media (min-width: 861px) { .hero__foot { grid-template-columns: 1fr 1fr auto; } }
.scroll-cue { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.scroll-cue i { width: 1px; height: 40px; background: var(--hairline-strong); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
.hero-media { margin-top: var(--space-8); }

/* page header (inner pages) */
.phead { padding-top: calc(var(--header-h) + var(--space-16)); padding-bottom: var(--space-12); }
.phead .display-l { max-width: 16ch; margin-top: var(--space-8); }
.phead .lede { margin-top: var(--space-8); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--hairline); padding-block: var(--space-4); }
.marquee__track { display: flex; width: max-content; gap: var(--space-8); will-change: transform; }
.marquee__track span { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 56px); letter-spacing: -.02em; white-space: nowrap; display: flex; align-items: center; gap: var(--space-8); }
.marquee__track span::after { content: ""; width: 12px; height: 12px; background: var(--ink); }

/* ---------- services list ---------- */
.svc { border-top: 1px solid var(--hairline); }
.svc__item { border-bottom: 1px solid var(--hairline); }
.svc__head { width: 100%; display: grid; grid-template-columns: 48px 1fr 24px; gap: var(--space-4); align-items: center; padding-block: var(--space-6); text-align: left; transition: padding .3s ease; }
.svc__head:hover { padding-left: var(--space-3); }
.svc__idx { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-muted); }
.svc__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.6vw, 48px); letter-spacing: -.025em; line-height: 1.05; }
.plus { width: 20px; height: 20px; position: relative; transition: transform .4s ease; }
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; left: 0; top: 50%; width: 100%; height: 1.5px; }
.plus::after { transform: rotate(90deg); }
.svc__item.is-open .plus { transform: rotate(45deg); }
.svc__body { height: 0; overflow: hidden; }
.svc__inner { display: grid; gap: var(--space-6); padding: 0 0 var(--space-8) 64px; }
@media (min-width: 861px) { .svc__inner { grid-template-columns: 1fr 1fr; padding-left: calc(48px + var(--space-4)); } }
.svc__inner p { color: var(--ink-muted); max-width: 52ch; font-size: 17px; line-height: 1.55; }
.svc__inner ul { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }

/* ---------- work cards ---------- */
.works { display: grid; gap: var(--space-12) var(--space-8); }
@media (min-width: 861px) { .works { grid-template-columns: 1fr 1fr; } .works .w--wide { grid-column: span 2; } }
.w { display: block; }
.w__media { overflow: hidden; }
.w__media .ph-inner { transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.w:hover .ph-inner { transform: scale(1.04); }
.w__row { display: flex; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-4); }
.w__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -.02em; line-height: 1.1; }
.w__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); text-align: right; flex: none; }
.w .wr-row { margin-top: var(--space-3); gap: 8px; }
.cursor-lbl { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--ink); color: var(--surface); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: scale(.4); }
@media (hover: none) { .cursor-lbl { display: none; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-12); }
.filters button { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--hairline-strong); border-radius: var(--radius-pill); transition: background .3s, color .3s; }
.filters button[aria-pressed="true"], .filters button:hover { background: var(--ink); color: var(--surface); }

/* ---------- two-col split ---------- */
.split { display: grid; gap: var(--space-8); }
@media (min-width: 861px) { .split { grid-template-columns: 4fr 8fr; gap: var(--space-12); } }
.points { display: grid; gap: var(--space-8); margin-top: var(--space-12); }
@media (min-width: 861px) { .points { grid-template-columns: repeat(3, 1fr); } }
.point { border-top: 1px solid var(--hairline); padding-top: var(--space-4); display: grid; gap: var(--space-3); }
.point h3 { font-family: var(--font-display); font-weight: 500; font-size: 28px; letter-spacing: -.015em; line-height: 1.15; }
.point p { color: var(--ink-muted); }
.stats { display: grid; gap: var(--space-8); margin-top: var(--space-12); grid-template-columns: 1fr 1fr; }
@media (min-width: 861px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.wr-stat { max-width: none; }
.wr-stat__num { font-size: clamp(44px, 6vw, 80px); }

/* ---------- testimonials ---------- */
.quotes { position: relative; min-height: 340px; }
.quote { position: absolute; inset: 0 auto auto 0; opacity: 0; visibility: hidden; display: grid; gap: var(--space-6); max-width: 28em; }
.quote:first-child { position: relative; }
.quote.is-active { opacity: 1; visibility: visible; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 40px); line-height: 1.2; letter-spacing: -.02em; }
.quote cite { font-style: normal; font-size: 14px; color: var(--ink-muted); }
.quotes-nav { display: flex; gap: 8px; margin-top: var(--space-8); }
.quotes-nav button { width: 32px; height: 4px; background: var(--hairline-strong); transition: background .3s; }
.quotes-nav button[aria-current="true"] { background: var(--ink); }

/* ---------- journal ---------- */
.posts { display: grid; gap: var(--space-8); }
@media (min-width: 861px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { display: grid; gap: var(--space-4); align-content: start; }
.post__t { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -.015em; }

/* ---------- CTA / footer ---------- */
.cta { border-top: 1px solid var(--hairline); }
.cta__t { margin-block: var(--space-8) var(--space-12); max-width: 12ch; }
.footer { border-top: 1px solid var(--hairline); padding-block: var(--space-12) var(--space-6); overflow: hidden; }
.footer__cols { display: grid; gap: var(--space-8); grid-template-columns: 1fr 1fr; }
@media (min-width: 861px) { .footer__cols { grid-template-columns: 5fr 2fr 2fr 3fr; } }
.footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; margin-bottom: var(--space-4); }
.footer li { padding-block: 4px; }
.footer__big { margin-top: var(--space-16); font-family: var(--font-display); font-weight: 600; letter-spacing: -.05em; line-height: .85; font-size: clamp(56px, 15.5vw, 280px); white-space: nowrap; }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--hairline); font-size: 13px; color: var(--ink-muted); }

/* ---------- contact form ---------- */
.form { display: grid; gap: var(--space-6); }
@media (min-width: 861px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--hairline-strong); padding: 12px 0; border-radius: 0; }
.field select option { background: #000; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); }
.form-note { font-size: 13px; color: var(--ink-muted); }

/* ---------- prose / blog ---------- */
.prose { max-width: 62ch; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 32px; letter-spacing: -.02em; margin: var(--space-12) 0 var(--space-4); }
.prose p { margin-bottom: var(--space-4); font-size: 18px; line-height: 1.65; color: #d9d9d9; }

/* accent budget helper */
.bar { display: block; width: 96px; height: 8px; background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.wr-arrow svg { stroke: currentColor; }
.wr-btn--primary svg { stroke: currentColor; }
