/* =========================================================
   Cutler and Gross brand page (global tokens live in style.css)
   ========================================================= */

.cg-left { text-align: left; margin: 10px 0 22px; }

/* ---------- Story ---------- */
.cg-wordmark { display: block; width: clamp(200px, 22vw, 280px); height: auto; margin-bottom: 30px; }
.cg-story .eyebrow { color: var(--gold-deep); }

/* ---------- Timeline ---------- */
.cg-time { background: var(--ink); color: var(--cream-2); padding-block: clamp(44px, 6vw, 72px); }
.cg-time__list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; }
.cg-time__list li { padding: 4px clamp(14px, 2.4vw, 32px); border-left: 1px solid rgba(247, 243, 236, .2); }
.cg-time__list li:first-child { border-left: 0; padding-left: 0; }
.cg-time__year { display: block; font-family: var(--font-title); font-weight: 300; font-size: clamp(40px, 4.6vw, 62px); line-height: 1; color: var(--gold-soft); }
.cg-time__list p { margin-top: 14px; font-size: 13.5px; line-height: 1.55; opacity: .9; max-width: 28ch; }

/* ---------- Collection ---------- */
.cg-switch { display: flex; justify-content: center; gap: 0; border: 0; padding: 0; margin: 0 auto clamp(28px, 4vw, 44px); }
.cg-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cg-switch label {
  padding: 12px 22px; border: 1px solid var(--ink); cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  transition: background .3s, color .3s;
}
.cg-switch label + input + label { border-left: 0; }
.cg-switch label:hover { color: var(--teal); }
.cg-switch input:checked + label { background: var(--ink); color: var(--cream-2); }
.cg-switch input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 3px; }

.cg-prods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.cg-prods--sun { display: none; }
.cg-coll:has(#cg-type-sun:checked) .cg-prods--opt { display: none; }
.cg-coll:has(#cg-type-sun:checked) .cg-prods--sun { display: grid; }
.cg-coll:has(input:checked) .cg-prods li { animation: cgIn .6s var(--ease-out) both; }
.cg-prods li:nth-child(2) { animation-delay: .04s !important; } .cg-prods li:nth-child(3) { animation-delay: .08s !important; }
.cg-prods li:nth-child(4) { animation-delay: .12s !important; } .cg-prods li:nth-child(5) { animation-delay: .16s !important; }
.cg-prods li:nth-child(6) { animation-delay: .2s !important; }  .cg-prods li:nth-child(7) { animation-delay: .24s !important; }
.cg-prods li:nth-child(8) { animation-delay: .28s !important; }
@keyframes cgIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.cg-prod__img { position: relative; aspect-ratio: 1; overflow: hidden; background: #f2f0ee; }
.cg-prod__img img, .cg-mini__img img, .cg-card__img img, .cg-feat__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cg-prod__img img { transition: transform .9s var(--ease-out); }
.cg-prod:hover .cg-prod__img img { transform: scale(1.06); }
.cg-prod__tag {
  position: absolute; top: 12px; left: 12px; padding: 6px 10px; background: var(--cream-2);
  font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.cg-prod__name { margin-top: 14px; font-family: var(--font-title); font-weight: 300; font-size: 21px; line-height: 1.15; color: var(--ink); }
.cg-prod__colour { margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- Collaborations ---------- */
.cg-feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.cg-feat + .cg-feat { margin-top: clamp(64px, 8vw, 120px); }
.cg-feat--flip .cg-feat__media { order: 2; }
.cg-feat__media { aspect-ratio: 1; overflow: hidden; }
.cg-feat__kicker { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.cg-feat__title { margin: 8px 0 18px; font-family: var(--font-title); font-weight: 300; font-size: clamp(36px, 4vw, 54px); line-height: 1.02; }
.cg-feat__copy > p:not([class]) { font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); }
.cg-quote { margin: 22px 0 0; padding-left: 18px; border-left: 2px solid var(--gold); font-family: var(--font-title); font-weight: 300; font-size: 21px; line-height: 1.35; color: var(--ink); }
.cg-quote cite { display: block; margin-top: 10px; font-family: var(--font-body); font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.cg-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.cg-mini__img { aspect-ratio: 1; overflow: hidden; background: #f2f0ee; }
.cg-mini__name { margin-top: 10px; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.cg-mini__colour { margin-top: 2px; font-size: 11.5px; color: var(--ink-soft); }

.cg-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); margin-top: clamp(72px, 9vw, 130px); padding-top: clamp(44px, 5vw, 64px); border-top: 1px solid var(--gold-soft); }
.cg-card__img { aspect-ratio: 4 / 5; overflow: hidden; }
.cg-card__img img { transition: transform 1.1s var(--ease-out); }
.cg-card:hover .cg-card__img img { transform: scale(1.05); }
.cg-card__title { margin: 18px 0 8px; font-family: var(--font-title); font-weight: 300; font-size: 28px; line-height: 1.1; }
.cg-card p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

.cg-archive { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 28px; margin-top: clamp(48px, 6vw, 80px); padding: 26px 0; border-block: 1px solid var(--gold-soft); }
.cg-archive__label { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); }
.cg-archive ul { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.cg-archive li { font-family: var(--font-title); font-weight: 300; font-size: 22px; color: var(--ink); }
.cg-archive li span { margin-right: 6px; font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--gold-deep); vertical-align: middle; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cg-prods, .cg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cg-time__list { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .cg-time__list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .cg-feat { grid-template-columns: 1fr; }
  .cg-feat--flip .cg-feat__media { order: 0; }
}
@media (max-width: 560px) {
  .cg-time__list { grid-template-columns: 1fr; }
  .cg-time__list li { border-left: 0; padding-left: 0; }
  .cg-prods { gap: 12px; }
  .cg-prod__name { font-size: 17px; }
  .cg-cards { grid-template-columns: 1fr; }
  .cg-minis { gap: 8px; }
  .cg-archive li { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .cg-coll:has(input:checked) .cg-prods li { animation: none; }
}
