/* AG — Cinematic Intelligence · subpage skin
   Loaded after style.css and cine.css on every page except the homepage.
   It keeps the existing page layouts and replaces their type, colour and chrome. */

/* ---------- legacy tokens mapped onto the cine palette ---------- */
body.theme-cine {
  --bg-2: #0c0c0c; --bg-3: #121212;
  --panel: #121212; --panel-2: #181818;
  --line-strong: rgba(237, 236, 231, .32);
  --gold: #edece7; --gold-bright: #ffffff; --gold-deep: #91918f;
  --gold-glow: transparent; --gold-faint: rgba(237, 236, 231, .05);
  --silver: #cfcec9; --silver-dim: #91918f;
  --ink-soft: #b9b8b3; --ink-faint: #91918f;
  --font-display: var(--f-display); --font-body: var(--f-text); --font-mono: var(--f-mono);
  --maxw: 1680px; --gutter: var(--gut);
  --glow: none;
  background: var(--bg); color: var(--ink-soft); font-feature-settings: normal;
}
body.theme-cine.cine-sub .site-main { padding-top: var(--bar); }
body.theme-cine h1, body.theme-cine h2, body.theme-cine h3, body.theme-cine h4 { font-family: var(--f-display); letter-spacing: -.01em; }

/* ---------- page heads ---------- */
.theme-cine .lu-page { padding-top: clamp(48px, 7vw, 120px); }
.theme-cine .lu-pagehead { border-bottom-color: var(--line-strong); }
.theme-cine .lu-pagehead h1, .theme-cine .page-hero h1 {
  font: 800 clamp(3rem, 10.6vw, 11.5rem)/.86 var(--f-display); font-stretch: 62%; letter-spacing: -.012em; text-transform: uppercase;
  margin-bottom: clamp(24px, 3.4vw, 56px) !important; overflow-wrap: anywhere; text-wrap: balance;
}
.theme-cine .page-hero { padding-block: clamp(48px, 7vw, 120px) clamp(24px, 3vw, 48px); max-width: var(--maxw); }
.js .theme-cine .lu-pagehead h1, .js .theme-cine .page-hero h1 { animation: cine-head var(--d-scene) var(--e-out) both; }
@keyframes cine-head { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translate3d(0, .22em, 0); } to { opacity: 1; clip-path: inset(-10% 0 -10% 0); transform: none; } }
html.js .theme-cine .page-hero h1.reveal { opacity: 1; transform: none; transition: none; }

.theme-cine .lu-lead { font: 400 clamp(1.25rem, 1.9vw, 1.85rem)/1.3 var(--f-text); font-stretch: 92%; letter-spacing: -.012em; color: var(--ink); max-width: 40ch; text-wrap: pretty; }
.theme-cine .lu-principles { border-top-color: var(--line-strong); }
.theme-cine .lu-principles b { font: 800 clamp(1.3rem, 1.9vw, 1.8rem)/1 var(--f-display); font-stretch: 62%; text-transform: uppercase; letter-spacing: 0; margin-bottom: 10px; }
.theme-cine .lu-principles span { font-size: 1rem; }

/* ---------- rows: outlined numeral, mono meta, condensed heading ---------- */
.theme-cine .lu-row { grid-template-columns: minmax(180px, 25%) minmax(0, 1fr); border-bottom-color: var(--line); scroll-margin-top: calc(var(--bar) + 16px); }
.theme-cine .lu-num { font: 900 clamp(4.4rem, 9.5vw, 10rem)/.78 var(--f-display); font-stretch: 62%; letter-spacing: -.02em; -webkit-text-stroke: 1px rgba(237, 236, 231, .5); text-shadow: none !important; transition: color var(--d-move) linear; }
.theme-cine .lu-row:hover .lu-num { color: var(--ink); }
.theme-cine .lu-meta, .theme-cine .lu-row-side .lu-meta { font: 500 .72rem/1.6 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); }
.theme-cine .lu-row-main h2, .theme-cine .lu-section h2 { font: 800 clamp(2.1rem, 4.7vw, 5rem)/.92 var(--f-display); font-stretch: 62%; letter-spacing: -.008em; text-transform: uppercase; text-wrap: balance; margin-bottom: clamp(18px, 2vw, 30px) !important; }
.theme-cine .lu-row-main h3, .theme-cine .lu-tile h3 { font: 600 1.2rem/1.2 var(--f-text); letter-spacing: -.01em; }
.theme-cine .lu-row-main p, .theme-cine .lu-row-main li { font-size: 1.0625rem; line-height: 1.62; }
.theme-cine .lu-row-main > p, .theme-cine .lu-row-main > ul, .theme-cine .lu-row-main > ol, .theme-cine .lu-row-main > details, .theme-cine .lu-row-main > details > p { max-width: 68ch; }
.theme-cine .lu-row-main > .lu-lead { font-size: clamp(1.2rem, 1.5vw, 1.45rem); line-height: 1.42; font-stretch: 100%; letter-spacing: -.006em; max-width: 58ch; margin-bottom: 1.1em; }
.theme-cine .lu-row-main a:not(.btn):not(.u2-card):not(.lu-tile) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-faint); }
.theme-cine .lu-row-main a:not(.btn):not(.u2-card):not(.lu-tile):hover { color: var(--amber); text-decoration-color: var(--amber); }
.theme-cine .lu-note { border-left-color: var(--amber); }
.theme-cine article.lu-note { border-left: 0; padding-left: var(--gutter); font-size: inherit; }
.theme-cine .lu-stack, .theme-cine .lu-footnote { font-size: .92rem; color: var(--ink-faint) !important; }
.theme-cine .lu-footnote a { color: var(--ink); }
.theme-cine .lu-stats b, .theme-cine .lu-stats dt { font: 800 clamp(2.4rem, 5vw, 4.6rem)/.9 var(--f-display); font-stretch: 62%; letter-spacing: -.01em; }
.theme-cine .lu-stats span, .theme-cine .lu-stats dd { font-size: .92rem; color: var(--ink-faint); }
.theme-cine .lu-more { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink); padding-bottom: 8px; }
.theme-cine .lu-more:hover { color: var(--amber); border-color: var(--amber); }
.theme-cine details > summary { transition: color var(--d-quick) linear; }
.theme-cine .work-detail summary { font: 500 .72rem/1.3 var(--f-mono) !important; letter-spacing: .09em; text-transform: uppercase; }
.theme-cine .work-detail summary:hover { color: var(--amber); }

/* closing call to action on content pages */
.theme-cine .lu-cta { border: 0; border-top: 1px solid var(--line-strong); background: none; padding: clamp(40px, 6vw, 96px) 0 0; margin-bottom: 0; }
.theme-cine .lu-cta h2 { font: 800 clamp(2.8rem, 9vw, 9.5rem)/.86 var(--f-display) !important; font-stretch: 62%; text-transform: uppercase; letter-spacing: -.012em; margin-bottom: clamp(20px, 3vw, 44px) !important; }
.theme-cine .lu-cta p { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.35; color: var(--ink); max-width: 44ch; }

/* ---------- buttons ---------- */
body.theme-cine .site-main .btn, body.theme-cine .site-main .wp-element-button:not(.wc-block-components-button) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  font: 500 .74rem/1 var(--f-mono) !important; letter-spacing: .09em !important; text-transform: uppercase !important; text-decoration: none;
}
body.theme-cine .btn-gold { background: #edece7 !important; color: #080808 !important; border-color: #edece7 !important; }
body.theme-cine .btn-gold:hover { background: var(--amber) !important; border-color: var(--amber) !important; box-shadow: none !important; }
body.theme-cine .btn-ghost { border-color: var(--line-strong) !important; }
body.theme-cine .btn-ghost:hover { border-color: var(--ink) !important; }

/* ---------- Uses ---------- */
.theme-cine .lu-uses .u2-filter { top: var(--bar); border-bottom-color: var(--line-strong); }
.admin-bar.theme-cine .lu-uses .u2-filter { top: calc(var(--bar) + 32px); }
.theme-cine .lu-uses .u2-filter button { font: 500 .72rem/1 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; padding: 16px 18px; }
.theme-cine .lu-uses .u2-top b { font: 800 1.7rem/1 var(--f-display); font-stretch: 62%; letter-spacing: 0; text-transform: uppercase; }
.theme-cine .lu-uses .u2-use-label { font: 500 .62rem/1 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--amber); }
.theme-cine .lu-uses .u2-desc { font-size: .98rem; }
.theme-cine .lu-uses .u2-link { font: 500 .7rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.theme-cine .lu-uses .u2-card:hover .u2-link { color: var(--amber); }
.theme-cine .lu-uses .u2-card::before { background: radial-gradient(220px circle at var(--mx) var(--my), rgba(237, 236, 231, .07), transparent 65%); }
.theme-cine .lu-sq { box-shadow: none; background: var(--amber); }

/* ---------- Workshop page (inline component styles use Inter; bring them into the family) ---------- */
.theme-cine .ws-svg text, .theme-cine .ws-tier .amt, .theme-cine .ws-cost-row em, .theme-cine .av b, .theme-cine .ws-bar span { font-family: var(--f-text); }
.theme-cine .ws-hero h1 { font-size: clamp(3rem, 8.6vw, 8.6rem) !important; }
.theme-cine .ws-tier .amt, .theme-cine .ws-cost-row em { font-family: var(--f-display); font-stretch: 62%; font-weight: 800; letter-spacing: -.01em; }
.theme-cine .ws-step .lu-num { font-size: clamp(3rem, 5vw, 4.4rem); }
.theme-cine .ws-use h3, .theme-cine .ws-tier h3, .theme-cine .ws-sess h3, .theme-cine .ws-ba h3, .theme-cine .ws-teamlist h3 { font: 600 1.2rem/1.2 var(--f-text); letter-spacing: -.01em; }
.theme-cine .ws-phone, .theme-cine .ws-sessions { box-shadow: none; }
.theme-cine .ws-agenda time, .theme-cine .ws-term, .theme-cine .ws-fails li span.n { font-family: var(--f-mono); }

/* ---------- generic pages: privacy, terms ---------- */
body.theme-cine.cine-sub:not(.woocommerce-page):not(.cine-woo) .entry:not(:has(> .lu-page)) { max-width: var(--maxw); padding-left: calc(var(--gutter) + (100% - 2 * var(--gutter)) * .25); font-size: 1.0625rem; line-height: 1.65; }
body.theme-cine.cine-sub:not(.woocommerce-page):not(.cine-woo) .entry:not(:has(> .lu-page)) > * { max-width: 68ch; }
.theme-cine .entry:not(:has(> .lu-page)) h2 { font: 800 clamp(1.7rem, 2.6vw, 2.5rem)/1 var(--f-display); font-stretch: 62%; text-transform: uppercase; margin-top: 2em; }
.theme-cine .entry:not(:has(> .lu-page)) h3 { font: 600 1.25rem/1.25 var(--f-text); }
.theme-cine .entry:not(:has(> .lu-page)) a { color: var(--ink); }
.theme-cine .entry:not(:has(> .lu-page)) a:hover { color: var(--amber); }

/* ---------- notes: the journal index and the quiet reading page ---------- */
.theme-cine .cine-page { max-width: var(--maxw); margin-inline: auto; padding: clamp(56px, 8vw, 120px) var(--gut) 0; }
.theme-cine .cine-head { margin-bottom: clamp(40px, 6vw, 96px); }
.theme-cine .cine-head h1.display { margin: 0 0 clamp(20px, 3vw, 44px); color: var(--ink); }
.js .theme-cine .cine-head h1 .ln > span { animation: t-rise var(--d-scene) var(--e-out) both; transform: translate3d(0, 105%, 0); }
.theme-cine .cine-head .lead { color: var(--ink); margin: 0; }
.theme-cine .cine-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: clamp(24px, 3vw, 40px) 0 0; }
.theme-cine .note-index { list-style: none; margin: 0; padding: 0; }
.theme-cine .note-index h2, .theme-cine .note-index h3 { grid-area: title; margin: 0; font: 400 clamp(2.3rem, 6.2vw, 6.6rem)/.98 var(--f-serif); letter-spacing: -.01em; color: var(--ink); text-transform: none; transition: transform var(--d-scene) var(--e-out); text-wrap: balance; }
.theme-cine .note-index a:hover h2, .theme-cine .note-index a:focus-visible h2 { font-style: italic; transform: translate3d(1.2vw, 0, 0); }
.theme-cine .note-index a { color: inherit; }
.theme-cine .note-index p { margin-bottom: 0; }
.theme-cine .cine-page .footnote { margin: var(--s-3) 0 0; }
.theme-cine .cine-page .footnote a { text-decoration: underline; text-underline-offset: 3px; }
.theme-cine .cine-notes .nav-links { display: flex; gap: 14px; padding-top: 28px; font: 500 .8rem var(--f-mono); }

.theme-cine .lu-note .note-head { padding-bottom: clamp(24px, 3vw, 44px); border-bottom-color: var(--line-strong); }
.theme-cine .lu-note .note-head h1 { font: 400 clamp(2.9rem, 7.6vw, 7.6rem)/.96 var(--f-serif); letter-spacing: -.015em; text-transform: none; max-width: 15ch; margin-bottom: 0 !important; text-wrap: balance; }
.theme-cine .note-kicker { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .09em; color: var(--ink-faint); }
.theme-cine .note-kicker::before { content: "N. —"; color: var(--amber); }
.theme-cine .note-body > * { max-width: 660px; }
.theme-cine .note-body > p, .theme-cine .note-body li { font-size: 1.16rem; line-height: 1.7; color: #cfcec9; }
.theme-cine .note-body > p:first-child { font: 400 clamp(1.3rem, 1.9vw, 1.6rem)/1.42 var(--f-text); font-stretch: 94%; letter-spacing: -.01em; color: var(--ink); }
.theme-cine .note-body h2 { font: 400 clamp(1.8rem, 3vw, 2.5rem)/1.08 var(--f-serif); letter-spacing: -.01em; text-transform: none; margin: 2em 0 .6em; }
.theme-cine .note-body a:hover { color: var(--amber); text-decoration-color: var(--amber); }
.theme-cine .note-body > .note-compare { max-width: none; }
.theme-cine .note-body > .note-tokens, .theme-cine .note-body > .note-bars { max-width: 860px; }
.theme-cine .nc-col h3 { font: 800 clamp(1.9rem, 3.4vw, 2.9rem)/.95 var(--f-display); font-stretch: 62%; text-transform: uppercase; letter-spacing: 0; }
.theme-cine .nc-svg { font-family: var(--f-text); }
.theme-cine .note-foot { border-top-color: var(--line-strong); margin-bottom: 0; }
@media (min-width: 1100px) {
  .theme-cine .lu-note .note-body, .theme-cine .lu-note .note-foot { margin-left: 25%; }
  .theme-cine .lu-note .note-body > .note-compare { margin-left: -33.333%; }
}

/* ---------- shop: light canvas between the dark bar and the credits ---------- */
body.theme-cine.woocommerce, body.theme-cine.woocommerce-page { background: #ffffff; }
body.theme-cine.woocommerce .grain, body.theme-cine.woocommerce-page .grain { display: none; }
body.theme-cine.woocommerce .site-main, body.theme-cine.woocommerce-page .site-main { --line-strong: rgba(19, 19, 19, .18); --ink-soft: #3f3f3f; --ink-faint: #6a6a6a; --gold: #646464; --gold-bright: #131313; --gold-deep: #6a6a6a; --panel: #ffffff; --panel-2: #f6f6f4; --silver: #3f3f3f; --silver-dim: #6a6a6a; --bg: #ffffff; --bg-2: #ffffff; --bg-3: #f6f6f4; padding-bottom: clamp(40px, 6vw, 96px); }
body.theme-cine.woocommerce .site-main :focus-visible, body.theme-cine.woocommerce-page .site-main :focus-visible { outline-color: #131313; }
body.theme-cine.woocommerce .site-foot, body.theme-cine.woocommerce-page .site-foot { flex: 0 0 auto; }
body.theme-cine.woocommerce .site-foot > .mail, body.theme-cine.woocommerce-page .site-foot > .mail { margin-top: clamp(56px, 8vw, 120px); }
body.theme-cine.woocommerce-page .site-main .page-hero h1, body.theme-cine.woocommerce .woo-wrap .page-title { color: #131313; }
body.theme-cine.woocommerce .woo-wrap .page-title { font: 800 clamp(3rem, 9vw, 9rem)/.86 var(--f-display); font-stretch: 62%; letter-spacing: -.012em; text-transform: uppercase; }
body.theme-cine.woocommerce .product_title { font-family: var(--f-display); }
body.theme-cine.woocommerce-page .site-main .page-hero h1::after { content: "/"; }

/* ---------- newsletter dialog (mu-plugin) ---------- */
body.theme-cine .agust-signup-dialog { font-family: var(--f-text); border-radius: 0; }
body.theme-cine .agust-signup-dialog h2 { font: 800 clamp(2rem, 4vw, 3rem)/.92 var(--f-display); font-stretch: 62%; text-transform: uppercase; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .theme-cine .lu-row { grid-template-columns: minmax(0, 1fr); }
  .theme-cine .lu-pagehead h1, .theme-cine .page-hero h1 { font-size: clamp(2.8rem, 16.5vw, 6rem); }
  .theme-cine .lu-row-main h2, .theme-cine .lu-section h2 { font-size: clamp(2rem, 10.5vw, 3.2rem); }
  .theme-cine .lu-num { font-size: 26vw; }
  .theme-cine .lu-cta h2 { font-size: 15vw !important; }
  .theme-cine .lu-note .note-head h1 { font-size: clamp(2.6rem, 12.5vw, 4rem); }
  .theme-cine .note-body > p, .theme-cine .note-body li { font-size: 1.08rem; }
  .theme-cine .ws-hero h1 { font-size: 14vw !important; }
  body.theme-cine.cine-sub:not(.woocommerce-page):not(.cine-woo) .entry:not(:has(> .lu-page)) { padding-left: var(--gutter); }
  .theme-cine .note-index h2 { font-size: 13.2vw; }
}

@media (prefers-reduced-motion: reduce) {
  .js .theme-cine .lu-pagehead h1, .js .theme-cine .page-hero h1, .js .theme-cine .cine-head h1 .ln > span { animation: none; transform: none; clip-path: none; opacity: 1; }
}

/* ---------- Icelandic: room for accented capitals in condensed headings ---------- */
.theme-cine:lang(is) .lu-pagehead h1, .theme-cine:lang(is) .page-hero h1 { line-height: 1; }
.theme-cine:lang(is) .ws-hero h1 { line-height: 1 !important; }
.theme-cine:lang(is) .lu-cta h2 { line-height: 1 !important; }
.theme-cine:lang(is) .lu-row-main h2, .theme-cine:lang(is) .lu-section h2 { line-height: 1.04; }
.theme-cine:lang(is) .lu-uses .u2-top b { line-height: 1.1; }
