/* ============================================
   BRENICKS — THE ATELIER (design journal)
   Loaded after css/style.css on Atelier pages only.
   ============================================ */
@view-transition { navigation: auto; }

:root {
  --at-ink: #07090C;
  --at-ink-2: #11161D;
  --at-ivory: #F7F5F0;
  --at-paper: #FBFAF6;
  --at-gold: #A88447;
  --at-gold-2: #C9A86A;
  --at-text: #0C1117;
  --at-muted: #4F5560;
  --at-line: rgba(201,168,106,.22);
  --at-ease: cubic-bezier(.16,1,.3,1);
  --at-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --at-serif: 'Playfair Display', Georgia, serif;
}

.at-body { background: var(--at-bg); --at-bg: #07090C; --at-fg: #F7F5F0; --at-fg-2: #C9C5BB; --at-fg-3: #A6A196; --at-veil: 7,9,12; --at-accent: #C9A86A; }
[data-theme="light"] .at-body { --at-bg: #F7F5F0; --at-fg: #0C1117; --at-fg-2: #3F444B; --at-fg-3: #5A5650; --at-veil: 247,245,240; --at-accent: #7A5A22; --at-line: rgba(122,90,34,.28); }
.at-body ::selection { background: var(--at-gold); color: var(--at-ink); }

/* ---------- custom cursor (fine pointers only) ---------- */
.at-cursor { position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid var(--at-gold-2); border-radius: 50%; pointer-events: none; z-index: 9999; mix-blend-mode: difference; transition: width .35s var(--at-ease), height .35s var(--at-ease), margin .35s var(--at-ease), background .35s; opacity: 0; }
.at-cursor.on { opacity: 1; }
.at-cursor.big { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: rgba(247,245,240,.9); border-color: transparent; }
.at-cursor__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 600 10px/1 var(--at-mono); letter-spacing: .14em; color: #000; opacity: 0; transition: opacity .2s; }
.at-cursor.big .at-cursor__label { opacity: 1; }
@media (pointer: coarse) { .at-cursor { display: none; } }

/* ---------- hero ---------- */
.at-hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: radial-gradient(120% 80% at 50% 110%, rgba(168,132,71,.16) 0%, var(--at-bg) 60%); color: var(--at-fg); padding: 7rem 1.25rem 4rem; isolation: isolate; }
.at-hero__field { position: absolute; left: -20%; top: -20%; width: 140%; height: 140%; overflow: visible; z-index: -1; opacity: .5; transform: rotate(calc(var(--s, 0) * 40deg)) scale(calc(1 + var(--s, 0) * .3)); transition: transform .1s linear; }
.at-hero__field line { stroke: var(--at-line); stroke-width: 1; }
.at-hero__inner { text-align: center; max-width: 1100px; }
.at-kicker { font: 500 .72rem/1 var(--at-mono); letter-spacing: .32em; text-transform: uppercase; color: var(--at-accent, var(--at-gold-2)); }
.at-hero__title { font-family: var(--at-serif); font-weight: 700; font-size: clamp(4.2rem, 15vw, 13.5rem); line-height: .86; letter-spacing: -.035em; margin: 1.4rem 0 1.6rem; display: flex; justify-content: center; flex-wrap: wrap; }
.at-hero__title .w { display: inline-flex; margin: 0 .12em; }
.at-hero__title .ch { display: inline-block; transform: translate3d(var(--dx,0), var(--dy,0), 0) rotate(var(--r,0)); transition: transform .5s var(--at-ease), color .5s; will-change: transform; }
.at-hero__title .ch.it { font-style: italic; font-weight: 500; color: var(--at-accent); }
.at-hero__sub { font-size: clamp(1rem, 2.2vw, 1.25rem); color: var(--at-fg-2); max-width: 34rem; margin: 0 auto; line-height: 1.6; }
.at-hero__cue { margin-top: 3rem; display: inline-flex; flex-direction: column; align-items: center; gap: .8rem; font: 500 .7rem/1 var(--at-mono); letter-spacing: .25em; color: var(--at-fg-3); }
.at-hero__cue i { width: 1px; height: 56px; background: linear-gradient(var(--at-gold-2), transparent); animation: at-drip 2.2s var(--at-ease) infinite; transform-origin: top; }
@keyframes at-drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- ticker ---------- */
.at-ticker { background: var(--at-gold); color: var(--at-ink); overflow: hidden; white-space: nowrap; border-block: 1px solid #000; }
.at-ticker__track { display: inline-flex; gap: 3rem; padding: 1rem 0; animation: at-marquee 38s linear infinite; font: 600 clamp(1rem, 2.4vw, 1.6rem)/1 var(--at-serif); font-style: italic; }
.at-ticker:hover .at-ticker__track { animation-play-state: paused; }
.at-ticker__track span::after { content: "✦"; font-style: normal; margin-left: 3rem; font-size: .7em; vertical-align: middle; }
@keyframes at-marquee { to { transform: translateX(-50%); } }

/* ---------- schedule strip ---------- */
.at-schedule { background: var(--at-bg); color: var(--at-fg); padding: clamp(3rem, 7vw, 5rem) 1.25rem; }
.at-schedule__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2rem 4rem; align-items: end; justify-content: space-between; }
.at-schedule h2 { font-family: var(--at-serif); font-weight: 500; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; margin: .8rem 0 0; max-width: 18ch; }
.at-schedule h2 em { color: var(--at-accent); }
.at-cal { display: flex; gap: .5rem; flex-wrap: wrap; }
.at-cal__d { width: 74px; padding: .7rem .5rem; border: 1px solid var(--at-line); border-radius: 10px; text-align: center; font: 500 .7rem/1.3 var(--at-mono); color: var(--at-fg-3); transition: transform .4s var(--at-ease), border-color .4s, background .4s; }
.at-cal__d b { display: block; font: 600 1.4rem/1.1 var(--at-serif); color: var(--at-fg); margin: .2rem 0; }
.at-cal__d.live { border-color: var(--at-gold-2); background: rgba(201,168,106,.1); }
.at-cal__d.live::after { content: "LIVE"; display: block; color: var(--at-accent); margin-top: .2rem; }
.at-cal__d:hover { transform: translateY(-6px) rotate(-2deg); }

/* ---------- plates (index) ---------- */
.at-plates { background: var(--at-bg); color: var(--at-fg); padding-bottom: 6rem; }
.at-plate { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(3rem, 8vw, 7rem) 1.25rem; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; border-top: 1px solid var(--at-line); }
.at-plate:nth-child(even) .at-plate__art { order: 2; }
@media (max-width: 820px) { .at-plate { grid-template-columns: 1fr; } .at-plate:nth-child(even) .at-plate__art { order: 0; } }
.at-plate__art { display: block; position: relative; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; transform: perspective(1200px) rotateX(calc((var(--p, .5) - .5) * -14deg)) rotateY(calc(var(--mx, 0) * 8deg)) scale(calc(.9 + var(--vis, 0) * .1)); transition: transform .6s var(--at-ease), box-shadow .6s, border-radius .6s; box-shadow: 0 40px 120px rgba(0,0,0,.55); outline-offset: 6px; }
.at-plate__art:hover { border-radius: 4px; box-shadow: 0 60px 160px rgba(201,168,106,.18); }
.at-plate__art:focus-visible { outline: 2px solid var(--at-gold-2); }
.at-plate__num { font: 700 clamp(5rem, 13vw, 10rem)/.8 var(--at-serif); color: transparent; -webkit-text-stroke: 1px var(--at-accent); display: block; transform: translateY(calc((.5 - var(--p, .5)) * 80px)); transition: transform .2s linear; }
.at-plate__meta { font: 500 .72rem/1 var(--at-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--at-fg-3); margin: 1.6rem 0 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.at-plate__meta b { color: var(--at-accent); font-weight: 500; }
.at-plate__title { font-family: var(--at-serif); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 1.1rem; }
.at-plate__title a { color: inherit; background: linear-gradient(var(--at-gold-2), var(--at-gold-2)) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--at-ease); }
.at-plate__title a:hover, .at-plate__title a:focus-visible { background-size: 100% 2px; }
.at-plate__dek { color: var(--at-fg-2); font-size: 1.08rem; line-height: 1.6; max-width: 32rem; }
.at-plate__go { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.8rem; font: 600 .78rem/1 var(--at-mono); letter-spacing: .2em; color: var(--at-fg); padding: 1rem 1.3rem; border: 1px solid var(--at-line); border-radius: 99px; transition: gap .4s var(--at-ease), background .4s, color .4s; min-height: 44px; }
.at-plate__go:hover { gap: 1.4rem; background: var(--at-fg); color: var(--at-bg); }
.at-reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--at-ease), transform 1s var(--at-ease); }
.at-reveal.in { opacity: 1; transform: none; }

/* sealed (scheduled) plates */
.is-sealed .at-plate__art .art { filter: blur(16px) grayscale(.6) brightness(.7); transform: scale(1.12); }
.at-seal { position: absolute; inset: 0; display: none; place-items: center; z-index: 3; }
.is-sealed .at-seal { display: grid; }
.at-seal__wax { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #D9B978, #A88447 55%, #6E5428); color: var(--at-ink); display: grid; place-items: center; text-align: center; font: 600 .66rem/1.35 var(--at-mono); letter-spacing: .14em; box-shadow: inset 0 0 0 6px rgba(0,0,0,.12), 0 20px 50px rgba(0,0,0,.5); transform: rotate(-8deg); transition: transform .6s var(--at-ease); }
.at-seal__wax b { display: block; font: 700 1.5rem/1.1 var(--at-serif); letter-spacing: 0; }
.at-plate__art:hover .at-seal__wax { transform: rotate(4deg) scale(1.06); }
.is-sealed .at-plate__title a, .is-sealed .at-plate__go { pointer-events: auto; }
.at-wobble { animation: at-wobble .5s; }
@keyframes at-wobble { 20% { transform: translateX(-10px) rotate(-1deg); } 40% { transform: translateX(8px) rotate(1deg); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }

.at-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%); background: var(--at-ivory); color: var(--at-ink); padding: .95rem 1.3rem; border-radius: 12px; font-size: .95rem; box-shadow: 0 20px 60px rgba(0,0,0,.4); z-index: 9000; transition: transform .6s var(--at-ease); max-width: calc(100vw - 32px); }
.at-toast.show { transform: translate(-50%, 0); }

/* page-leave shutter (fallback when View Transitions unsupported) */
.at-shutter { position: fixed; inset: 0; background: var(--at-gold); z-index: 9500; transform: scaleY(0); transform-origin: bottom; pointer-events: none; transition: transform .45s var(--at-ease); }
.at-leaving .at-shutter { transform: scaleY(1); }
.at-arrive .at-shutter { transform: scaleY(1); transform-origin: top; }

/* ============ ART ============ */
.art { position: absolute; inset: 0; overflow: hidden; transition: filter .8s var(--at-ease), transform .8s var(--at-ease); }
.art svg { width: 100%; height: 100%; display: block; }
.art-hint { position: absolute; left: 14px; bottom: 12px; font: 500 .62rem/1 var(--at-mono); letter-spacing: .18em; color: rgba(255,255,255,.75); background: rgba(0,0,0,.35); padding: .45rem .6rem; border-radius: 99px; z-index: 2; }

/* escher: tumbling blocks */
.art--escher { background: #E9E4D8; --t: #F7F5F0; --l: #A88447; --r: #20252C; }
.art--escher.flip { --t: #20252C; --l: #F7F5F0; --r: #A88447; }
.art--escher .ft { fill: var(--t); transition: fill .9s var(--at-ease); }
.art--escher .fl { fill: var(--l); transition: fill .9s var(--at-ease) .05s; }
.art--escher .fr { fill: var(--r); transition: fill .9s var(--at-ease) .1s; }
.art--escher svg { transform: scale(1.25) rotate(calc(var(--mx, 0) * 6deg)) translateY(calc((var(--p, .5) - .5) * -60px)); transition: transform .8s var(--at-ease); }

/* bauhaus */
.art--bauhaus { background: #EFE8D8; }
.bh { position: absolute; transition: all 1.1s var(--at-ease); }
.bh--c { border-radius: 50%; background: #1F4FA0; }
.bh--s { background: #C8321E; }
.bh--t { background: #E8B21C; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.bh--bar { background: #0C1117; }
.bh--ring { border-radius: 50%; border: 3px solid #0C1117; }

/* kandinsky */
.art--kandinsky { background: radial-gradient(circle at 30% 30%, #2A2F3A, #0B0E13 70%); }
.kd { position: absolute; border-radius: 50%; cursor: pointer; transition: transform .5s var(--at-ease), box-shadow .5s; border: none; padding: 0; }
.kd:hover, .kd:focus-visible { transform: scale(1.15); box-shadow: 0 0 0 2px rgba(255,255,255,.6); outline: none; }
.kd.ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; animation: kd-ring 1s var(--at-ease) forwards; }
@keyframes kd-ring { from { transform: scale(1); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.kd-line { position: absolute; height: 2px; background: #F7F5F0; transform-origin: left center; opacity: .8; pointer-events: none; }

/* basquiat */
.art--basquiat { background: #F1E9D6; color: #111; }
.bq-word { position: absolute; font: 800 clamp(1rem, 3.2vw, 2.1rem)/1 Inter, 'Helvetica Neue', Arial, sans-serif; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.bq-word svg { position: absolute; left: -6%; top: 35%; width: 112%; height: 40%; overflow: visible; }
.bq-word path { fill: none; stroke: #C8321E; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: calc(400 - var(--k, 0) * 400); transition: stroke-dashoffset .25s linear; }
.bq-crown path { fill: none; stroke: #111; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: calc(600 - var(--p2, 0) * 600); }
.bq-keep { color: #1F4FA0; }

/* giger */
.art--giger { background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), #3A3F45 0%, #0A0C0E 55%); }
.gg { position: absolute; left: var(--gx, 50%); top: var(--gy, 50%); border-radius: 46%; transform: translate(-50%, -50%) scale(var(--z, 1)) rotate(var(--rot, 0deg)); border: 2px solid rgba(200,205,210,.5); box-shadow: inset 0 0 18px rgba(0,0,0,.9), 0 0 0 6px rgba(20,22,25,.85), 0 0 0 8px rgba(160,165,170,.25); opacity: var(--o, 1); }

/* arsham */
.art--arsham { background: linear-gradient(160deg, #9EC9D6, #3E7C93 60%, #1E4B5E); }
.art--arsham text { font-family: var(--at-serif); font-weight: 700; }

/* horology */
.art--house { background: radial-gradient(circle at 50% 45%, #1D232C, #07090C 75%); }
.art--house .gear { transform-box: fill-box; transform-origin: center; }
.art--house .guil circle { fill: none; stroke: rgba(201,168,106,.18); }

/* ============ POST ============ */
.at-post-hero { position: relative; min-height: 100svh; background: var(--at-bg); color: var(--at-fg); display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.at-post-hero__art { position: absolute; inset: 0; transform: scale(calc(1 - var(--s, 0) * .18)) translateY(calc(var(--s, 0) * -60px)); border-radius: calc(var(--s, 0) * 40px); transition: transform .1s linear; }
.at-post-hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--at-veil),.55) 0%, rgba(var(--at-veil),.25) 28%, rgba(var(--at-veil),.72) 58%, rgba(var(--at-veil),.97) 100%), linear-gradient(90deg, rgba(var(--at-veil),.6), transparent 70%); pointer-events: none; }
.at-post-hero__copy { position: relative; z-index: 2; grid-row: 2; max-width: 1100px; width: 100%; margin: 0 auto; padding: 0 1.25rem clamp(2.5rem, 7vw, 5rem); }
.at-post-hero__title { font-family: var(--at-serif); font-weight: 700; font-size: clamp(2.6rem, 7.5vw, 6.2rem); line-height: .96; letter-spacing: -.03em; margin: 1rem 0; max-width: 16ch; text-shadow: 0 10px 40px rgba(var(--at-veil),.6); }
.at-post-hero__dek { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--at-fg-2); max-width: 38rem; line-height: 1.55; }
.at-post-hero__meta { margin-top: 1.4rem; font: 500 .72rem/1 var(--at-mono); letter-spacing: .2em; color: var(--at-fg-2); display: flex; gap: 1rem; flex-wrap: wrap; }
.at-split .ch { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(4deg); animation: at-in .9s var(--at-ease) forwards; animation-delay: calc(var(--i) * 22ms + 150ms); }
@keyframes at-in { to { opacity: 1; transform: none; } }

.at-paper { background: var(--at-paper); color: var(--at-text); padding: clamp(3.5rem, 9vw, 7rem) 1.25rem; position: relative; }
.at-article { max-width: 660px; margin: 0 auto; font-size: clamp(1.06rem, 1.6vw, 1.2rem); line-height: 1.78; }
.at-article p { margin: 0 0 1.35em; }
.at-article > p:first-of-type::first-letter { font-family: var(--at-serif); font-weight: 700; float: left; font-size: 4.6em; line-height: .8; margin: .08em .1em 0 0; color: var(--at-gold); }
.at-sip { display: flex; align-items: center; gap: .9rem; margin: 2.8em 0 1.1em; font: 600 .74rem/1 var(--at-mono); letter-spacing: .26em; text-transform: uppercase; color: #6E5428; }
.at-sip::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--at-gold), transparent); transform: scaleX(var(--k, 0)); transform-origin: left; transition: transform .2s linear; }
.at-sip svg { width: 22px; height: 22px; }
.at-pull { font-family: var(--at-serif); font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.22; margin: 1.6em -1rem; padding: 0 1rem; background: linear-gradient(90deg, var(--at-text) 0 50%, #C9C3B5 50% 100%) 0 0 / 200% 100% no-repeat; background-position-x: calc(100% - var(--k, 0) * 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.at-byline { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid #E2DED3; font-size: .95rem; color: var(--at-muted); }

/* coffee cup reading meter */
.at-cup { position: fixed; left: 18px; bottom: 18px; z-index: 800; width: 66px; height: 66px; border-radius: 50%; background: rgba(12,17,23,.88); backdrop-filter: blur(8px); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .5s var(--at-ease), opacity .5s; opacity: 0; transform: translateY(20px); }
.at-cup.on { opacity: 1; transform: none; }
.at-cup.pulse { animation: at-pulse .7s var(--at-ease); }
@keyframes at-pulse { 40% { transform: scale(1.22) rotate(-8deg); } }
.at-cup svg { width: 38px; height: 38px; overflow: visible; }
.at-cup__label { position: absolute; left: 76px; white-space: nowrap; background: var(--at-ivory); color: var(--at-ink); font: 600 .7rem/1 var(--at-mono); letter-spacing: .16em; padding: .55rem .75rem; border-radius: 99px; opacity: 0; transform: translateX(-8px); transition: all .5s var(--at-ease); }
.at-cup.say .at-cup__label { opacity: 1; transform: none; }

.at-end { background: var(--at-bg); color: var(--at-fg); padding: clamp(4rem, 9vw, 7rem) 1.25rem; }
.at-end__inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (max-width: 820px) { .at-end__inner { grid-template-columns: 1fr; } }
.at-end h2 { font-family: var(--at-serif); font-weight: 500; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.05; margin: .8rem 0 1.2rem; }
.at-end h2 em { color: var(--at-accent); }
.at-next { display: block; position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; color: var(--at-ivory); }
.at-next .art { transition: transform 1.2s var(--at-ease), filter .8s; }
.at-next:hover .art { transform: scale(1.08) rotate(1deg); }
.at-next__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem; background: linear-gradient(transparent, rgba(7,9,12,.92)); z-index: 4; }
.at-next__cap small { font: 500 .66rem/1 var(--at-mono); letter-spacing: .2em; color: var(--at-gold-2); }
.at-next__cap b { display: block; font: 600 1.5rem/1.15 var(--at-serif); margin-top: .5rem; }
.at-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: 0 1.5rem; border-radius: 99px; background: var(--at-fg); color: var(--at-bg); font-weight: 600; transition: transform .4s var(--at-ease), background .4s; }
.at-btn:hover { transform: translateY(-3px); background: var(--at-gold-2); }
.at-btn--ghost { background: transparent; color: var(--at-fg); border: 1px solid var(--at-line); }

/* post sealed state */
.at-post-sealed .at-paper, .at-post-sealed .at-end { display: none; }
.at-post-sealed .at-post-hero__art .art { filter: blur(18px) brightness(.6); }
.at-post-seal { display: none; }
.at-post-sealed .at-post-seal { display: block; margin-top: 1.4rem; }

/* insights page: atelier band + featured photo */
.at-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border-radius: var(--radius-lg, 24px); overflow: hidden; background: var(--at-ink); color: var(--at-ivory); margin-bottom: var(--gap, 2rem); min-height: 340px; }
@media (max-width: 768px) { .at-band { grid-template-columns: 1fr; } }
.at-band__copy { padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.at-band__copy h2 { font-family: var(--at-serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 0; color: var(--at-ivory); }
.at-band__copy h2 em { color: var(--at-gold-2); }
.at-band__copy p { color: #C9C5BB; margin: 0; line-height: 1.6; }
.at-band__art { position: relative; min-height: 260px; }
.insights-hero-card__photo { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; transition: transform 1.2s var(--at-ease); }
.insights-hero-card:hover .insights-hero-card__photo { transform: scale(1.04); }
.insights-hero-card__img { position: relative; overflow: hidden; }
.photo-credit { position: absolute; right: 10px; bottom: 10px; font-size: .68rem; color: #fff; background: rgba(0,0,0,.45); padding: .3rem .55rem; border-radius: 99px; }
.photo-credit a { color: #fff; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .at-body *, .at-body *::before, .at-body *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .at-reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* keep the site nav legible over ivory paper */
[data-theme="dark"] .at-body .nav.scrolled, [data-theme="dark"] .at-body .nav { background: rgba(7,9,12,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
[data-theme="light"] .at-body .nav.scrolled { background: rgba(247,245,240,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
[data-theme="dark"] .at-body .nav .nav__links a { color: #C9C5BB; } [data-theme="dark"] .at-body .nav .nav__links a:hover { color: #fff; }
.at-post-hero__copy .at-kicker { color: var(--at-accent); }
[data-theme="dark"] .at-post-hero__copy .at-kicker { color: #E4C88E; }
.at-post-hero__art .art-hint { top: 88px; right: 18px; left: auto; bottom: auto; }

/* light theme: ticker, seal, hero field */
[data-theme="light"] .at-hero__field { opacity: .7; }
[data-theme="light"] .at-plate__art { box-shadow: 0 30px 80px rgba(12,17,23,.18); }
[data-theme="light"] .at-plate { border-top-color: rgba(122,90,34,.22); }
[data-theme="light"] .is-sealed .at-plate__art .art { filter: blur(16px) grayscale(.4) brightness(1.05); }

/* tilt (phones) */
.at-tilt { display: none; margin: 1.6rem auto 0; align-items: center; gap: .6rem; min-height: 44px; padding: 0 1.1rem; border-radius: 99px; border: 1px solid var(--at-line); background: transparent; color: var(--at-fg); font: 600 .72rem/1 var(--at-mono); letter-spacing: .18em; cursor: pointer; }
.at-tilt.show { display: flex; width: max-content; }
.at-tilt svg { width: 18px; height: 18px; }
.at-hero__inner .at-tilt { margin-top: 1.4rem; }

/* hero drawing (a new variant each visit) */
.at-hero__field .af { fill: none; stroke: rgba(201,168,106,.6); stroke-width: 1; vector-effect: non-scaling-stroke; }
[data-theme="light"] .at-hero__field .af { stroke: rgba(122,90,34,.55); }
.at-hero__field .ad { fill: var(--at-accent, #C9A86A); opacity: .28; }
.at-hero__field { animation: at-draw-in 2.4s var(--at-ease) both; }
@keyframes at-draw-in { from { opacity: 0; filter: blur(6px); } }
.at-hero__variant { position: absolute; left: 1.25rem; bottom: 1.1rem; font: 500 .62rem/1 var(--at-mono); letter-spacing: .2em; color: var(--at-fg-3); }
