/* Case study: loaded after style.css */
body.cs { padding-bottom: 0; background: var(--paper); font-size: 1.06rem; line-height: 1.65; }
.cs-top { background: var(--ink); padding: 10px 0; }
.cs-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cs-top img { height: 52px; width: auto; }
.t-open { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; color: var(--ink); border-bottom: 3px solid var(--hi); padding-bottom: 2px; }
.t-open-dark { color: #fff; }
.t-open .ic { transition: transform .2s; }
.t-open:hover .ic { transform: translateX(4px); }
.cs-cover { --cover: 1; }
@media (min-width: 900px) { .cs-cover { min-height: min(82vh, 820px); } .cs-cover .hero-title { font-size: clamp(5rem, 9.4vw, 9rem); max-width: 9ch; } }
.cs-cover .hero-in { padding-top: 26px; }
@media (min-width: 900px) { .cs-cover .hero-in { padding-top: clamp(30px, 5vh, 70px); } }
.cs-main { padding-top: 40px; }
.cs-meta { display: grid; gap: 14px 28px; margin: 0 0 40px; padding: 22px 24px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); }
@media (min-width: 800px) { .cs-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cs-meta dt { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--flame-dk); margin-bottom: 4px; }
.cs-meta dd { margin: 0; font-size: .96rem; line-height: 1.4; }
.t-sec { padding: 20px 0 64px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.t-sec:last-child { border-bottom: 0; margin-bottom: 0; }
.cs-narrow > * { max-width: 72ch; }
.t-h { font-style: italic; font-weight: 850; font-stretch: 62%; text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: .95; margin: 0 0 20px; color: var(--ink); }
.t-sub { font-style: italic; font-weight: 850; font-stretch: 70%; text-transform: uppercase; font-size: 1.6rem; margin: 36px 0 14px; color: var(--ink); }
.t-big { font-size: 1.2rem; max-width: 62ch; }
.t-note { background: var(--card); border-left: 5px solid var(--hi); padding: 14px 18px; border-radius: 0 10px 10px 0; box-shadow: var(--shadow); max-width: 75ch; margin-top: 22px; }
.t-small { font-size: .9rem; color: var(--muted); margin-top: 14px; }
.t-fig { margin: 0 0 22px; }
.t-fig img { border-radius: 10px; box-shadow: var(--shadow); width: 100%; height: auto; }
.t-fig figcaption { font-size: .92rem; color: var(--muted); margin-top: 8px; }
.cs-sheet { max-width: 1000px; }
.t-ticks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.t-ticks li { position: relative; padding-left: 32px; }
.t-ticks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%; background: var(--hi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1217' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
@media (min-width: 900px) { .t-ticks.two { grid-template-columns: 1fr 1fr; column-gap: 28px; } }

/* Logo */
.t-logo-show { display: grid; gap: 22px 32px; align-items: center; margin: 24px 0 8px; }
@media (min-width: 900px) { .t-logo-show { grid-template-columns: 7fr 5fr; } }
.t-logo-stage { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 14px; padding: 7% 8%; overflow: hidden; box-shadow: var(--shadow); }
.t-logo-stage svg { display: block; width: 100%; height: auto; }
.t-logo-text h3 { font-style: italic; font-weight: 850; font-stretch: 65%; text-transform: uppercase; font-size: 1.9rem; margin: 0 0 10px; color: var(--ink); }
.t-replay { position: absolute; right: 12px; bottom: 12px; border: 1px solid var(--iron); background: rgba(15, 18, 23, .7); color: #c4cad3; font: 700 .8rem var(--font); padding: 6px 12px; border-radius: 99px; cursor: pointer; }
.t-replay:hover { color: var(--hi); border-color: var(--hi); }
.t-logo-stage:not(.play):not(.still) svg path { opacity: 0; }
.t-versions { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.t-versions li { display: grid; gap: 4px; align-content: start; }
.t-v-art { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 12px; padding: 10% 9%; margin-bottom: 8px; box-shadow: var(--shadow); }
.t-v-art img { width: 100%; height: auto; }
.t-v-white { background: #fff; }
.t-v-ink { background: var(--ink); }
.t-v-hi { background: var(--hi); }
.t-v-icons { background: #e9e5db; display: flex; align-items: center; justify-content: center; gap: 18px; }
.t-v-icons img { flex: none; height: auto; border-radius: 6px; }
.t-v-icons img:nth-child(1) { width: 64px; } .t-v-icons img:nth-child(2) { width: 32px; } .t-v-icons img:nth-child(3) { width: 16px; border-radius: 3px; }
.t-versions b { font-weight: 850; color: var(--ink); }
.t-versions span { color: var(--muted); font-size: .92rem; line-height: 1.4; }

/* Postcards and layers */
.cs-cards { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .cs-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cs-cards img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow); }
.cs-layers { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0 28px; padding: 0; list-style: none; }
@media (min-width: 760px) { .cs-layers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cs-layers b { display: block; font-weight: 850; color: var(--ink); line-height: 1.2; margin-top: 8px; }
.cs-layers small { color: var(--muted); font-size: .9rem; }
/* The grey-and-white checkerboard every Photoshop and After Effects user reads as "transparent" */
.cs-layer { display: block; aspect-ratio: 2.4 / 1; overflow: hidden; border-radius: 8px; box-shadow: var(--shadow); background: #fff repeating-conic-gradient(#d4d4d4 0 25%, #fff 0 50%) 0 0 / 18px 18px; }
.cs-layer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

/* SEO */
.t-seo-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 6px 0 8px; }
.t-seo-stats div { background: var(--ink); color: #c4cad3; border-radius: 12px; padding: 18px 20px; display: grid; gap: 4px; align-content: start; }
.t-seo-stats b { font-style: italic; font-weight: 900; font-stretch: 62%; font-size: 3.4rem; line-height: .9; color: var(--hi); }
.t-serps { display: grid; gap: 14px; margin: 14px 0 10px; }
@media (min-width: 800px) { .t-serps { grid-template-columns: 1fr 1fr; } }
.t-serp { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px 12px; display: grid; gap: 10px; align-content: start; }
.t-q { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 16px; border-radius: 99px; border: 1px solid #dfe1e5; box-shadow: 0 1px 4px rgba(32, 33, 36, .12); font: 500 1rem Arial, sans-serif; color: #202124; }
.t-q .ic { color: #70757a; }
.t-result { font-family: Arial, sans-serif; display: grid; gap: 3px; padding: 0 4px; }
.t-site { display: flex; align-items: center; gap: 10px; margin: 0 0 3px; }
.t-site img { width: 26px; height: 26px; border-radius: 50%; }
.t-site span { display: grid; line-height: 1.25; }
.t-site b { font-size: .86rem; font-weight: 400; color: #202124; }
.t-site small { font-size: .76rem; color: #4d5156; }
.t-rt { margin: 0; color: #1a0dab; font-size: 1.13rem; line-height: 1.3; }
.t-rd { margin: 0; color: #4d5156; font-size: .87rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Page tour */
.t-page { display: grid; gap: 22px; padding: 30px 0; border-top: 1px dashed var(--line); align-items: center; }
.t-page:first-of-type { border-top: 0; }
.t-page h3 { font-style: italic; font-weight: 850; font-stretch: 65%; text-transform: uppercase; font-size: 2rem; margin: 0 0 10px; color: var(--ink); }
@media (min-width: 1000px) { .t-page { grid-template-columns: 4fr 7fr; column-gap: 36px; } .t-page:nth-of-type(even) { grid-template-columns: 7fr 4fr; } .t-page:nth-of-type(even) .t-page-text { order: 2; } }
.t-devices { position: relative; padding-bottom: 6%; }
.t-laptop { margin: 0; border-radius: 10px; overflow: hidden; border: 8px solid var(--ink); border-bottom-width: 14px; box-shadow: var(--shadow); background: var(--ink); }
.t-laptop img { width: 100%; height: auto; }
.t-phone { position: absolute; right: -6px; bottom: 0; width: 24%; margin: 0; border-radius: 20px; overflow: hidden; border: 6px solid var(--ink); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6); background: var(--ink); aspect-ratio: 390 / 844; }
.t-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.t-devices:has(.t-phone) .t-laptop { margin-right: 14%; }
/* Side by side, so the phone doesn't hide the truck */
.t-devices.sep { display: grid; grid-template-columns: minmax(0, 1fr) 21%; gap: 14px; align-items: center; padding-bottom: 0; }
.t-devices.sep .t-laptop { margin-right: 0; }
.t-devices.sep .t-phone { position: static; width: auto; }

/* Admin */
.t-feats { display: grid; gap: 18px; margin-top: 10px; }
@media (min-width: 900px) { .t-feats { grid-template-columns: 1fr 1fr; } }
.t-feat { margin: 0; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.t-feat img { width: 100%; height: auto; border-bottom: 1px solid var(--line); aspect-ratio: 1366 / 800; object-fit: cover; object-position: top left; }
.t-feat figcaption { padding: 14px 18px 18px; font-size: .97rem; }
.t-feat-phone { display: grid; grid-template-columns: 42% 1fr; align-items: center; }
.t-feat-phone img { aspect-ratio: 390 / 600; border-bottom: 0; border-right: 1px solid var(--line); object-position: top; }
.t-table-wrap { overflow-x: auto; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); }
.t-table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 560px; }
.t-table th, .t-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.t-table thead th { background: var(--ink); color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.t-table tbody tr:last-child td { border-bottom: 0; }
.t-table .ok { color: #157f3b; font-size: 1.1rem; }
.t-access td:not(:first-child), .t-access th:not(:first-child) { text-align: center; }
.t-access td:first-child { font-weight: 700; }
.t-callout { margin-top: 24px; background: var(--ink); color: #e1e5ea; border-radius: 12px; padding: 22px 24px; }
.t-callout h3 { color: var(--hi); font-style: italic; font-weight: 850; text-transform: uppercase; font-stretch: 70%; font-size: 1.5rem; margin: 0 0 10px; }
.t-callout a { color: var(--hi); font-weight: 700; }
.t-callout p:last-child { margin-bottom: 0; }
.scores-note { color: var(--muted); font-size: .92rem; }
.cs-actions { margin-top: 28px; }
.t-foot { background: var(--ink); color: var(--ash); padding: 28px 0; font-size: .9rem; }
.t-foot p { margin: 0 0 6px; max-width: 90ch; }
.t-foot a { color: #fff; }

/* PDF: keep things whole across pages */
.t-page, .t-feat, .t-serp, .t-logo-show, .t-versions, .cs-layers, .cs-cards, .t-callout, .t-table-wrap, .t-fig, .t-seo-stats { break-inside: avoid; }
.t-h, .t-sub { break-after: avoid; }
