/* Last Studio — replica */

@font-face {
  font-family: "Aspekta";
  src: url("assets/fonts/MQthzhqtkV99jFAFdccXwW1PRf0.woff2") format("woff2-variations");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hedvig Letters Serif";
  src: url("assets/fonts/hedvig-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --pad: 80px;
  --maxw: 1800px;
  --yellow: #ffd500;
  --ink: #000;
  --grey: #828282;
  --rule: rgba(0, 0, 0, 0.08);
  --rule-inv: rgba(255, 255, 255, 0.2);
  --pill: #333333;
  --pill-num: #cccccc;
  --card-bg: #f0ece9;
  --lead: rgb(235, 235, 235);
  --nav-h: 76px;
  --radius: 20px;
  --sans: "Aspekta", "Helvetica Neue", Arial, sans-serif;
  --serif: "Hedvig Letters Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- shared type ---------- */

.kicker,
.sec-head h2,
.meta h3,
.num,
.svc h3,
.cta h2,
.foot-col h2 {
  font-variation-settings: "wght" 900;
  text-transform: uppercase;
}

.kicker, .meta h3 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.sec-head h2 { font-size: 64px; line-height: 1.05; letter-spacing: -0.025em; }
.num { font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; color: var(--grey); }
.lead { font-size: 30px; line-height: 1.25; letter-spacing: -0.01em; font-variation-settings: "wght" 400; }
.indent { white-space: pre-wrap; }

.u-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.3;
  font-variation-settings: "wght" 600;
  padding-bottom: 7px;
  white-space: nowrap;
}
.u-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.u-link:hover::after { transform: scaleX(0.35); }
.u-link .ico { transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1); }
.u-link:hover .ico { transform: translateX(4px); }
.u-link-invert { color: #fff; }

.ico { width: 14px; height: 14px; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-variation-settings: "wght" 600;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--yellow); color: #000; }
.btn-primary:hover { background: #000; color: var(--yellow); }
.btn-primary:hover .ico { transform: translateX(3px); }
.btn .ico { transition: transform 0.25s ease; }
.btn-nav { height: 32px; padding: 0 13px 0 14px; font-size: 14px; }
.cta .btn { height: 56px; padding: 0 24px; font-size: 16px; }

.rule { height: 1px; background: var(--rule); }
.rule-invert { background: var(--rule-inv); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  background: #fff;
  transition: box-shadow 0.3s ease;
}
.nav.is-stuck { box-shadow: 0 1px 0 var(--rule); }
.nav-inner {
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-logo { font-size: 14px; font-variation-settings: "wght" 600; letter-spacing: -0.005em; justify-self: start; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 0; }
.nav-links a {
  display: inline-block;
  padding: 7px 14px;
  font-size: 14px;
  font-variation-settings: "wght" 600;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav .btn-nav { justify-self: end; }
.burger { display: none; }

/* ---------- promo ---------- */

.promo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: var(--nav-h);
  padding: 8px 32px;
  background: #000;
  color: #fff;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-variation-settings: "wght" 400;
}
.promo strong { font-variation-settings: "wght" 700; font-weight: 700; }

/* ---------- hero ---------- */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 128px var(--pad) 176px;
}
.hero-head { position: relative; }

.wm { container-type: inline-size; width: 100%; }
.wm h1, .wm a {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15.3643cqw;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: #000;
}

.hero-dashes {
  position: absolute;
  top: -67px;
  right: -67px;
  width: 105px;
  height: 78px;
  transform: rotate(-13deg);
  color: var(--yellow);
  pointer-events: none;
  overflow: visible;
}
.hero-dashes .dash {
  fill: none;
  stroke: currentColor;
  stroke-width: 13;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}
.hero-dashes .dash-1 { stroke-dasharray: 51.984 51.984; stroke-dashoffset: 51.984; animation: draw-1 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards; }
.hero-dashes .dash-2 { stroke-dasharray: 105.84 105.84; stroke-dashoffset: 105.84; animation: draw-2 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.35s forwards; }
@keyframes draw-1 { to { stroke-dashoffset: 0; } }
@keyframes draw-2 { to { stroke-dashoffset: 0; } }

.hero-squiggle {
  position: absolute;
  left: 50%;
  top: calc(100% + 11px);
  transform: translateX(-50%);
  width: 440px;
  height: 47px;
  color: var(--yellow);
  overflow: visible;
}
.hero-squiggle path {
  stroke-dasharray: 648.547 648.547;
  stroke-dashoffset: 648.547;
  animation: draw 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.35s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-media {
  padding: 0 16px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-media video {
  width: 100%;
  aspect-ratio: 1.77778;
  object-fit: cover;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.08);
}

/* ---------- about ---------- */

.about {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 128px var(--pad);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.about-body { display: flex; flex-direction: column; gap: 32px; }
.about-body .lead { max-width: 740px; }
.insights .lead { max-width: 720px; }
.link-row { display: flex; flex-wrap: wrap; gap: 16px 32px; }

/* ---------- logos ticker ---------- */

.logos { overflow: hidden; padding: 0; }
.ticker { display: flex; width: 100%; }
.ticker-track {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
  flex: none;
  animation: marquee 28s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.lg { height: 24px; width: auto; fill: #000; flex: none; }
.lg-irene { width: 112px; height: 24px; }
.lg-slice { width: 108px; height: 30px; }
.lg-noa { width: 75px; height: 28px; }
.lg-someday { width: 127px; height: 21px; }
.lg-compose { width: 114px; height: 29px; }
.lg-accent { width: 106px; height: 24px; }

/* ---------- sections ---------- */

.work, .insights {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 128px var(--pad);
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.sec-top { display: flex; flex-direction: column; gap: 32px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 160px 0;
  align-items: start;
}
.card { display: block; }
.card.is-sm { width: 66.6667%; }
.card.align-right { margin-left: auto; }
.card.is-wide { grid-column: 1 / -1; }
.media {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
}
.media img {
  width: 100%;
  aspect-ratio: 1.331;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}
.card:hover .media img { transform: scale(1.04); }
.meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
}
.meta h3 { flex: 1 1 auto; }
.meta .num { flex: none; }
.meta.stack { flex-direction: column; align-items: flex-start; gap: 16px; }
.meta.stack .u-link { font-size: 16px; letter-spacing: -0.01em; padding-bottom: 5px; }

/* ---------- services ---------- */

.services {
  background: #000;
  color: #fff;
  padding: 128px var(--pad);
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.services .sec-head h2 { color: #fff; }
.services .lead { color: var(--lead); max-width: 680px; }

.svc-list { display: flex; flex-direction: column; }
.svc {
  display: grid;
  grid-template-columns: 16% 1fr;
  gap: 16px 24px;
  align-items: start;
  padding: 64px 0;
  border-top: 1px solid var(--rule-inv);
  transition: background-color 0.4s ease;
}
.svc:last-child { border-bottom: 1px solid var(--rule-inv); }
.svc .num { color: var(--pill-num); }
.svc-main { display: flex; flex-direction: column; gap: 22px; }
.svc h3 {
  font-size: 80px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #fff;
  transition: color 0.35s ease, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.svc:hover h3 { color: var(--yellow); transform: translateX(10px); }
.tags { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.tags li {
  padding: 8px 12px;
  background: var(--pill);
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  font-variation-settings: "wght" 600;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  transition: background-color 0.35s ease;
}
.svc:hover .tags li { background: #1f1f1f; }

/* ---------- cta ---------- */

.cta {
  padding: 96px var(--pad);
  background: linear-gradient(121deg, #ffd748 0%, #fffae0 33.51%);
  background: linear-gradient(121deg, color(display-p3 1 0.841462 0.283332) 0%, rgb(255, 250, 224) 33.5075%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.cta h2 {
  max-width: 790px;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.cta h2 span { color: rgba(0, 0, 0, 0.5); }

/* ---------- footer ---------- */

.footer { padding: 128px var(--pad); }
.foot-inner {
  max-width: 1640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.foot-col { display: flex; flex-direction: column; }
.foot-col h2 { font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 35px; }
.foot-col a {
  font-size: 14px;
  line-height: 1.3;
  font-variation-settings: "wght" 600;
  margin-bottom: 24px;
  width: fit-content;
  transition: opacity 0.25s ease;
}
.foot-col a:hover { opacity: 0.5; }
.foot-col a:last-of-type { margin-bottom: 0; }
.copy {
  display: block;
  margin-top: 43px;
  font-size: 14px;
  line-height: 1.3;
  color: #757575;
  font-variation-settings: "wght" 600;
}
.foot-wm { padding: 35px 0; }
.foot-wm a { transition: opacity 0.3s ease; }
.foot-wm a:hover { opacity: 0.55; }

/* ---------- mobile menu ---------- */

.menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 55;
  background: #fff;
  padding: 8px var(--pad) 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.5s;
}
.menu.is-open { transform: translateY(0); visibility: visible; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  padding: 14px 0;
  font-size: 24px;
  font-variation-settings: "wght" 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--rule);
}
.menu .btn { height: 48px; padding: 0 20px; font-size: 16px; }

/* ---------- responsive: tablet ---------- */

@media (max-width: 1100px) {
  :root { --pad: 40px; --nav-h: 60px; }
  .hero { padding: 80px var(--pad) 120px; }
  .hero-squiggle { width: 262px; height: 28px; top: calc(100% + 23px); }
  .hero-dashes { width: 47px; height: 34px; top: -28px; right: -20px; }
  .promo { padding: 10px 32px; }
  .about, .work, .insights, .services, .footer { padding: 64px var(--pad); }
  .work, .insights, .services { gap: 40px; }
  .grid { gap: 80px 0; }
  .kicker, .meta h3 { font-size: 20px; }
  .num { font-size: 18px; }
  .sec-head h2, .cta h2 { font-size: 36px; }
  .lead { font-size: 24px; }
  .svc { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .svc h3 { font-size: 40px; }
  .card.is-sm, .card.align-right { width: 100%; margin-left: 0; }
  .meta { padding-top: 16px; gap: 4px; flex-direction: column; align-items: flex-start; }
  .cta { padding: 64px var(--pad); gap: 24px; }
  .foot-inner { gap: 40px; }
  .foot-cols { grid-template-columns: 1fr; gap: 56px; }
  .foot-col h2 { font-size: 18px; margin-bottom: 24px; }
}

/* ---------- responsive: phone ---------- */

@media (max-width: 860px) {
  .nav-links, .nav > .nav-inner > .btn-nav { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    justify-self: end;
  }
  .burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.25s ease;
  }
  .burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .hero-media video { border-radius: 16px; }
  .two-col { grid-template-columns: 1fr; }
  .about-body .lead { max-width: none; }
  .grid { grid-template-columns: 1fr; gap: 32px; }
  .ticker-track { gap: 40px; padding-right: 40px; animation-duration: 22s; }
  .lg { transform: scale(0.85); transform-origin: left center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .hero-squiggle path { animation: none; stroke-dashoffset: 0; }
  .media img, .u-link, .btn, .svc h3 { transition: none; }
}
