:root {
  --ink: #111111;
  --grey: #8a8984;
  --bg: #ffffff;
  --ph: #ebebe7;
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); }

body {
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--grey); }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding: 32px 48px 48px;
}

/* top bar */
.bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--grey);
}
.bar a { color: var(--grey); }
.bar a:hover { color: var(--ink); }

/* headline + phone */
.top {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: stretch;
  justify-content: space-between;
  margin-top: -48px;
}
.top h1 {
  flex: 1 1 480px;
  margin: 0;
  font-weight: 500;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* phone scales with the window: height is capped by the viewport, width follows at 1:2 */
.phone {
  --ph-h: min(720px, calc(100vh - 200px), 180vw);
  --ph-pad: calc(var(--ph-h) * 0.02);
  --ph-r: calc(var(--ph-h) * 0.055);
  position: relative;
  flex: 0 0 auto;
  height: var(--ph-h);
  width: calc(var(--ph-h) / 2);
  border: 1px solid var(--ink);
  border-radius: var(--ph-r);
  padding: var(--ph-pad);
  overflow: hidden;
  font-size: calc(var(--ph-h) / 51);
}
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  left: var(--ph-pad); right: var(--ph-pad);
  height: 12%;
  pointer-events: none;
  z-index: 2;
}
.phone::before {
  top: var(--ph-pad);
  height: 6%;
  border-radius: calc(var(--ph-r) - var(--ph-pad)) calc(var(--ph-r) - var(--ph-pad)) 0 0;
  background: linear-gradient(to bottom, #fff, rgba(255,255,255,0));
}
.phone::after {
  bottom: var(--ph-pad);
  border-radius: 0 0 calc(var(--ph-r) - var(--ph-pad)) calc(var(--ph-r) - var(--ph-pad));
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}
.feed {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: calc(var(--ph-r) - var(--ph-pad));
  display: flex;
  flex-direction: column;
  gap: 2.8em;
  padding: 1.7em 0 7em;
  scrollbar-width: none;
  scroll-snap-type: y proximity;
}
.feed::-webkit-scrollbar { display: none; }

.post {
  display: flex;
  flex-direction: column;
  gap: 0.85em;
  scroll-snap-align: start;
  scroll-margin-top: 1.7em;
}
.post .media { position: relative; }
.post img, .post video {
  width: 100%;
  display: block;
  object-fit: cover;
  background: var(--ph);
}

/* carousel posts */
.carousel { position: relative; }
.carousel .track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.carousel .dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 0.7em;
  display: flex;
  justify-content: center;
  gap: 0.35em;
  pointer-events: none;
}
.carousel .dots span {
  width: 0.4em; height: 0.4em;
  min-width: 5px; min-height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 150ms, transform 150ms;
}
.carousel .dots span.on { background: #fff; transform: scale(1.25); }
.carousel .count {
  position: absolute;
  top: 0.85em; right: 0.85em;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  background: rgba(17,17,17,0.55);
  color: #fff;
  font-size: 0.8em;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.carousel .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2em; height: 2.2em;
  min-width: 32px; min-height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: #111;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: opacity 150ms, background 120ms;
}
.carousel .arrow svg { width: 1em; height: 1em; min-width: 14px; min-height: 14px; }
.carousel .arrow.prev { left: 0.6em; }
.carousel .arrow.next { right: 0.6em; }
.carousel:hover .arrow, .carousel .arrow:focus-visible { opacity: 1; }
.carousel .arrow:disabled { opacity: 0 !important; pointer-events: none; }
.carousel .arrow:hover { background: #fff; }
.carousel .sound { bottom: 2.2em; }
@media (hover: none) { .carousel .arrow { display: none; } }

/* mute toggle on videos */
.sound {
  position: absolute;
  right: 0.85em;
  bottom: 0.85em;
  width: 2.6em;
  height: 2.6em;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(17,17,17,0.55);
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: background 120ms;
}
.sound:hover { background: rgba(17,17,17,0.8); }
.sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sound svg { width: 1.1em; height: 1.1em; min-width: 16px; min-height: 16px; display: block; }
.sound .on { display: none; }
.sound[aria-pressed="true"] .on { display: block; }
.sound[aria-pressed="true"] .off { display: none; }
.post .meta {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  padding: 0 0.85em;
  font-size: 1em;
}
.post .date { color: var(--grey); font-size: 0.86em; }

/* clients */
.label { margin: 0; font-size: 13px; color: var(--grey); }
.clients { display: flex; flex-direction: column; gap: 32px; }
.wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.wall li {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.wall img {
  max-width: 120px;
  max-height: 48px;
  width: auto;
  height: auto;
  filter: grayscale(1) contrast(0.9);
  opacity: 0.7;
  transition: filter 200ms ease, opacity 200ms ease;
}
.wall li:hover img,
.wall li:focus-within img {
  filter: none;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .wall img { transition: none; }
}
/* per-mark tuning so everything sits at a similar visual weight */
.wall img[src*="nike"] { max-width: 84px; }
.wall img[src*="lululemon"] { max-width: 120px; }
.wall img[src*="goldenvoice"] { max-width: 150px; }
.wall img[src*="the-novo"] { max-width: 130px; }
.wall img[src*="stellar"] { max-width: 130px; }
.wall img[src*="dune"] { max-width: 96px; }
.wall img[src*="tacori"] { max-width: 130px; }
.wall img[src*="beverly-wilshire"] { max-height: 60px; }
.wall img[src*="montage"] { max-width: 130px; }
.wall img[src*="terranea"] { max-height: 60px; }
.wall img[src*="ace-hotel"] { max-width: 130px; }
.wall img[src*="hotel-june"] { max-width: 150px; }
.wall img[src*="intercontinental"] { max-height: 64px; }
.wall img[src*="marriott"] { max-width: 150px; max-height: 52px; }
.wall img[src*="line-39"] { max-height: 60px; }
.wall img[src*="oc-fashion-week"] { max-width: 88px; max-height: 56px; }
.wall img[src*="aquarium"] { max-width: 190px; }

/* footer */
.foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 13px;
  color: var(--grey);
}
.foot nav { display: flex; gap: 24px; }
.foot a { color: var(--grey); }
.foot a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .page { gap: 80px; padding: 24px 20px 32px; }
  .top { gap: 48px; }
  .phone { --ph-h: min(680px, 150vw, calc(100vh - 120px)); margin: 0 auto; }
}
.wall img[src*="barrys"] { max-width: 120px; }
.wall img[src*="universal"] { max-width: 110px; max-height: 60px; }
.wall img[src*="peacock"] { max-width: 130px; }

/* phones: two wider columns, every mark scaled to its cell. the attribute
   selector keeps this ahead of the per-mark desktop sizes above. */
@media (max-width: 900px) {
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .wall li { min-height: 84px; padding: 14px 8px; font-size: 13px; }
  .wall li img[src] {
    max-width: 86%;
    max-height: 34px;
  }
  .wall li img[src*="nike"] { max-width: 52px; }
  .wall li img[src*="dune"] { max-width: 60px; }
  .wall li img[src*="oc-fashion-week"] { max-width: 50px; max-height: 38px; }
  .wall li img[src*="universal"] { max-width: 66px; max-height: 40px; }
  .wall li img[src*="beverly-wilshire"],
  .wall li img[src*="terranea"],
  .wall li img[src*="intercontinental"],
  .wall li img[src*="line-39"] { max-height: 42px; }
  .wall li img[src*="aquarium"] { max-width: 100%; }
}
