/*
  polish.css: the editorial layer. Loaded after layout.css.
  Goals: fewer tiny mono labels, more air, image-led work cards, softer surfaces.
*/
:root { --radius-lg: 14px; }

/* ── Labels: quiet sentence case instead of tiny letter-spaced capitals ── */
.index__meta, .case__facts, .facts__key, .block__label, .ledger__date, .skills dt,
.study__back, .item__index, .capability .capability__where, .stance__proof, .case__more-link {
  font-family: var(--display);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 500;
}
.facts__key, .block__label { color: var(--text-faint); font-size: 15px; }
.block__label { margin-bottom: 18px; }
.case__facts { font-size: 14px; }
.case__facts b { font-weight: 500; color: var(--text); margin-right: 6px; }
.case__more-link { font-size: 16px; }
.study__kicker { font-family: var(--display); text-transform: none; letter-spacing: 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 400; }
.study__back { font-size: 15px; color: var(--text-faint); }

/* ── Rhythm ── */
.hero { padding-top: clamp(64px, 10vw, 144px); padding-bottom: clamp(72px, 10vw, 150px); }
.hero__title { font-weight: 300; }
.hero__foot { margin-top: clamp(40px, 6vw, 88px); }
.hero__sub { font-size: clamp(20px, 2vw, 28px); line-height: 1.4; max-width: 34ch; color: var(--text); }
.hero__sub { color: color-mix(in srgb, var(--text) 82%, transparent); }
.section { padding-top: clamp(80px, 11vw, 160px); }
.block { padding-top: clamp(96px, 13vw, 176px); }
.facts { border-top-color: var(--line); padding: 32px 0; }
.study__lede { line-height: 1.65; }

/* ── Surfaces: softer, one larger radius for imagery and cards ── */
.shot, .case__media, .wcard__media, .tpl, .systems__stage, .gate__stage { border-radius: var(--radius-lg); }
.shot { border-color: transparent; background: var(--bg-raise); }
.case__media { border-color: transparent; }
.case__name { font-weight: 300; font-size: clamp(30px, 3.2vw, 48px); }

/* ── Home: work cards ── */
.wgrid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 72px) clamp(20px, 3vw, 40px);
  margin-top: clamp(40px, 6vw, 80px);
}
.wgrid__item--wide { grid-column: 1 / -1; }
.wcard { display: block; text-decoration: none; color: inherit; }
.wcard__media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--bg-raise);
}
.wgrid__item--wide .wcard__media { aspect-ratio: 21 / 9; }
.wcard__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(14px) saturate(0.85) brightness(0.8); scale: 1.12;
  transition: filter 0.6s var(--ease), scale 0.8s var(--ease);
}
.is-open .wcard__media img { filter: none; scale: 1; }
.wcard__lock {
  position: absolute; left: 16px; bottom: 16px;
  padding: 7px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  background: rgba(20,20,20,0.72); color: var(--text);
  backdrop-filter: blur(6px);
}
.is-open .wcard__lock { display: none; }
.wcard__body { display: grid; gap: 10px; margin-top: 22px; max-width: 60ch; }
.wcard__name {
  font-size: clamp(30px, 3.4vw, 52px); font-weight: 300;
  line-height: 1.04; letter-spacing: -0.04em;
}
.wcard__what { font-size: 17px; line-height: 1.5; color: var(--text-soft); }
.wcard__meta { font-size: 14px; color: var(--text-faint); }
@media (hover: hover) {
  .wcard:hover .wcard__media img { filter: blur(8px) saturate(1) brightness(0.9); scale: 1.06; }
  .is-open .wcard:hover .wcard__media img { filter: none; scale: 1.04; }
  .wcard:hover .wcard__name { color: var(--accent); }
}
.wcard__name { transition: color 0.2s ease; }
@media (max-width: 720px) {
  .wgrid { grid-template-columns: 1fr; }
  .wgrid__item--wide .wcard__media { aspect-ratio: 4 / 3; }
}

/* ── Case study: full-width image bands ── */
.band { margin-top: clamp(48px, 7vw, 96px); }
.band .shot { border-radius: var(--radius-lg); }
.band img { width: 100%; height: auto; display: block; }
.band figcaption { margin-top: 12px; font-size: 14px; color: var(--text-faint); }
.band__img { aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 38%; }
@media (max-width: 720px) { .band__img { aspect-ratio: 4 / 3; } }
/* PIP's cover is public brand photography, so it stays sharp; the case study itself is still gated */
.wcard--open .wcard__media img { filter: none; scale: 1; }
.wcard--open:hover .wcard__media img { filter: none; scale: 1.03; }
.is-open .wcard__lock { display: none; }
.wcard__media img { filter: blur(10px) saturate(0.9) brightness(0.85); scale: 1.08; }

/* ── Home: 3D objects carousel ── */
.objects {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(48px, 7vw, 100px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
.objects__kicker { font-size: 15px; color: var(--accent); font-weight: 500; }
.objects__title { margin-top: 10px; font-size: clamp(32px, 3.8vw, 56px); font-weight: 300; line-height: 1.05; letter-spacing: -0.04em; text-wrap: balance; }
.objects__now { margin-top: clamp(28px, 4vw, 48px); min-height: 7.5em; }
.objects__name { font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -0.02em; }
.objects__text { margin-top: 8px; max-width: 38ch; font-size: 17px; line-height: 1.5; color: var(--text-soft); }
.objects__controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.objects__arrow {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--text);
  font-size: 18px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.objects__arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.objects__arrow:focus-visible, .obj__dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.objects__count { margin-left: 8px; font-size: 14px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.objects__dots { display: flex; gap: 8px; margin: 20px 0 28px; }
.obj__dot { width: 28px; height: 6px; border: 0; padding: 0; border-radius: 99px; background: var(--line-strong); cursor: pointer; transition: background 0.2s ease, width 0.3s var(--ease); }
.obj__dot[aria-current="true"] { background: var(--accent); width: 44px; }
.objects__stage {
  position: relative; aspect-ratio: 7 / 6; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 58%, rgba(234, 78, 101, 0.28), transparent 70%),
    radial-gradient(90% 70% at 50% 100%, rgba(255, 255, 255, 0.06), transparent 60%),
    var(--bg-raise);
}
.objects__stage::after { /* soft floor shadow under the object */
  content: ""; position: absolute; left: 50%; bottom: 13%; width: 46%; height: 6%;
  translate: -50% 0; border-radius: 50%; background: rgba(0, 0, 0, 0.55); filter: blur(18px); pointer-events: none;
}
.objects__stage canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.objects__stage canvas.is-drag { cursor: grabbing; }
.objects__hint { position: absolute; z-index: 2; left: 20px; bottom: 16px; font-size: 13px; color: var(--text-faint); pointer-events: none; }
.objects.no-gl .objects__stage { display: none; }
@media (max-width: 860px) {
  .objects { grid-template-columns: 1fr; }
  .objects__stage { order: -1; aspect-ratio: 1 / 1; }
  .objects__now { min-height: 0; }
}

/* ── Marquee ── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; }
.marquee__track { display: flex; gap: clamp(28px, 4vw, 56px); width: max-content; }
.marquee__track span {
  font-size: clamp(28px, 4vw, 56px); font-weight: 300; letter-spacing: -0.04em; color: var(--text-faint); white-space: nowrap;
}
.marquee__track span:nth-child(even) { color: var(--accent); }
html.motion .marquee__track { animation: marquee 38s linear infinite; }
@keyframes marquee { to { transform: translateX(calc(-50% - clamp(14px, 2vw, 28px))); } }
