/* Shared styles for the editorial case studies: Danskin, Elie Tahari, AKNVAS */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif; background: #fff; color: #1d1d1f; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:root { --accent: #1d1d1f; --gap: clamp(8px, 1.2vw, 16px); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wide { max-width: 1480px; margin: 0 auto; padding: 0 var(--gap); }

.fade { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade { opacity: 1; transform: none; transition: none; } }

/* Site menu */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid #e8e8ed; }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; height: 52px; }
.nav-name { font-size: 12px; letter-spacing: 5px; text-transform: uppercase; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; gap: clamp(16px, 3vw, 30px); }
.nav-links a { font-size: 13px; color: #6e6e73; text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.on { color: #1d1d1f; }
@media (max-width: 480px) { .nav-name { font-size: 11px; letter-spacing: 3px; } .nav-links { gap: 13px; } .nav-links a { font-size: 12px; } }

/* Hero: one image, edge to edge, the title set on it */
.hero { position: relative; height: calc(100vh - 53px); min-height: 520px; max-height: 1100px; overflow: hidden; background: #1d1d1f; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes settle { from { transform: scale(1.06); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero img { animation: none; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 38%, rgba(0,0,0,0) 62%); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; color: #fff; padding-bottom: clamp(36px, 6vw, 76px); }
.eyebrow { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; opacity: .85; }
h1 { font-size: clamp(44px, 9.2vw, 124px); font-weight: 700; letter-spacing: -0.035em; line-height: .96; margin-top: 18px; text-wrap: balance; }

/* Opening statement */
.lede { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 7vw, 88px); }
.lede-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.lede p.big { font-size: clamp(22px, 3.1vw, 36px); line-height: 1.24; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
.lede p.big + p { margin-top: 22px; font-size: clamp(15px, 1.8vw, 17px); color: #48484d; max-width: 560px; text-wrap: pretty; }
.facts div { padding: 16px 0; border-top: 1px solid #e8e8ed; }
.facts div:last-child { border-bottom: 1px solid #e8e8ed; }
.facts dt { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #a1a1a6; font-weight: 500; }
.facts dd { font-size: 15px; margin-top: 5px; text-wrap: pretty; }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 4vw, 56px); border-top: 1px solid #1d1d1f; padding-top: 26px; margin-bottom: clamp(64px, 9vw, 120px); }
.stats b { display: block; font-size: clamp(40px, 7.4vw, 92px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stats span { display: block; margin-top: 12px; font-size: clamp(13px, 1.6vw, 15px); color: #48484d; max-width: 260px; text-wrap: pretty; }

/* Pictures */
.bleed img, .bleed video { width: 100%; height: auto; }
.grid { display: grid; gap: var(--gap); margin-top: var(--gap); }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.offset { grid-template-columns: 1.25fr 1fr; align-items: end; }
.grid img, .grid video { width: 100%; height: 100%; object-fit: cover; }
.grid.natural img { height: auto; align-self: start; }
.framed { background: #f5f5f7; padding: clamp(24px, 6vw, 88px); }
.framed img, .framed video { margin: 0 auto; max-height: 86vh; width: auto; box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 24px 60px rgba(0,0,0,.12); }
.framed.plain img { box-shadow: none; }
.stack > * + * { margin-top: var(--gap); }

/* Chapter headings */
.chapter { padding: clamp(72px, 10vw, 136px) 0 clamp(28px, 4vw, 48px); }
.chapter .num { font-size: 12px; font-weight: 600; letter-spacing: 2px; color: #a1a1a6; }
h2 { font-size: clamp(30px, 5.2vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; margin: 10px 0 0; text-wrap: balance; }
.chapter p { margin-top: 18px; color: #48484d; font-size: clamp(15px, 1.9vw, 18px); max-width: 620px; text-wrap: pretty; }

/* Film */
.film { position: relative; aspect-ratio: 16 / 9; background: #f5f5f7; }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-cap { font-size: 13px; color: #86868b; margin-top: 12px; }
.films { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); }

/* Closing */
.outcome { background: #f5f5f7; padding: clamp(64px, 9vw, 112px) 0; margin-top: clamp(72px, 10vw, 136px); }
.outcome p { font-size: clamp(22px, 3.4vw, 40px); line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; max-width: 880px; text-wrap: balance; }
.credits { padding: clamp(48px, 7vw, 80px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px 28px; }
.credits dt { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #a1a1a6; }
.credits dd { font-size: 15px; margin-top: 4px; }
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 56px 0 8px; }
.next a { display: block; padding: 24px 26px; border: 1px solid #e8e8ed; border-radius: 14px; text-decoration: none; transition: border-color .2s, background .2s; }
.next a:hover { border-color: #a1a1a6; background: #fafafc; }
.next small { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #a1a1a6; }
.next b { display: block; font-size: clamp(17px, 2.2vw, 21px); margin-top: 6px; letter-spacing: -0.3px; }
.next a:last-child { text-align: right; }
footer { padding: 44px 0 60px; font-size: 12px; color: #a1a1a6; }

@media (max-width: 760px) {
  .hero { height: 78vh; }
  .lede-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 30px; }
  .grid.two, .grid.three, .grid.offset, .films { grid-template-columns: 1fr; }
  .next { grid-template-columns: 1fr; } .next a:last-child { text-align: left; }
}
