/* ===== v4: signature case-folder hero, lifestyle bands, premium book page ===== */

/* ---------- Hero: the case folder opens on the table ---------- */
.hero-v4 { position: relative; overflow: hidden; padding: 0; background: #120d08; min-height: min(92vh, 820px); display: flex; align-items: center; }
.hero-table { position: absolute; inset: 0; background: url("../img/table-dark.webp") center / cover no-repeat; }
.hero-table::after { content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(13,10,6,.94) 0%, rgba(13,10,6,.82) 30%, rgba(13,10,6,.28) 58%, rgba(13,10,6,.1) 100%),
		radial-gradient(900px 600px at 78% 50%, transparent 40%, rgba(0,0,0,.45) 100%); }
.hero-v4-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; width: 100%; padding-block: 80px; }
.hero-v4 h1 { font-size: clamp(2.6rem, 5vw, 4.3rem); text-shadow: 0 2px 30px rgba(0,0,0,.55); }
.hero-v4 h1 .line { display: block; animation: rise .9s var(--ease-out) both; }
.hero-v4 h1 .line:nth-child(2) { animation-delay: .12s; }
.hero-v4 h1 .line:nth-child(3) { animation-delay: .24s; }
.hero-v4 .lead { color: #d8d0bb; max-width: 48ch; animation: rise .9s .38s var(--ease-out) both; }
.hero-v4 .ctas { animation: rise .9s .5s var(--ease-out) both; }

.desk { position: relative; height: 560px; perspective: 1800px; }
.folder { --fw: 280px; --fh: 365px; position: absolute; left: 50%; top: 47%; width: var(--fw); height: var(--fh); transform: translate(0, -50%) rotate(-3deg); transform-style: preserve-3d; }
.folder-back { position: absolute; inset: 0; border-radius: 4px 10px 6px 4px;
	background: linear-gradient(160deg, rgba(255,255,255,.12), transparent 30%), repeating-linear-gradient(90deg, rgba(120,84,30,.05) 0 2px, transparent 2px 6px), #c9a465;
	box-shadow: 0 30px 60px rgba(0,0,0,.6), inset 0 0 0 1px rgba(90,60,20,.35); }
.folder-tab { position: absolute; top: -26px; right: 22px; height: 30px; padding: 0 16px; border-radius: 6px 6px 0 0; background: #c9a465; color: #3b2a12;
	font: 600 12px/30px var(--sans); letter-spacing: .04em; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.spill { position: absolute; left: 8%; top: 6%; width: 84%; height: auto; border-radius: 2px; box-shadow: 0 10px 26px rgba(0,0,0,.45); transform-origin: 50% 80%;
	animation: spill 1.2s var(--ease-out) both; }
.spill-1 { animation-delay: 1.45s; --x: 34px; --y: -30px; --r: 6deg; }
.spill-2 { animation-delay: 1.6s; --x: 92px; --y: 14px; --r: 11deg; }
.spill-3, .spill-4, .spill-5 { width: 46%; border-radius: 1px 4px 4px 1px; box-shadow: 0 18px 30px rgba(0,0,0,.6); }
.spill-3 { animation-delay: 1.8s; --x: -6px; --y: 125px; --r: -7deg; }
.spill-4 { animation-delay: 1.9s; --x: 140px; --y: 135px; --r: 8deg; }
.spill-5 { animation-delay: 2.0s; --x: 80px; --y: 160px; --r: -2deg; }
@keyframes spill { from { transform: none; opacity: .0; } 15% { opacity: 1; } to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 1; } }

.folder-cover { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; animation: folderOpen 1.5s .5s var(--ease-out) both; z-index: 5; }
.cover-face, .cover-inside { position: absolute; inset: 0; border-radius: 4px 10px 6px 4px; backface-visibility: hidden; }
.cover-face { background: linear-gradient(160deg, rgba(255,255,255,.18), transparent 35%), repeating-linear-gradient(90deg, rgba(120,84,30,.05) 0 2px, transparent 2px 6px), #d4b072;
	box-shadow: inset 0 0 0 1px rgba(90,60,20,.35), inset -10px 0 18px rgba(0,0,0,.12); }
.cover-inside { transform: rotateY(180deg); background: linear-gradient(200deg, rgba(0,0,0,.08), transparent 40%), #bf9a5c; }
.cover-label { position: absolute; left: 28px; right: 28px; top: 34px; padding: 14px 16px; background: #f3ead4; border: 1px solid rgba(60,40,15,.35); box-shadow: 0 2px 0 rgba(0,0,0,.08);
	display: flex; flex-direction: column; gap: 4px; color: #2b2012; transform: rotate(-1deg); }
.cover-label b { font: 700 22px/1.1 var(--serif); }
.cover-label span { font: 500 13px/1.3 var(--sans); color: #5b4a30; }
.cover-stamp { position: absolute; right: 26px; bottom: 70px; padding: 8px 14px; border: 3px solid rgba(150,30,26,.82); color: rgba(150,30,26,.86); border-radius: 4px;
	font: 800 22px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; transform: rotate(-12deg); mix-blend-mode: multiply; }
.cover-string { position: absolute; right: -6px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #b58a4c, #7a5626); box-shadow: 0 2px 4px rgba(0,0,0,.4); }
@keyframes folderOpen { from { transform: rotateY(0deg); } to { transform: rotateY(-168deg); } }

@media (max-width: 960px) {
	.hero-v4 { display: block; min-height: 0; }
	.hero-v4-grid { grid-template-columns: 1fr; padding-block: 28px 56px; gap: 0; }
	.desk { order: -1; height: 420px; }
	.folder { --fw: 165px; --fh: 215px; left: 50%; top: 40%; transform: translate(0, -50%) rotate(-3deg); }
	.spill-1 { --x: 40px; --y: -14px; } .spill-2 { --x: 85px; --y: 18px; }
	.spill-3 { --x: -4px; --y: 70px; } .spill-4 { --x: 95px; --y: 80px; } .spill-5 { --x: 45px; --y: 92px; }
	.cover-label { left: 14px; right: 14px; top: 18px; padding: 8px 10px; } .cover-label b { font-size: 13px; } .cover-label span { font-size: 10px; } .cover-stamp { font-size: 11px; bottom: 30px; right: 14px; padding: 5px 8px; border-width: 2px; } .folder-tab { font-size: 10px; height: 22px; line-height: 22px; top: -19px; } .desk { height: 360px; }
	.hero-table::after { background: linear-gradient(180deg, rgba(13,10,6,.2) 0%, rgba(13,10,6,.55) 45%, rgba(13,10,6,.96) 70%); }
}
@media (prefers-reduced-motion: reduce) {
	.folder-cover { animation: none; transform: rotateY(-168deg); }
	.spill { animation: none; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}

/* ---------- Lifestyle occasions: real moments, full photos ---------- */
.moments { padding: 96px 0; }
.moment-grid { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.moment { position: relative; display: block; overflow: hidden; border-radius: 14px; text-decoration: none; color: #fff; min-height: 300px; background: #0b0b0b; }
.moment:first-child { grid-row: span 2; min-height: 620px; }
.moment img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.moment:hover img, .moment:focus-visible img { transform: scale(1.04); }
.moment::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5,5,5,.82) 100%); }
.moment-text { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.moment-text b { font: 600 clamp(1.4rem, 2.2vw, 2rem)/1.15 var(--serif); }
.moment-text span { font-size: 15.5px; color: rgba(255,255,255,.82); max-width: 44ch; }
.moment-text small { font-weight: 600; font-size: 13.5px; color: #ebcb8b; margin-top: 4px; }
@media (max-width: 860px) { .moment-grid { grid-template-columns: 1fr; } .moment:first-child { grid-row: auto; min-height: 420px; } }

/* ---------- Book page: sticky buy column, zoom ---------- */
@media (min-width: 861px) {
	.book-top .wrap { align-items: start; }
	.book-info { position: sticky; top: 92px; }
}
.g-main { cursor: zoom-in; }
.g-main img { transition: transform .5s var(--ease-out); }

/* ---------- Footer emblem ---------- */
.foot-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.foot-brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(212,175,106,.5); }
.foot-brand h4 { margin: 0; }

/* inside of the opened cover carries a clipped case page, like a real file */
.cover-inside { overflow: hidden; }
.inside-page { position: absolute; left: 12%; top: 9%; width: 76%; height: auto; transform: rotate(2deg); box-shadow: 0 6px 14px rgba(0,0,0,.3); border-radius: 2px; }
.inside-clip { position: absolute; left: 46%; top: 5%; width: 26px; height: 40px; border: 3px solid #8d8a86; border-radius: 12px; border-bottom-color: transparent; transform: rotate(4deg); z-index: 2; }

/* ---------- v4.1: bigger books ---------- */
/* shelf bands: text on top, the six books across the full width below */
.shelfband .wrap { grid-template-columns: minmax(0, 1fr); gap: 34px; }
.shelfband .wrap > div:first-child { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px 48px; align-items: end; }
.shelfband .wrap > div:first-child > .who, .shelfband .wrap > div:first-child > h2 { grid-column: 1; }
.shelfband .wrap > div:first-child > .line { grid-column: 1; }
.shelfband .wrap > div:first-child > .deal, .shelfband .wrap > div:first-child > .row { grid-column: 2; grid-row: auto; }
.shelfband .fan { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px; }
.shelfband .fan .b3d { --t: 16px; padding: 6px 12px 18px 4px; }
.shelfband .fan span:not([class]) { font-size: 14.5px; margin-top: 4px; line-height: 1.35; }
@media (max-width: 960px) {
	.shelfband .wrap > div:first-child { grid-template-columns: 1fr; }
	.shelfband .wrap > div:first-child > * { grid-column: 1 !important; }
	.shelfband .fan { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 480px) { .shelfband .fan { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* all books / library grid: larger cards */
.grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 46px 34px; }
.card .b3d { --t: 20px; }
.card h3 { font-size: 1.22rem; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; } .card .b3d { --t: 12px; } }
.grid.more { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (min-width: 861px) { .grid.more { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* hero: bigger books spilling out of the folder */
.spill-3, .spill-4, .spill-5 { width: 58%; }

/* six books a shelf: three across keeps every row full */
.grid:not(.more) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 54px 56px; }
.grid:not(.more) .card { max-width: 330px; }
@media (max-width: 860px) { .grid:not(.more) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 22px; } }

/* Contact form: small, quiet, in the site's own colours */
.contact-sec { padding-top: 0; }
.cform { max-width: 620px; display: grid; gap: 14px; background: var(--ink-2); border: 1px solid rgba(198,164,102,.22); border-radius: 14px; padding: 22px; }
.cform label { display: grid; gap: 6px; font-size: 14px; color: var(--bone-dim); }
.cform input[type=text], .cform input[type=email], .cform textarea { font: inherit; font-size: 16px; color: var(--bone); background: var(--ink); border: 1px solid rgba(198,164,102,.28); border-radius: 8px; padding: 10px 12px; width: 100%; box-sizing: border-box; }
.cform textarea { resize: vertical; min-height: 110px; }
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: transparent; }
.cform-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.cform-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cform-foot small, .cform-alt { color: var(--bone-dim); font-size: 13px; margin: 0; }
.cform-foot a, .cform-alt a { color: var(--brass); }
.cform-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-note { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 15px; }
.cform-note.ok { background: rgba(198,164,102,.14); color: var(--bone); }
.cform-note.bad { background: rgba(111,36,34,.35); color: var(--bone); }

/* CookieYes notice: a small card in the site's own colours, bottom left */
.cky-consent-container { width: min(330px, calc(100vw - 32px)) !important; left: 16px !important; bottom: 16px !important; }
.cky-consent-container .cky-consent-bar { padding: 15px 17px !important; border-radius: 14px !important; background: var(--ink-2) !important; border: 1px solid rgba(198,164,102,.35) !important; box-shadow: 0 12px 32px -12px rgba(0,0,0,.6) !important; }
.cky-consent-container .cky-title { margin: 0 0 4px !important; font: 700 15px/1.3 var(--sans) !important; color: var(--bone) !important; }
.cky-consent-container .cky-notice-des, .cky-consent-container .cky-notice-des * { font: 400 13px/1.5 var(--sans) !important; color: var(--bone-dim) !important; }
.cky-consent-container .cky-notice-des a, .cky-consent-container .cky-policy { color: var(--brass) !important; }
.cky-consent-container .cky-notice-btn-wrapper { margin-top: 12px !important; gap: 8px !important; flex-wrap: nowrap !important; }
.cky-consent-container .cky-btn { margin: 0 !important; padding: 7px 10px !important; min-height: 36px; border-radius: 9px !important; font: 600 12.5px/1 var(--sans) !important; flex: 1 1 auto; }
.cky-consent-container .cky-btn-accept { background: var(--brass) !important; border-color: var(--brass) !important; color: #1a1408 !important; }
.cky-consent-container .cky-btn-reject, .cky-consent-container .cky-btn-customize { background: transparent !important; border: 1px solid rgba(236,229,211,.3) !important; color: var(--bone) !important; }
.cky-btn-revisit-wrapper { background: var(--ink-2) !important; width: 34px !important; height: 34px !important; border: 1px solid rgba(198,164,102,.35) !important; }
.cky-modal .cky-btn-accept, .cky-modal .cky-btn-preferences { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important; }
.cky-modal .cky-btn-reject { color: var(--ink) !important; border-color: var(--ink) !important; background: transparent !important; }
