/* ==========================================================================
   Assist — core styles
   Inter Tight throughout (as awwwards.com). Pages set --bg / --fg / --accent;
   the motion system morphs them as sections scroll past.
   ========================================================================== */
:root {
  --paper: #F8F8F8;
  --paper-2: #EDEDED;
  --ink: #222222;
  --night: #0E0E10;
  --brand: #E5007E;
  --brand-2: #D4001A;
  --grad: linear-gradient(100deg, #EC008C 0%, #FF2D55 55%, #D4001A 100%);

  --bg: var(--paper);
  --fg: var(--ink);
  --accent: var(--brand);
  --line: color-mix(in srgb, var(--fg) 13%, transparent);
  --soft: color-mix(in srgb, var(--fg) 6%, transparent);

  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 2.4vw, 36px);
  --r: 14px;
  --r-s: 8px;
  --header-h: 76px;
  --ease: cubic-bezier(.65, .05, 0, 1);
  --curtain: var(--night);
  --curtain-fg: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); color: var(--fg); }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font); font-size: 15px; line-height: 1.7; font-weight: 400;
  background: var(--bg); color: var(--fg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: 8px; background: #fff; color: #111; }
.skip:focus { top: 12px; }

/* ---------- Type ---------------------------------------------------------- */
.display {
  font-size: clamp(84px, 21vw, 440px); font-weight: 600; line-height: .8;
  letter-spacing: -.045em; text-transform: uppercase;
}
.h1 { font-size: clamp(52px, 9vw, 150px); font-weight: 600; line-height: .9; letter-spacing: -.04em; text-transform: uppercase; }
.h2 { font-size: clamp(34px, 4.4vw, 70px); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; }
.h3 { font-size: clamp(24px, 2.6vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; }
.h4 { font-size: clamp(19px, 1.5vw, 24px); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.body-xxl { font-size: clamp(26px, 3.3vw, 52px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
.body-xl { font-size: clamp(18px, 1.55vw, 24px); line-height: 1.45; letter-spacing: -.01em; }
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1; font-weight: 500; letter-spacing: 0; }
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.muted { opacity: .5; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 6px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #111; color: #fff; flex: none; }
.avatar .mark { width: 13px; height: 13px; }
.mark { overflow: visible; }

/* SplitText helpers. Text rises out of masks that clip; each mask is padded and pulled back
   by the same amount, so tight tracking, wide capitals and descenders are never cut off at
   display sizes while the layout stays exactly where it was. Chars sit inline. */
.line-mask { padding: .1em .12em .14em; margin: -.1em -.12em -.14em; }
/* A flex column stops neighbouring masks' negative margins collapsing, so line spacing is unchanged */
:has(> .line-mask) { display: flex; flex-direction: column; }
.char-mask { padding: 0 .1em; margin: 0 -.1em; }
.char { display: inline-block; will-change: transform; }

/* ---------- Layout -------------------------------------------------------- */
.wrap { padding-inline: var(--gutter); }
.sec { padding-block: clamp(110px, 13vw, 210px); }
.sec-head { display: grid; gap: 24px; justify-items: start; margin-bottom: clamp(48px, 6vw, 96px); max-width: 1100px; }
.sec-head--center { justify-items: center; text-align: center; margin-inline: auto; }
.frame { position: relative; overflow: hidden; border-radius: var(--r); background: var(--soft); isolation: isolate; }
.frame > img, .frame .zoom, .frame .zoom img { width: 100%; height: 100%; object-fit: cover; }
.frame [data-parallax] { position: absolute; inset: -10% 0; height: 120%; }
.zoom { overflow: hidden; height: 100%; }
.zoom img, .frame.zoom img { transition: transform 1.4s var(--ease); }
a:hover .zoom img, a.zoom:hover img { transform: scale(1.06); }

/* ---------- Buttons & links ---------------------------------------------- */
.btn {
  --bb: var(--fg); --bt: var(--bg);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 48px; padding: 0 20px; border-radius: var(--r-s);
  background: var(--bb); color: var(--bt);
  font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap;
  overflow: hidden; isolation: isolate; transition: color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--accent); transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { color: #fff; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 62px; padding: 0 30px; font-size: 17px; border-radius: 10px; }
.btn--ghost { --bb: transparent; --bt: var(--fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 24%, transparent); }
.btn--light { --bb: #fff; --bt: #111; }
.btn--light:hover { color: #111; }
.btn--light::before { background: var(--c, var(--accent)); }
.btn__arrow { position: relative; display: inline-block; width: 14px; height: 14px; overflow: hidden; flex: none; }
.btn__arrow svg { position: absolute; inset: 0; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform .6s var(--ease); }
.btn__arrow svg + svg { transform: translateX(-150%); }
:is(.btn, .link-arrow, .srow, a):hover > .btn__arrow svg:first-child,
:is(.btn, .link-arrow, .srow, a):hover .srow__go .btn__arrow svg:first-child { transform: translateX(150%); }
:is(.btn, .link-arrow, .srow, a):hover > .btn__arrow svg + svg,
:is(.btn, .link-arrow, .srow, a):hover .srow__go .btn__arrow svg + svg { transform: none; }

.link-u {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size .6s var(--ease);
}
.link-u:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Header -------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; gap: 18px; padding-inline: var(--gutter);
  color: var(--fg);
  transition: transform .8s var(--ease), background-color .5s, box-shadow .5s;
}
.header.is-glass {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-101%); }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand .mark { width: 17.3px; height: 21px; translate: 0 2px; color: var(--brand); }
.brand__word { font-size: 27px; font-weight: 700; letter-spacing: -.055em; line-height: 1; }
.brand__word i, .loader__word i, .footer__word i { font-style: normal; color: var(--brand); }
.crumb { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.crumb span { opacity: .35; }
.crumb i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header__status { display: inline-flex; align-items: center; gap: 9px; margin-right: 12px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.header__status i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }

/* ---------- Dock (bottom navigation, after the awwwards dock) ------------- */
.dock {
  position: fixed; left: 50%; bottom: 18px; z-index: 60; translate: -50% 0;
  color: #fff; font-size: 14px;
}
.dock__bar {
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 14px;
  background: rgba(14, 14, 16, .74);
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.09);
}
.dock__home { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: #000; transition: background .4s; }
.dock__home .mark { width: 22px; height: 22px; }
.dock__home:hover { background: var(--brand); }
.dock__link {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px; border-radius: 8px;
  color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); white-space: nowrap;
  transition: background .35s, color .35s, box-shadow .35s;
}
.dock__link:hover, .dock__toggle[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.14); }
.dock__link.is-active { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.dock__plus { position: relative; width: 9px; height: 9px; transition: rotate .5s var(--ease); }
.dock__plus::before, .dock__plus::after { content: ""; position: absolute; left: 0; top: 4px; width: 9px; height: 1.5px; background: currentColor; }
.dock__plus::after { rotate: 90deg; }
.dock__toggle[aria-expanded="true"] .dock__plus { rotate: 45deg; }
.dock__cta {
  display: inline-flex; align-items: center; height: 48px; padding: 0 20px; margin-left: 4px; border-radius: 10px;
  background: #F2F2F2; color: #111; font-weight: 600; white-space: nowrap; transition: background .35s, color .35s;
}
.dock__cta:hover, .dock__cta.is-active { background: var(--brand); color: #fff; }
.dock__panel {
  position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 0;
  width: min(900px, calc(100vw - 24px)); border-radius: 14px;
  background: rgba(14, 14, 16, .86);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.09);
  visibility: hidden; opacity: 0; clip-path: inset(100% 0 0 0 round 14px);
}
.dock__cols { display: grid; grid-template-columns: .85fr 1.25fr 2.3fr; gap: 10px 18px; padding: 18px; }
.dock__head { display: block; padding: 4px 10px 10px; font-size: 12px; color: rgba(255,255,255,.45); }
.dock__links { display: grid; gap: 2px; }
.dock__col--create .dock__links { grid-template-columns: 1fr 1fr; }
.dock__links a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  color: rgba(255,255,255,.82); transition: background .3s, color .3s;
}
.dock__links a i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; transition: scale .4s var(--ease); }
.dock__links a em { margin-left: auto; font-style: normal; font-size: 12px; color: rgba(255,255,255,.35); }
.dock__links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.dock__links a:hover i { scale: 1.6; }

.totop {
  position: fixed; left: 18px; bottom: 18px; z-index: 55; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 10px; background: rgba(14,14,16,.78); color: #fff;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; translate: 0 12px; transition: opacity .5s, translate .6s var(--ease), visibility .5s, background .3s;
}
.totop.is-on { opacity: 1; visibility: visible; translate: 0 0; }
.totop:hover { background: var(--brand); }
.totop svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* Mini-site section nav (service pages) */
.subnav {
  position: fixed; top: 16px; left: 50%; z-index: 49; translate: -50% 0;
  display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--fg);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -20px rgba(0,0,0,.35);
  font-size: 13px; white-space: nowrap;
  opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s, top .8s var(--ease);
}
.subnav.is-on { opacity: 1; visibility: visible; }
.header:not(.is-hidden) ~ .subnav { top: calc(var(--header-h) + 6px); }
.subnav__name { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 10px; font-weight: 600; }
.subnav__name i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.subnav a { padding: 8px 12px; border-radius: 8px; opacity: .65; transition: opacity .3s, background .3s; }
.subnav a:hover, .subnav a.is-active { opacity: 1; background: var(--soft); }
.subnav .subnav__go { opacity: 1; background: var(--accent); color: var(--on, #fff); font-weight: 600; margin-left: 4px; }

/* ---------- Curtain & loader --------------------------------------------- */
.curtain {
  position: fixed; inset: 0; z-index: 100; display: none; place-content: center; justify-items: center; gap: 22px;
  background: var(--curtain); color: var(--curtain-fg);
}
.js .curtain { display: grid; }
.js.is-loading .curtain { display: none; }
.curtain .mark { width: 62px; height: 62px; }
.curtain__name { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }

.loader { position: fixed; inset: 0; z-index: 110; display: none; background: var(--night); color: #fff; }
.is-loading .loader { display: grid; }
.loader__center { place-self: center; display: grid; justify-items: center; gap: 26px; }
.loader .mark { width: 86px; height: 86px; color: #fff; }
.loader__word { font-size: clamp(44px, 6.4vw, 92px); font-weight: 700; letter-spacing: -.06em; line-height: 1; overflow: hidden; padding-bottom: .05em; }
.loader__meta { position: absolute; inset: auto var(--gutter) 26px; display: flex; justify-content: space-between; gap: 20px; font-size: 14px; color: rgba(255,255,255,.7); }
.loader__count { font-variant-numeric: tabular-nums; color: #fff; }

/* ---------- Cursor -------------------------------------------------------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; }
.cursor__pill {
  padding: 11px 16px; border-radius: 999px; background: #fff; color: #111;
  font-size: 13px; font-weight: 600; white-space: nowrap; scale: 0;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

/* ---------- Work cards (after the awwwards site cards) ------------------- */
.wgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(16px, 2vw, 28px); }
.wcard { display: grid; gap: 14px; align-content: start; }
.wcard__frame { aspect-ratio: 16 / 10; display: block; }
.wcard__frame img { width: 100%; height: 100%; object-fit: cover; }
.wcard__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.9); color: #111; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.wcard__badge i { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; animation: ping 2.2s infinite; }
.wcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wcard__title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.wcard__by { font-size: 13px; font-weight: 400; opacity: .5; }
.wcard__author { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.wcard__author .avatar { width: 22px; height: 22px; }
.wcard__author .avatar .mark { width: 11px; height: 11px; }
.wcard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--soft); }
.wcard__line { margin-top: -6px; font-size: 15px; opacity: .62; }

/* ---------- Scroll cue ---------------------------------------------------- */
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { position: relative; width: 1px; height: 28px; background: color-mix(in srgb, currentColor 25%, transparent); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: currentColor; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Marquee ------------------------------------------------------- */
.marquee { overflow: hidden; padding-block: clamp(30px, 4.5vw, 64px); border-top: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item {
  display: inline-flex; align-items: center; gap: .32em; padding-right: .32em;
  font-size: clamp(52px, 8.5vw, 140px); font-weight: 600; letter-spacing: -.045em; line-height: 1;
  text-transform: uppercase; white-space: nowrap;
}
.marquee__item .mark { width: .48em; height: .48em; color: var(--c); }

/* ---------- Footer -------------------------------------------------------- */
.footer { position: relative; background: var(--night); color: #fff; --fg: #fff; --bg: var(--night); --line: rgba(255,255,255,.13); --soft: rgba(255,255,255,.07); }
.fcta { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: end center; text-align: center; overflow: hidden; }
.fcta__media { position: absolute; inset: 0; }
.fcta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.fcta__night { opacity: 0; }
.fcta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,8,10,.92) 0%, rgba(8,8,10,.6) 32%, rgba(8,8,10,0) 58%); }
.fcta__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; padding: 140px var(--gutter) 120px; --accent: #FF3D8B; }
.fcta__title { font-size: clamp(76px, 15.5vw, 300px); font-weight: 600; line-height: .82; letter-spacing: -.05em; text-transform: uppercase; }
.fcta__sub { max-width: 34ch; opacity: .82; }
.fcta__actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 26px; margin-top: 8px; font-weight: 500; }
.fcta__link { display: block; }
.chat-icon { width: 18px; height: 18px; flex: none; }
.footer__main { padding-top: clamp(80px, 9vw, 130px); padding-bottom: 104px; }
.footer__cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px 28px; }
.footer__intro { display: grid; gap: 18px; align-content: start; max-width: 300px; }
.footer__intro p { font-size: 14px; opacity: .6; }
.footer__cols > div > a:not(.brand) { display: block; width: fit-content; font-size: 15px; line-height: 2.05; opacity: .72; transition: opacity .3s; }
.footer__cols > div > a:not(.brand):hover { opacity: 1; }
.footer__head { display: block; margin-bottom: 12px; font-size: 13px; color: rgba(255,255,255,.42); }
.footer__word {
  margin: calc(clamp(60px, 8vw, 120px) - .1em) 0 30px -.035em; overflow: hidden;
  font-size: clamp(110px, 33vw, 640px); font-weight: 700; letter-spacing: -.075em; line-height: .78;
  white-space: nowrap; padding: .1em 0 .04em; /* room for the i's dot at full size */
}
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: rgba(255,255,255,.55); }

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 1080px) {
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__intro { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .header__status, .header .btn--ghost { display: none; }
  .wgrid { grid-template-columns: 1fr; }
  .dock__cols { grid-template-columns: 1fr 1fr; }
  .dock__col--create { grid-column: 1 / -1; }
  .subnav a:not(.subnav__go) { display: none; }
}
@media (max-width: 560px) {
  .dock { bottom: 12px; }
  .dock__link[data-hide-sm] { display: none; }
  .dock__link { padding: 0 12px; }
  .dock__cta { padding: 0 14px; }
  .totop { display: none; }
  .header .btn--sm { height: 36px; padding: 0 12px; font-size: 13px; }
  .crumb { display: none; }
  .loader__meta .loader__tag { display: none; }
  .dock__cols { grid-template-columns: 1fr; max-height: 62vh; overflow: auto; }
  .dock__col--create .dock__links { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cursor { display: none; }
}
