/* ==========================================================================
   Americas Book Service — Book Cover Design page
   Loads after abs-design-system.css + home.css (shared nav, footer, CTA
   form, FAQ, modal, book3d, reveal). Page-specific styles are prefixed .cd-.
   Art direction: a publishing house's design department — chapter markers,
   printer's crop marks, a spec sheet, and real ABS covers.
   ========================================================================== */
.page-cover { --cd-ink: #1b1714; --cd-paper: #fbf8f1; }

.cd-h2 { margin: 0; font-family: var(--font-display); font-weight: 330; letter-spacing: -0.034em; line-height: 1.02; font-size: clamp(2.3rem, 1.4rem + 2.6vw, 3.9rem); color: var(--ink); }
.cd-h2 em { display: block; font-style: italic; font-weight: 300; color: #5a4d3b; }
.section--dark .cd-h2 { color: var(--ivory); }
.section--dark .cd-h2 em { color: var(--bronze-2); }

/* Chapter marker — the page's numbering device */
.cd-chapter { display: inline-flex; align-items: baseline; gap: 10px; margin: 0 0 20px; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--bronze-ink); }
.cd-chapter span { font-family: var(--font-sans); font-style: normal; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.cd-chapter::after { content: ""; width: 56px; height: 1px; background: rgba(176, 141, 87, 0.6); align-self: center; }
.cd-chapter--dark, .section--dark .cd-chapter { color: var(--bronze-2); }

/* Printer's crop marks */
.cd-marks { position: absolute; inset: -14px; pointer-events: none; }
.cd-marks, .cd-marks::before, .cd-marks::after { background:
  linear-gradient(currentColor, currentColor) 0 10px / 12px 1px no-repeat,
  linear-gradient(currentColor, currentColor) 10px 0 / 1px 12px no-repeat,
  linear-gradient(currentColor, currentColor) 100% 10px / 12px 1px no-repeat,
  linear-gradient(currentColor, currentColor) calc(100% - 10px) 0 / 1px 12px no-repeat,
  linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 12px 1px no-repeat,
  linear-gradient(currentColor, currentColor) 10px 100% / 1px 12px no-repeat,
  linear-gradient(currentColor, currentColor) 100% calc(100% - 10px) / 12px 1px no-repeat,
  linear-gradient(currentColor, currentColor) calc(100% - 10px) 100% / 1px 12px no-repeat; }
.cd-marks { color: rgba(21, 23, 28, 0.35); }

/* ==========================================================================
   1. HERO — a book-design studio table
   ========================================================================== */
.cd-hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(100svh, 900px); display: flex; align-items: center; padding: 150px 0 clamp(56px, 7vw, 96px); background: var(--cd-ink); color: var(--on-dark-1); }
.cd-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cd-hero__img {
  position: absolute; inset: -32px;
  filter: blur(5px) saturate(0.82) contrast(1.02);
  background: #3a2f27 url("../images/photos/1667929048193-4fef49b0ba0a-2400.webp") 72% 50% / cover no-repeat;
  background-image: image-set(
    url("../images/photos/1667929048193-4fef49b0ba0a-2400.webp") 1x,
    url("../images/photos/1667929048193-4fef49b0ba0a-3200.webp") 2x);
  transform: scale(1.02);
}
.cd-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(27, 23, 20, 0.88) 0%, rgba(27, 23, 20, 0.68) 34%, rgba(27, 23, 20, 0.16) 64%, rgba(27, 23, 20, 0.06) 100%),
    linear-gradient(180deg, rgba(27, 23, 20, 0.55) 0%, transparent 26%, transparent 70%, rgba(27, 23, 20, 0.7) 100%),
    radial-gradient(130% 110% at 60% 50%, transparent 58%, rgba(10, 8, 6, 0.45) 100%);
}
.cd-hero__inner { position: relative; width: 100%; display: grid; gap: clamp(40px, 6vw, 72px); }
.cd-crumbs { position: absolute; top: -56px; left: var(--gutter); }
.cd-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 0.76rem; letter-spacing: 0.04em; }
.cd-crumbs li { display: inline-flex; align-items: center; gap: 6px; color: rgba(250, 247, 241, 0.55); }
.cd-crumbs li + li::before { content: ""; width: 14px; height: 1px; background: rgba(250, 247, 241, 0.3); }
.cd-crumbs a { color: rgba(250, 247, 241, 0.72); text-decoration: none; }
.cd-crumbs a:hover, .cd-crumbs a:focus-visible { color: var(--ivory); }
.cd-crumbs [aria-current] { color: var(--bronze-2); }

.cd-hero__copy { position: relative; max-width: 660px; display: grid; gap: 22px; padding: 30px 34px 34px; }
.cd-crop { position: absolute; width: 22px; height: 22px; border-color: rgba(205, 177, 132, 0.6); border-style: solid; }
.cd-crop--tl { left: 0; top: 0; border-width: 1px 0 0 1px; }
.cd-crop--br { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.cd-hero .eyebrow { color: var(--bronze-2); }
.cd-hero__title { margin: 0; font-family: var(--font-display); font-weight: 320; font-size: clamp(3rem, 1.6rem + 4.2vw, 5.9rem); line-height: 0.98; letter-spacing: -0.04em; color: var(--ivory); }
.cd-hero__title em { display: block; font-style: italic; font-weight: 300; color: var(--bronze-2); }
.cd-hero__lead { margin: 0; max-width: 52ch; font-size: clamp(1.02rem, 0.96rem + 0.25vw, 1.14rem); line-height: 1.72; color: rgba(250, 247, 241, 0.8); }
.cd-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.cd-hero__ctas .btn, .cd-cta__btns .btn { border-radius: 12px; }
.cd-hero__disciplines { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid rgba(250, 247, 241, 0.16); max-width: 760px; }
.cd-hero__disciplines li { padding: 0 22px; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: rgba(250, 247, 241, 0.78); border-left: 1px solid rgba(250, 247, 241, 0.16); }
.cd-hero__disciplines li:first-child { padding-left: 0; border-left: 0; }

/* ==========================================================================
   2. THE COVER IS THE FIRST CHAPTER
   ========================================================================== */
.cd-first__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) 260px; gap: 40px clamp(36px, 5vw, 80px); align-items: end; }
.cd-first__lead .cd-h2 { max-width: 11ch; font-size: clamp(2.5rem, 1.4rem + 3vw, 4.4rem); }
.cd-first__body { display: grid; gap: 16px; padding-bottom: 8px; border-top: 1px solid rgba(21, 23, 28, 0.14); padding-top: 22px; position: relative; }
.cd-first__body::before { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 1px; background: var(--bronze); }
.cd-first__body p { margin: 0; color: var(--on-light-2); line-height: 1.75; }
.cd-first__drop { font-family: var(--font-display); font-size: clamp(1.2rem, 1.02rem + 0.5vw, 1.45rem); line-height: 1.45 !important; color: var(--on-light-1) !important; }
.cd-first__drop::first-letter { float: left; font-size: 3.4em; line-height: 0.82; padding: 6px 10px 0 0; color: var(--bronze-ink); font-weight: 300; }
.cd-first__types { font-size: 0.9rem; color: var(--on-light-1) !important; }
.cd-first__types .label { color: var(--bronze-ink); margin-right: 10px; }
.cd-first__print { position: relative; margin: 0 0 8px; transform: rotate(2.5deg); transition: transform 1s var(--ease-out); }
.cd-first__print:hover { transform: rotate(1deg) translateY(-4px); }
.cd-first__print img { display: block; width: 100%; aspect-ratio: 699 / 1024; object-fit: cover; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04), 0 40px 60px -30px rgba(40, 26, 10, 0.55); }
.cd-first__print figcaption { margin-top: 26px; font-size: 0.78rem; color: var(--on-light-2); }
.cd-first__print figcaption .label { display: block; color: var(--bronze-ink); margin-bottom: 2px; }

/* ==========================================================================
   3. SERVICES — editorial index
   ========================================================================== */
.cd-index { padding-top: 0; }
.cd-index__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.cd-index__head .cd-chapter { grid-column: 1 / -1; margin-bottom: 0; }
.cd-index__head > p:last-child { margin: 0; color: var(--on-light-2); line-height: 1.7; max-width: 44ch; justify-self: end; }
.cd-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(21, 23, 28, 0.2); }
.cd-row {
  position: relative; display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: baseline;
  padding: 26px 20px; margin: 0 -20px; border-bottom: 1px solid rgba(21, 23, 28, 0.1);
  transition: background 0.6s var(--ease-out);
}
.cd-row::before { content: ""; position: absolute; left: 20px; bottom: -1px; width: 0; height: 1px; background: var(--bronze); transition: width 0.9s var(--ease-out); }
.cd-row:hover { background: rgba(237, 231, 220, 0.6); }
.cd-row:hover::before { width: calc(100% - 40px); }
.cd-row__n { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--bronze-ink); }
.cd-row h3 { margin: 0; font-family: var(--font-display); font-weight: 360; font-size: clamp(1.5rem, 1.15rem + 0.9vw, 2.1rem); letter-spacing: -0.02em; transition: transform 0.6s var(--ease-out); }
.cd-row:hover h3 { transform: translateX(6px); }
.cd-row p { margin: 0; color: var(--on-light-2); line-height: 1.65; max-width: 46ch; }
.cd-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 18px 0 26px; border-bottom: 1px solid rgba(21, 23, 28, 0.1); position: relative; }
.cd-strip span { display: block; height: 120px; overflow: hidden; background: #ddd; }
.cd-strip img { width: 100%; height: 100%; object-fit: cover; object-position: var(--p); transform: scale(1.35); transform-origin: var(--p); transition: transform 1.2s var(--ease-out); filter: saturate(0.92); }
.cd-strip span:hover img { transform: scale(1.42); }
.cd-strip__cap { grid-column: 1 / -1; font-size: 0.74rem; font-style: normal; color: var(--on-light-2); }

/* ==========================================================================
   4. SHOWCASE — dark, one book up close, two behind
   ========================================================================== */
.cd-show { background: radial-gradient(60% 60% at 70% 50%, #2a2520, transparent 70%), var(--cd-ink); overflow: hidden; }
.cd-show__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.cd-show__copy > p:not(.cd-chapter) { margin: 20px 0 0; color: rgba(250, 247, 241, 0.72); line-height: 1.75; max-width: 42ch; }
.cd-show__list { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(250, 247, 241, 0.12); counter-reset: s; }
.cd-show__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(250, 247, 241, 0.1); font-size: 0.86rem; color: rgba(250, 247, 241, 0.55); }
.cd-show__list b { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; color: var(--ivory); }
.cd-show__stage { position: relative; height: clamp(460px, 44vw, 620px); }
.cd-show__back { position: absolute; margin: 0; width: 34%; aspect-ratio: 699 / 1024; box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.8); transition: transform 1.2s var(--ease-out); }
.cd-show__back img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.88) saturate(0.92); }
.cd-show__back--a { left: 2%; top: 14%; transform: rotate(-7deg); }
.cd-show__back--b { right: 4%; top: 6%; transform: rotate(6deg); }
.cd-show__stage:hover .cd-show__back--a { transform: rotate(-9deg) translateX(-8px); }
.cd-show__stage:hover .cd-show__back--b { transform: rotate(8deg) translateX(8px); }
.cd-show__hero { position: absolute; left: 50%; top: 50%; --w: clamp(200px, 19vw, 280px); --t: 30px; --ry: -22deg; --rx: 4deg; transform: translate(-50%, -48%); }
.cd-show__loupe { position: absolute; right: 0; bottom: 0; width: 170px; height: 170px; margin: 0; border-radius: 50%; overflow: hidden; border: 1px solid rgba(205, 177, 132, 0.5); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.8); background: #222; }
.cd-show__loupe img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; transform: scale(2.4); transform-origin: 50% 10%; }

/* ==========================================================================
   5. THE ART OF THE DETAILS — full-bleed photo left, glossary right
   ========================================================================== */
.cd-details { padding-block: 0; }
.cd-details__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.cd-details__photo { position: relative; margin: 0; min-height: 100%; overflow: hidden; background: #1f2a2c; }
.cd-details__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82) contrast(1.02); transition: transform 1.6s var(--ease-out); }
.cd-details__photo:hover img { transform: scale(1.03); }
.cd-details__copy { padding: clamp(72px, 9vw, 140px) clamp(24px, 6vw, 96px); max-width: 720px; }
.cd-details__lede { margin: 20px 0 0; color: var(--on-light-2); line-height: 1.7; max-width: 44ch; }
.cd-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 32px 0 0; }
.cd-terms > div { padding: 14px 0; border-top: 1px solid rgba(21, 23, 28, 0.12); transition: border-color 0.5s; }
.cd-terms > div:hover { border-top-color: var(--bronze); }
.cd-terms dt { font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); margin-bottom: 2px; }
.cd-terms dd { margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--on-light-2); }

/* ==========================================================================
   6. PROCESS — five stages stepping down the page like a layout grid
   ========================================================================== */
.cd-process__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 72px); }
.cd-process__head > p:last-child { margin: 18px 0 0; color: var(--on-light-2); line-height: 1.7; max-width: 52ch; }
.cd-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; position: relative; }
.cd-steps li { position: relative; padding: 0 20px 0 22px; border-left: 1px solid rgba(21, 23, 28, 0.14); }
.cd-steps li:nth-child(2) { margin-top: 40px; } .cd-steps li:nth-child(3) { margin-top: 80px; } .cd-steps li:nth-child(4) { margin-top: 120px; } .cd-steps li:nth-child(5) { margin-top: 160px; }
.cd-steps li::before { content: ""; position: absolute; left: -4px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); }
.cd-steps__n { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(3.6rem, 2.6rem + 2.6vw, 5.6rem); line-height: 0.9; color: transparent; -webkit-text-stroke: 1px rgba(126, 98, 54, 0.55); margin: -6px 0 16px; transition: color 0.6s, -webkit-text-stroke-color 0.6s; }
.cd-steps li:hover .cd-steps__n { color: var(--bronze-ink); -webkit-text-stroke-color: transparent; }
.cd-steps h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.015em; }
.cd-steps p { margin: 0; color: var(--on-light-2); font-size: 0.92rem; line-height: 1.6; }

/* ==========================================================================
   7. A COVER SHOULD WORK EVERYWHERE — one real cover, four contexts
   ========================================================================== */
.cd-anywhere__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.cd-anywhere__head .cd-chapter { grid-column: 1 / -1; margin-bottom: 0; }
.cd-anywhere__head > p:last-child { margin: 0; color: var(--on-light-2); line-height: 1.7; }
.cd-contexts { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 18px; align-items: end; }
.cd-ctx { margin: 0; }
.cd-ctx__frame { position: relative; height: 300px; border-radius: 4px; background: #efe9de; display: flex; align-items: flex-end; justify-content: center; padding: 26px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(21, 23, 28, 0.06); transition: background 0.6s; }
.cd-ctx:hover .cd-ctx__frame { background: #e9e1d3; }
.cd-ctx figcaption { margin-top: 14px; font-size: 0.8rem; color: var(--on-light-2); display: grid; gap: 2px; }
.cd-ctx figcaption b { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; color: var(--ink); }
/* shelf */
.cd-ctx--shelf .cd-ctx__frame { gap: 3px; padding-bottom: 30px; background: linear-gradient(180deg, #2b241f, #3a2f27); }
.cd-ctx--shelf .cd-ctx__frame img { width: 44%; aspect-ratio: 699 / 1024; object-fit: cover; box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.7); position: relative; z-index: 1; transition: transform 0.8s var(--ease-out); }
.cd-ctx--shelf:hover img { transform: translateY(-6px); }
.cd-spine { width: 11%; height: var(--h); max-height: 210px; background: var(--c); box-shadow: inset -2px 0 0 rgba(0, 0, 0, 0.2), inset 2px 0 0 rgba(255, 255, 255, 0.06); }
.cd-ctx__shelf { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: linear-gradient(180deg, #5a4636, #3e3026); box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.35); }
/* thumbnail listing */
.cd-ctx--thumb .cd-ctx__frame { flex-direction: column; justify-content: center; align-items: stretch; gap: 14px; background: #fbf8f1; }
.cd-listing { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; }
.cd-listing img, .cd-listing__blank { width: 54px; aspect-ratio: 699 / 1024; object-fit: cover; display: block; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.4); }
.cd-listing__blank { background: #d9d2c6; }
.cd-listing > span:last-child { display: grid; gap: 6px; }
.cd-listing i { display: block; height: 6px; border-radius: 3px; background: #d6cebf; }
.cd-listing i:first-child { width: 80%; background: #b7ad9c; } .cd-listing i:nth-child(2) { width: 55%; } .cd-listing i:nth-child(3) { width: 35%; background: #cdb184; }
.cd-listing--dim { opacity: 0.55; }
/* feed */
.cd-ctx--feed .cd-ctx__frame { flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; background: #fbf8f1; padding: 30px 34px; }
.cd-post { aspect-ratio: 1; overflow: hidden; background: #2b241f; display: grid; place-items: center; }
.cd-post img { height: 86%; aspect-ratio: 699 / 1024; object-fit: cover; box-shadow: 0 14px 24px -12px rgba(0, 0, 0, 0.8); }
.cd-post__line { height: 6px; width: 70%; border-radius: 3px; background: #d6cebf; }
.cd-post__line--s { width: 45%; }
/* catalog page */
.cd-ctx--catalog .cd-ctx__frame { background: #e6ded0; align-items: center; }
.cd-page { width: 82%; background: #fdfbf6; padding: 18px; display: grid; grid-template-columns: 40% 1fr; gap: 14px; box-shadow: 0 20px 30px -18px rgba(40, 26, 10, 0.5); transform: rotate(-2deg); transition: transform 0.8s var(--ease-out); }
.cd-ctx--catalog:hover .cd-page { transform: rotate(0); }
.cd-page img { width: 100%; aspect-ratio: 699 / 1024; object-fit: cover; }
.cd-page > span { display: grid; gap: 6px; align-content: start; padding-top: 4px; }
.cd-page i { display: block; height: 4px; border-radius: 2px; background: #d6cebf; }
.cd-page i:first-child { height: 7px; width: 90%; background: #9c917f; } .cd-page i:nth-child(3) { width: 80%; } .cd-page i:nth-child(5) { width: 60%; }
.cd-anywhere__note { margin: 22px 0 0; font-size: 0.8rem; color: var(--on-light-2); }

/* ==========================================================================
   8. DELIVERABLES — a specification sheet
   ========================================================================== */
.cd-spec__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px clamp(48px, 7vw, 120px); align-items: center; }
.cd-spec__head > p:last-child { margin: 18px 0 0; color: var(--on-light-2); line-height: 1.7; max-width: 40ch; }
.cd-sheet { position: relative; background: var(--cd-paper); padding: clamp(28px, 3.4vw, 48px); box-shadow: 0 1px 0 #fff inset, 0 40px 70px -40px rgba(40, 26, 10, 0.45); }
.cd-sheet::before { content: ""; position: absolute; inset: 0; background: var(--grain); background-size: 100px 100px; pointer-events: none; }
.cd-sheet__title { display: flex; justify-content: space-between; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.cd-sheet__list { margin: 0; padding: 0; list-style: none; }
.cd-sheet__list li { display: flex; align-items: baseline; gap: 10px; padding: 13px 0; border-bottom: 1px solid rgba(21, 23, 28, 0.08); }
.cd-sheet__list b { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; color: var(--ink); white-space: nowrap; }
.cd-sheet__list i { flex: 1 1 auto; min-width: 16px; border-bottom: 1px dotted rgba(21, 23, 28, 0.3); transform: translateY(-4px); }
.cd-sheet__list span { font-size: 0.84rem; color: var(--on-light-2); text-align: right; }
.cd-sheet__list li:hover b { color: var(--bronze-ink); }

/* ==========================================================================
   9. CAMPAIGN MOMENT
   ========================================================================== */
.cd-campaign { position: relative; isolation: isolate; overflow: hidden; min-height: 88vh; display: flex; align-items: center; background: var(--cd-ink); }
.cd-campaign__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cd-campaign__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; object-position: 50% 60%; filter: saturate(0.85); }
.cd-campaign__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 23, 20, 0.35) 0%, rgba(27, 23, 20, 0) 30%, rgba(27, 23, 20, 0) 60%, rgba(27, 23, 20, 0.55) 100%), linear-gradient(90deg, rgba(27, 23, 20, 0.6) 0%, rgba(27, 23, 20, 0.1) 60%); }
.cd-campaign__inner { width: 100%; }
.cd-campaign__title { margin: 0; max-width: 17ch; font-family: var(--font-display); font-weight: 320; font-size: clamp(2.2rem, 1.2rem + 3vw, 4.2rem); line-height: 1.04; letter-spacing: -0.034em; color: var(--ivory); }
.cd-campaign__title em { display: block; margin-top: 8px; font-style: italic; color: var(--bronze-2); }

/* ---------- FAQ chapter marker + CTA ---------- */
.faq__head .cd-chapter { margin-bottom: 14px; }
.cd-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cd-cta .cta__media img { filter: saturate(0.6) brightness(0.4); }

/* focus visibility on the page's own interactive pieces */
.cd-crumbs a:focus-visible, .cd-hero a:focus-visible, .cd-hero button:focus-visible { outline: 2px solid var(--bronze-2); outline-offset: 3px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .cd-first__grid { grid-template-columns: minmax(0, 1fr) 220px; }
  .cd-first__lead { grid-column: 1 / -1; }
  .cd-show__grid, .cd-spec__grid { grid-template-columns: minmax(0, 1fr); }
  .cd-details__grid { grid-template-columns: minmax(0, 1fr); }
  .cd-details__photo { min-height: 0; aspect-ratio: 16 / 9; }
  .cd-details__copy { max-width: none; }
  .cd-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .cd-steps li:nth-child(n) { margin-top: 0; }
  .cd-steps li:nth-child(2), .cd-steps li:nth-child(5) { margin-top: 40px; }
  .cd-contexts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-row { grid-template-columns: 70px minmax(0, 1fr); }
  .cd-row p { grid-column: 2; }
}
@media (max-width: 760px) {
  .cd-hero { min-height: 0; padding-top: 150px; align-items: flex-end; }
  .cd-hero__img { filter: blur(3.5px) saturate(0.82); background-image: url("../images/photos/1667929048193-4fef49b0ba0a-1200.webp"); background-position: 78% 30%; }
  .cd-hero__media::after { background: linear-gradient(180deg, rgba(27, 23, 20, 0.5) 0%, rgba(27, 23, 20, 0.4) 26%, rgba(27, 23, 20, 0.84) 56%, rgba(27, 23, 20, 0.94) 100%); }
  .cd-crumbs { top: -60px; }
  .cd-hero__copy { padding: 22px 18px 24px; }
  .cd-hero__title { font-size: 2.8rem; }
  .cd-hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .cd-hero__disciplines li { padding: 4px 12px; font-size: 0.95rem; }
  .cd-first__grid { grid-template-columns: minmax(0, 1fr); }
  .cd-first__print { width: 60%; justify-self: center; }
  .cd-index__head, .cd-anywhere__head { grid-template-columns: minmax(0, 1fr); }
  .cd-index__head > p:last-child { justify-self: start; }
  .cd-row { grid-template-columns: 44px minmax(0, 1fr); gap: 10px 14px; padding: 22px 16px; margin: 0 -16px; }
  .cd-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-strip span { height: 96px; }
  .cd-show__stage { height: 420px; }
  .cd-show__back { width: 42%; }
  .cd-show__hero { --w: 170px; --t: 20px; }
  .cd-show__loupe { width: 110px; height: 110px; }
  .cd-terms { grid-template-columns: minmax(0, 1fr); }
  .cd-steps { grid-template-columns: minmax(0, 1fr); row-gap: 30px; }
  .cd-steps li:nth-child(n) { margin-top: 0; margin-left: calc((var(--i, 0)) * 1px); }
  .cd-steps li:nth-child(2) { margin-left: 16px; } .cd-steps li:nth-child(3) { margin-left: 32px; } .cd-steps li:nth-child(4) { margin-left: 48px; } .cd-steps li:nth-child(5) { margin-left: 64px; }
  .cd-steps__n { font-size: 3rem; }
  .cd-contexts { grid-template-columns: minmax(0, 1fr); }
  .cd-ctx__frame { height: 250px; }
  .cd-sheet__list li { flex-wrap: wrap; }
  .cd-sheet__list b { white-space: normal; }
  .cd-sheet__list i { display: none; }
  .cd-sheet__list span { flex-basis: 100%; text-align: left; }
  .cd-campaign { min-height: 70vh; align-items: flex-end; padding-bottom: 48px; }
  .cd-cta__btns .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cd-first__print, .cd-row, .cd-row h3, .cd-strip img, .cd-show__back, .cd-details__photo img, .cd-page, .cd-ctx--shelf img { transition: none; }
}
@media (max-width: 760px) {
  .cd-ctx--feed .cd-ctx__frame { height: auto; padding: 24px 22%; }
  .cd-ctx--thumb .cd-ctx__frame { height: auto; padding: 24px; }
}

/* ==========================================================================
   Photographic continuity — atmospheric layers below the hero.
   Rhythm: hero (photo) → first chapter (faint) → services (side panel) →
   showcase (dark photo) → details (strong) → process (edges) →
   everywhere (immersive) → spec (paper, faint) → campaign (cinematic) → CTA.
   Only the photo layers are blurred; covers and text stay sharp.
   Photos load as each section approaches (data-cd-bg → .is-loaded).
   ========================================================================== */
.cd-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cd-bg__img {
  position: absolute; inset: -24px;
  background-repeat: no-repeat; background-size: cover; background-position: var(--pos, center);
  filter: blur(var(--b, 4px)) saturate(var(--s, 0.78));
  opacity: 0; transition: opacity 1.6s var(--ease-out);
}
.cd-bg.is-loaded .cd-bg__img { background-image: var(--img); opacity: var(--o, 0.25); }
.cd-bg::after { content: ""; position: absolute; inset: 0; background: var(--veil, none); }
.cd-first > .container, .cd-show > .container, .cd-details > .cd-details__grid, .cd-process > .container,
.cd-anywhere > .container, .cd-spec > .container, .cd-index > .container { position: relative; z-index: 1; }

/* 2 · First chapter — magazines and cover proofs, anchored top-right, faint */
.cd-bg--first {
  --img: url("../images/photos/1714876275718-1e87cc3a2087-1600.webp");
  --pos: 80% 30%; --b: 4px; --o: 0.22; --s: 0.7;
  --veil: linear-gradient(90deg, var(--ivory) 0%, rgba(246, 242, 234, 0.82) 38%, rgba(246, 242, 234, 0.35) 70%, rgba(246, 242, 234, 0.2) 100%),
          linear-gradient(180deg, rgba(246, 242, 234, 0.5) 0%, transparent 30%, transparent 70%, var(--ivory) 100%);
}

/* 3 · Services — a vertical photographic panel on the right (~38%) */
.cd-index { position: relative; overflow: hidden; }
.cd-index__panel { position: absolute; top: 0; right: 0; bottom: 0; width: 36%; margin: 0; z-index: 0; }
.cd-index__panel-img {
  position: sticky; top: 0; height: 100vh; height: 100lvh;
  background: #2a2522 center / cover no-repeat; filter: blur(2px) saturate(0.82);
  opacity: 0; transition: opacity 1.6s var(--ease-out);
}
.cd-index__panel.is-loaded .cd-index__panel-img { background-image: url("../images/photos/1602176234525-9b7e48fb2c34-1100.webp"); opacity: 1; }
.cd-index__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ivory) 0%, rgba(246, 242, 234, 0.55) 24%, rgba(246, 242, 234, 0.1) 60%, rgba(246, 242, 234, 0.05) 100%), linear-gradient(180deg, var(--ivory) 0%, transparent 10%, transparent 88%, var(--ivory) 100%); }
.cd-index__panel figcaption { position: absolute; right: var(--gutter); bottom: 40px; z-index: 1; color: rgba(250, 247, 241, 0.8); }
@media (min-width: 1101px) {
  .cd-index__head, .cd-rows { max-width: 64%; }
  .cd-index__head { grid-template-columns: minmax(0, 1fr); }
  .cd-index__head > p:last-child { justify-self: start; }
  .cd-row { grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr); }
  .cd-row:hover { background: rgba(237, 231, 220, 0.75); }
}

/* 4 · Showcase — covers on a warm, out-of-focus studio table; covers stay crisp */
.cd-bg--show {
  --img: url("../images/photos/1707989515910-6f572e2e1fcf-1800.webp");
  --pos: 70% 60%; --b: 4px; --o: 0.34; --s: 0.8;
  --veil: radial-gradient(60% 70% at 70% 50%, transparent 0%, rgba(27, 23, 20, 0.35) 60%, rgba(27, 23, 20, 0.8) 100%),
          linear-gradient(90deg, rgba(27, 23, 20, 0.9) 0%, rgba(27, 23, 20, 0.55) 40%, rgba(27, 23, 20, 0.1) 70%);
}

/* 5 · The art of the details — embossed binding across the whole section */
.cd-details { position: relative; overflow: hidden; }
.cd-bg--details {
  --img: url("../images/photos/1710432102022-6742abc18621-1800.webp");
  --pos: 40% 50%; --b: 3px; --o: 0.5; --s: 0.8;
  --veil: linear-gradient(90deg, transparent 0%, transparent 50%, rgba(246, 242, 234, 0.78) 56%, rgba(246, 242, 234, 0.88) 100%);
}
.cd-details__photo { background: transparent; }
.cd-details__photo img { box-shadow: 30px 0 60px -30px rgba(20, 14, 8, 0.6); }

/* 6 · Process — a book-design table, visible at the edges only */
.cd-process { overflow: hidden; }
.cd-bg--process {
  --img: url("../images/photos/1590098563742-9d39f4d048e6-1800.webp");
  --pos: 50% 60%; --b: 4px; --o: 0.3; --s: 0.7;
  --veil: radial-gradient(64% 58% at 50% 55%, var(--paper) 0%, rgba(237, 231, 220, 0.92) 45%, rgba(237, 231, 220, 0.55) 78%, rgba(237, 231, 220, 0.35) 100%),
          linear-gradient(180deg, var(--paper) 0%, transparent 16%, transparent 84%, var(--paper) 100%);
}

/* 7 · A cover should work everywhere — books laid out in a real room */
.cd-anywhere { overflow: hidden; }
.cd-bg--anywhere {
  --img: url("../images/photos/1598113082891-dcb7b2032b28-1800.webp");
  --pos: 60% 55%; --b: 4px; --o: 0.4; --s: 0.8;
  --veil: linear-gradient(180deg, var(--ivory) 0%, rgba(246, 242, 234, 0.72) 14%, rgba(246, 242, 234, 0.55) 50%, rgba(246, 242, 234, 0.8) 86%, var(--ivory) 100%),
          radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(60, 40, 20, 0.12) 100%);
}
.cd-ctx__frame { box-shadow: inset 0 0 0 1px rgba(21, 23, 28, 0.06), 0 24px 40px -30px rgba(40, 26, 10, 0.45); }

/* 8 · Deliverables — a faint sheet of paper, nothing more */
.cd-spec { overflow: hidden; }
.cd-bg--spec {
  --img: url("../images/photos/1576611209860-e3ad12547e8d-1400.webp");
  --pos: 20% 50%; --b: 3px; --o: 0.12; --s: 0.6;
  --veil: linear-gradient(90deg, rgba(237, 231, 220, 0.2) 0%, rgba(237, 231, 220, 0.7) 50%, var(--paper) 100%);
}

/* 9 · Campaign — the closed book, cinematic */
.cd-campaign__media img { inset: -6% -24px; width: calc(100% + 48px); filter: blur(5px) saturate(0.82) sepia(0.12); }
.cd-campaign__media::after {
  background:
    radial-gradient(45% 55% at 68% 58%, rgba(214, 170, 110, 0.14), transparent 70%),
    linear-gradient(90deg, rgba(27, 23, 20, 0.82) 0%, rgba(27, 23, 20, 0.5) 45%, rgba(27, 23, 20, 0.2) 100%),
    linear-gradient(180deg, rgba(27, 23, 20, 0.5) 0%, transparent 30%, transparent 60%, rgba(27, 23, 20, 0.75) 100%),
    radial-gradient(130% 110% at 60% 50%, transparent 55%, rgba(10, 8, 6, 0.55) 100%);
}

/* 10 · CTA — a quiet stack of hardbacks */
.cd-cta .cta__media img { filter: blur(3px) saturate(0.7) brightness(0.55) sepia(0.15); opacity: 0.45; object-position: 70% 50%; }

/* Responsive: calmer on smaller screens */
@media (max-width: 1100px) {
  .cd-index__panel { width: 100%; height: 360px; bottom: auto; }
  .cd-index__panel-img { position: absolute; inset: 0; height: auto; }
  .cd-index__panel::after { background: linear-gradient(180deg, rgba(246, 242, 234, 0.3) 0%, rgba(246, 242, 234, 0.75) 60%, var(--ivory) 100%); }
  .cd-index__panel figcaption { display: none; }
  .cd-bg--details { --veil: linear-gradient(180deg, transparent 0%, transparent 30%, rgba(246, 242, 234, 0.84) 40%, rgba(246, 242, 234, 0.9) 100%); }
}
@media (max-width: 760px) {
  .cd-bg { --o: 0.16; }
  .cd-bg--show { --o: 0.26; }
  .cd-bg--details { --o: 0.3; }
  .cd-bg--spec { --o: 0.08; }
  .cd-index__panel { height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .cd-bg__img, .cd-index__panel-img { transition: none; } }
.cd-index__panel-img { filter: saturate(0.82); margin-left: -2px; }
.cd-cta .cta__media img { opacity: 0.62; }
