/* ==========================================================================
   03 Deep Dives
   Three tall photographic plates. Each caption is set like a museum label: number tag top-left, brand tag
   top-right, title, analysis and link in the lower-left half over a soft corner shade, so the right half of
   every image stays clear (the floral and "ice" bags, the microphone and raised hand, the toothbrush reveal).
   ========================================================================== */

.dd { padding: 112px var(--m); background: var(--bone); color: var(--ink); }
.dd .eyebrow { color: var(--slate); }

.dd__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 40px; align-items: end; }
.dd__lead { grid-column: 1 / 8; }
.dd__lead .section-title { max-width: 11.5em; }
.dd__why { grid-column: 8 / 13; padding-bottom: 6px; }
.dd__why p { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(32, 37, 38, .78); }
.dd__why .link { --link-line: var(--slate); margin-top: 14px; font-size: 16px; }

.plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 64px 0 0; padding: 0; list-style: none; }
.plate { position: relative; height: 580px; overflow: hidden; border-radius: 2px; background: var(--ink); color: var(--bone); isolation: isolate; }
.plate a { text-decoration: none; }
.plate a::after { content: ''; position: absolute; inset: 0; z-index: 3; }
.plate a:focus-visible { outline: none; }
.plate:has(a:focus-visible) { outline: 2px solid var(--slate); outline-offset: 4px; }
.plate__pic { position: absolute; inset: 0; z-index: -2; transition: transform .9s var(--ease), filter .5s var(--ease); }
.plate__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plate::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to right, rgba(32, 37, 38, .86) 0%, rgba(32, 37, 38, .8) 40%, rgba(32, 37, 38, .42) 60%, rgba(32, 37, 38, 0) 76%); -webkit-mask-image: linear-gradient(to top, #000 48%, transparent 74%); mask-image: linear-gradient(to top, #000 48%, transparent 74%); }

.plate__tag { position: absolute; top: 0; left: 0; padding: 9px 14px 10px; background: rgba(32, 37, 38, .78); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.plate__tag--brand { left: auto; right: 0; font-variant-numeric: normal; color: rgba(246, 244, 239, .9); }
.plate__cap { position: absolute; left: 28px; right: 28px; bottom: 26px; }
.plate__cap h3 { margin: 0; max-width: 9.5em; font-family: var(--display); font-stretch: 92%; font-weight: 500; font-size: clamp(25px, 2vw, 29px); line-height: 1.04; letter-spacing: -0.014em; text-wrap: balance; }
.plate__cap p { margin: 12px 0 0; max-width: 12.6em; font-size: 15px; line-height: 1.5; color: rgba(246, 244, 239, .88); }
.plate__read { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 14px; font-weight: 600; text-decoration: underline 1.5px rgba(163, 174, 165, .9); text-underline-offset: 6px; transition: text-decoration-color .25s var(--ease); }
.plate__read svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }

/* attention, restrained: the plate you are reading eases forward; the others soften slightly (pointer only) */
@media (hover: hover) {
  .plate:hover .plate__pic { transform: scale(1.015); }
  .plates:hover .plate:not(:hover) .plate__pic { filter: saturate(.75) brightness(.88); }
}
.plate:hover .plate__read, .plate:focus-within .plate__read { text-decoration-color: var(--bone); }
.plate:hover .plate__read svg, .plate:focus-within .plate__read svg { transform: translateX(4px); }
.plates:focus-within .plate:not(:focus-within) .plate__pic { filter: saturate(.75) brightness(.88); }

/* laptops below ~1180px and tablets: the same plates at their desktop proportions in a horizontal rail,
   about two in view and the third peeking in at the edge */
@media (max-width: 1180px) {
  .dd { padding: 96px var(--m); }
  .dd__lead { grid-column: 1 / -1; }
  .dd__why { grid-column: 1 / 10; margin-top: 24px; }
  .plates { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: clamp(272px, 40vw, 400px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: var(--m); margin: 56px calc(-1 * var(--m)) 0; padding: 0 var(--m) 8px; scrollbar-width: none; }
  .plates::-webkit-scrollbar { display: none; }
  .dd .carousel-nav { display: flex; --nav-line: rgba(43, 75, 90, .3); --nav-hover: rgba(43, 75, 90, .08); color: var(--slate); }
  .plate { height: auto; aspect-ratio: 400 / 562; scroll-snap-align: start; }
}

/* phones: the same immersive plates, one in view with the next peeking in */
@media (max-width: 640px) {
  .dd { padding: 80px var(--m); }
  .dd__intro { display: block; }
  .dd__why { margin-top: 20px; }
  .plates { grid-auto-columns: calc(100% - 44px); gap: 12px; margin-top: 40px; }
  .plate { aspect-ratio: 4 / 5.6; }
  .plate__cap { left: 20px; right: 20px; bottom: 20px; }
  .plate__cap h3 { font-size: 24px; }
  .plate__cap p { max-width: 14.5em; font-size: 14.5px; }
}

/* tablet: two plates are in view at once, so a single number would be misleading — buttons only.
   Phones show one plate at a time and keep the 01 / 03 counter. */
@media (max-width: 1180px) { .dd .carousel-nav .count { display: none; } .dd .carousel-nav { gap: 8px; } }
@media (max-width: 640px) { .dd .carousel-nav .count { display: block; } .dd .carousel-nav { gap: 4px; } }
