/* ==========================================================================
   Home page
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  background: var(--brand);
  overflow: clip;
}
.hero__swirl {
  position: absolute; inset: 0; z-index: 0;
  background: #000; opacity: 0.09; pointer-events: none;
  -webkit-mask: var(--swirl) top left / 264px repeat;
          mask: var(--swirl) top left / 264px repeat;
}
.hero__horses {
  position: absolute; left: 0; bottom: 24px; z-index: 1;
  width: 100%; height: 116px; overflow: clip;
  pointer-events: none;
}
.ticker { display: flex; gap: 23px; width: max-content; height: 100%; }
.ticker--right { animation: ticker-right 22.5s linear infinite; }
.ticker img { width: 146px; height: 116px; object-fit: cover; flex: none; }
@keyframes ticker-right {
  from { transform: translateX(calc(-50% - 11.5px)); }
  to   { transform: translateX(0); }
}

.hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 17px;
  padding: 48px 20px 180px;
}
.hero__l1, .hero__l2 {
  font: 900 35px/0.88 var(--f-display);
  text-transform: uppercase;
  color: #fff;
}
.hero__l2 { font-size: 49px; color: #332A2A; width: 100%; }
.hero__note {
  display: none;
  font: 400 28px/1 var(--f-hand);
  color: #fff; transform: rotate(6deg);
  pointer-events: none;
}
.hero__meta { font: 500 18px/1.3 var(--f-body); color: #fff; }
.hero__meta br.d { display: none; }
.hero__portrait { position: relative; width: 97.43%; height: 449px; }

@media (min-width: 1440px) {
  .hero { height: 1060px; }
  .hero__horses { top: 695px; bottom: auto; }
  .hero__inner {
    display: block; flex: none;
    width: 1440px; height: 1060px; padding: 0;
  }
  .hero__inner > * { position: absolute; }
  .hero__l1, .hero__l2 { left: 0; width: 1440px; font-size: 164px; text-align: center; z-index: 1; }
  .hero__l1 { top: 86px; }
  .hero__l2 { top: 284px; }
  .hero__note { display: block; top: 547px; left: 102px; z-index: 4; }
  .hero__meta { top: 866px; z-index: 4; }
  .hero__meta br.d { display: inline; }
  .hero__meta--l { left: 48px; }
  .hero__meta--r { right: 32px; text-align: right; }
  .hero__portrait { top: 283px; left: 96px; width: 1249px; height: 943px; z-index: 2; }
}


/* ---------- Thumbnail strip ---------- */

/* ---------- About (scroll-pinned, scroll-fill text) ---------- */
.about-pin { background: var(--brand); }
.about {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  background: var(--brand);
  overflow: clip;
}
.about__inner {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: 64px 20px;
}
.about__label {
  width: 100%; text-align: center;
  font: 600 17px/1.2 var(--f-body); letter-spacing: 0.12em;
  color: var(--ink);
}
.scroll-fill {
  width: 100%; margin: 0;
  font-family: var(--f-head); font-weight: 800;
  font-size: 34px; line-height: 1.04; letter-spacing: -0.066em;
  font-variation-settings: "opsz" 14; font-optical-sizing: none;
  text-align: center; text-wrap: balance;
}
.scroll-fill .w { display: inline-block; white-space: nowrap; }
.scroll-fill .c { display: inline-block; will-change: transform, color; transform-origin: 50% 60%; }

.sticker {
  display: none;
  padding: 14px 26px; border-radius: 999px;
  font: 600 22px/1.2 var(--f-body);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  transform: rotate(var(--r));
  transition: transform 0.35s var(--spring);
  white-space: nowrap;
}
.sticker:hover { transform: rotate(var(--r)) scale(1.06); }
.sticker--white { background: #fff; color: var(--ink); }
.sticker--ink { background: var(--ink); color: #fff; }
.sticker--outline { background: #fff; color: var(--ink); border: 1px solid var(--ink); }

@media (min-width: 1440px) {
  .about-pin { height: 1800px; }
  .about { position: sticky; top: 0; height: 900px; }
  .about__inner { display: block; width: 1440px; height: 900px; padding: 0; flex: none; }
  .about__inner > * { position: absolute; }
  .about__label { top: 90px; left: 0; width: 1440px; }
  .scroll-fill { top: 160px; left: 170px; width: 1100px; font-size: 76px; z-index: 1; }
  .sticker { display: block; z-index: 2; }
}

/* ---------- Selected work ---------- */
.work {
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  padding: 72px 20px;
  background: var(--paper);
  overflow: clip;
}
.work__header { width: 100%; display: flex; flex-direction: column; gap: 28px; }
.work__title-row { display: flex; flex-direction: column; gap: 16px; }
.work__title { font: 900 45px/0.9 var(--f-display); text-transform: uppercase; }
.work__intro { font: 500 18px/1.5 var(--f-body); color: rgba(10, 10, 10, 0.8); max-width: 330px; }

.case {
  width: 100%;
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 28px; overflow: clip;
}
.case__text {
  display: flex; flex-direction: column; gap: 24px;
  padding: 28px 24px;
}
.case__copy, .case__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.case__client { font: 400 11px/1.3 var(--f-mono); letter-spacing: 0.08em; color: var(--muted); }
.case__headline {
  font: 700 26px/1.14 var(--f-head); letter-spacing: -0.025em;
  text-wrap: balance;
}
.case__desc { font: 500 15px/1.5 var(--f-body); color: rgba(10, 10, 10, 0.72); text-wrap: pretty; }
.case__meta { font: 600 12px/1.3 var(--f-body); white-space: pre-wrap; }
.btn-dark {
  display: inline-flex; padding: 15px 28px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 600 16px/1.2 var(--f-body);
  transition: background-color 0.25s ease;
}
.btn-dark:hover { background: var(--orange); }
.case__media { display: flex; justify-content: flex-end; align-items: flex-end; padding: 0 16px 16px; }
.case__img {
  width: 100%; height: 210px; object-fit: cover;
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-top-left-radius: 20px;
}

@media (min-width: 1440px) {
  .work { padding: 96px 48px 120px; }
  .work__header { width: 1344px; }
  .work__title-row { flex-direction: row; justify-content: space-between; align-items: center; gap: 0; }
  .work__title { font-size: 118px; }
  .work__intro { width: 330px; }
  .case { width: 1344px; height: 500px; flex-direction: row; }
  .case__text {
    width: 584px; flex: none; justify-content: space-between; gap: 0;
    padding: 56px 58px 56px 56px;
  }
  .case__client { font-size: 12px; }
  .case__headline { font-size: 40px; }
  .case__desc { font-size: 17px; }
  .case__meta { font-size: 13px; }
  .case__media { width: 760px; height: 500px; flex: none; padding: 0; }
  .case__img { width: 760px; height: 452px; }
}

/* ---------- More work (table) ---------- */
.more {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 20px 72px;
  background: var(--brand); color: #fff;
  overflow: clip;
}
.more > * { width: 100%; }
.more__header { display: flex; flex-direction: column; gap: 12px; padding-bottom: 40px; }
.more__label { font: 600 15px/1.2 var(--f-body); letter-spacing: 0.12em; }
.more__title { font: 800 30px/1.2 var(--f-head); letter-spacing: -0.03em; }
.more__head { display: none; }
.row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: 16px 14px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.85);
  transition: background-color 0.25s ease;
}
.row:hover { background: rgba(10, 10, 10, 0.14); }
.row__name { width: 100%; font: 700 22px/1.2 var(--f-head); letter-spacing: -0.015em; }
.row__what, .row__role { width: 100%; font: 500 16px/1.3 var(--f-body); color: rgba(255, 255, 255, 0.8); }
.row__status { width: 100%; display: flex; }
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: #fff; border: 1px solid #fff;
  font: 600 12px/1.2 var(--f-body); color: rgb(148, 145, 143);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--dot); }
.status--live { --dot: #1A994D; }
.status--proto { --dot: #F80607; }
.row__arrow {
  width: 40px; height: 40px; flex: none; border-radius: 999px;
  display: grid; place-items: center;
  background: #fff; color: #0F0F0F;
}
.row__arrow .icon { width: 17px; height: 17px; }
.more__end { height: 40px; border-top: 1.5px solid rgba(255, 255, 255, 0.85); }
.btn-white {
  display: inline-flex; padding: 12px 22px; border-radius: 999px;
  background: #fff; color: var(--ink);
  font: 700 15px/1.2 var(--f-body);
}

@media (min-width: 1440px) {
  .more { padding: 40px 48px 96px; }
  .more > * { width: 1344px; }
  .more__title { font-size: 48px; }
  .more__head, .row { flex-direction: row; align-items: center; gap: 16px; }
  .more__head {
    display: flex; padding: 0 14px 12px;
    font: 600 12px/1.2 var(--f-body); letter-spacing: 0.1em; color: rgb(59, 59, 59);
  }
  .row__name, .more__head > :nth-child(1) { width: 356px; flex: none; }
  .row__what, .more__head > :nth-child(2) { width: 424px; flex: none; }
  .row__role, .more__head > :nth-child(3) { width: 234px; flex: none; }
  .row__status, .more__head > :nth-child(4) { flex: 1 1 0; width: auto; }
  .more__head > :nth-child(5) { width: 40px; flex: none; }
  .row__name { font-size: 26px; }
}

/* ---------- What I do ---------- */
.services {
  display: flex; flex-direction: column; align-items: center; gap: 90px;
  padding: 72px 20px;
  background: var(--paper);
  overflow: clip;
}
.services > * { width: 100%; }
.services__header { display: flex; flex-direction: column; gap: 4px; }
.services__label { font: 600 17px/1.2 var(--f-body); letter-spacing: 0.12em; }
.services__title { font: 800 35px/1 var(--f-head); letter-spacing: -0.03em; }
.services__grid { display: flex; flex-direction: column; gap: 60px 24px; }
.service {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding-top: 22px;
  border-top: 1.5px solid var(--ink);
}
.service__n { font: 600 15px/1.2 var(--f-body); color: var(--signal); }
.service__t { font: 900 41px/0.84 var(--f-display); text-transform: uppercase; }
.service__t br { display: none; }
.service__d { width: 100%; font: 500 17px/1.4 var(--f-body); color: rgba(10, 10, 10, 0.8); }

@media (min-width: 1440px) {
  .services { padding: 60px 24px 96px; }
  .services > * { width: 1392px; }
  .services__title { font-size: 64px; }
  .services__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .service__t { font-size: 108px; line-height: 0.94; }
  .service__t br { display: inline; }
  .service__d { width: 360px; }
}

/* ---------- Kind words ---------- */
.people {
  display: flex; flex-direction: column; align-items: center;
  background: var(--brand);
  overflow: clip;
}
.people__inner {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: 64px 20px;
}
.people__label { font: 600 17px/1.2 var(--f-body); letter-spacing: 0.12em; color: var(--sketch); }
.people__title {
  width: 100%; text-align: center;
  font: 900 51px/0.84 var(--f-display); text-transform: uppercase;
  color: var(--sketch);
}
.quote {
  width: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px 20px 36px;
  background: var(--sketch); border-radius: 32px;
  overflow: clip;
  transform: rotate(var(--r));
  transition: transform 0.4s var(--spring);
}
.quote:hover { transform: rotate(var(--r)) scale(1.03); }
.quote__mark { font: 800 46px/0.9 var(--f-head); color: var(--signal); }
.quote__text { font: 700 26px/1.18 var(--f-head); letter-spacing: -0.015em; color: var(--ink); }
.quote__author { display: flex; align-items: center; gap: 16px; }
.quote__avatar {
  width: 64px; height: 64px; flex: none; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--signal);
  font: 700 24px/1 var(--f-body);
}
.quote__name { font: 700 19px/1.2 var(--f-body); }
.quote__role { font: 500 15px/1.2 var(--f-body); color: rgba(10, 10, 10, 0.65); }

@media (min-width: 1440px) {
  .people { height: 1000px; }
  .people__inner { display: block; width: 1440px; height: 1000px; padding: 0; flex: none; }
  .people__inner > * { position: absolute; }
  .people__label { top: 96px; left: 24px; }
  .people__title { top: 70px; left: 0; width: 1440px; font-size: 170px; }
  .quote { width: 440px; height: 500px; padding: 28px 32px 36px; }
  .quote--1 { top: 420px; left: 28px; }
  .quote--2 { top: 450px; left: 496px; }
  .quote--3 { top: 420px; left: 964px; }
  .quote__mark { font-size: 120px; }
  .quote__text { font-size: 30px; }
  .quote__avatar { font-size: 28px; }
}
