/*
Theme Name:   Bokehsommelier Obsidian
Theme URI:    https://bokehsommelier.com
Author:       Wolfgang Molitoris
Description:  Ground-up rebuild of the bokehsommelier theme. Obsidian dark states, brass light architecture, frosted glass layers, T-stop cursor and anamorphic kinetics. Zero page builders, ACF driven, performance first.
Version:      4.1.0
Requires PHP: 8.0
Text Domain:  bokehsommelier-obsidian
*/

/* ------------------------------------------------------------
   1. TOKENS
   Palette carried from bokehsommelier v54 and re-tuned for a
   permanent obsidian state. Brass stays the only warm voice.
------------------------------------------------------------ */
:root {
  --ink:        #0a0a0c;                       /* page ground            */
  --ink-2:      #101218;                       /* raised slate           */
  --paper:      #f2efe8;                       /* primary text, from v54 */
  --dim:        #9a948a;                       /* secondary text         */
  --faint:      rgba(242,239,232,.45);
  --brass:      #b5993a;                       /* v54 brass              */
  --brass-hi:   #cab04e;
  --brass-m:    rgba(181,153,58,.32);
  --brass-lo:   rgba(181,153,58,.10);
  --amber:      #e8c42a;                       /* flare hot point        */
  --coolstreak: rgba(205,222,255,.28);         /* anamorphic blue edge   */
  --rule:       rgba(181,153,58,.16);

  --glass-nav:  rgba(12,13,17,.55);
  --glass-card: rgba(16,17,23,.42);
  --glass-brd:  rgba(242,239,232,.09);

  --f:          'Lato', 'Helvetica Neue', Arial, sans-serif;
  --fs-hero:    clamp(3.2rem, 9vw, 6.8rem);
  --fs-h2:      clamp(2rem, 4.4vw, 3.4rem);

  --nav-h:      68px;
  --max:        1180px;
  --ease:       cubic-bezier(.16, 1, .3, 1);
  --marquee-dur: 42s;
}

/* ------------------------------------------------------------
   2. BASE
------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: none; }

/* Custom cursor takes over only once cursor.js confirms itself */
html.bs-cursor-on, html.bs-cursor-on * { cursor: none !important; }

::selection { background: var(--brass-m); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--brass-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  padding: .8rem 1.4rem; background: var(--brass); color: var(--ink);
  font-weight: 700; letter-spacing: .1em;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------
   3. TYPOGRAPHY
   Lato Hairline at scale carries the classic Apple weightless
   look. Micro labels do the structural signposting.
------------------------------------------------------------ */
h1, h2, h3, h4 { font-weight: 100; line-height: 1.08; color: var(--paper); }

.s-tag {
  display: inline-block;
  font-size: .62rem; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.2rem;
}

.sec-title { font-size: var(--fs-h2); letter-spacing: -.01em; }
.sec-title i, .sec-title em { font-style: italic; color: var(--brass-hi); }

.lead { font-size: 1.06rem; color: var(--dim); max-width: 58ch; }

/* ------------------------------------------------------------
   4. LAYOUT UTILITIES
------------------------------------------------------------ */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2rem); }

.section { position: relative; padding: clamp(5rem, 10vw, 8.5rem) 0; }

.sec-head { max-width: 660px; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.sec-head--c { margin-inline: auto; text-align: center; }
.sec-head .lead { margin-top: 1.1rem; }
.sec-more { margin-top: 2.6rem; text-align: center; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

/* Scroll reveal states, driven by motion.js */
.reveal, .reveal-l {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal-l { transform: translate3d(-30px, 0, 0); }
.reveal.in, .reveal-l.in { opacity: 1; transform: translate3d(0, 0, 0); }

/* ------------------------------------------------------------
   5. LIGHT ARCHITECTURE
   Fixed glow field behind everything. Wrappers take the pointer
   parallax (custom props from motion.js), pseudo elements take
   the slow drift, so the two transforms never fight.
------------------------------------------------------------ */
.glow-field {
  position: fixed; inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow { position: absolute; will-change: transform; }
.glow::before {
  content: "";
  position: absolute; inset: -18%;
  border-radius: 50%;
  will-change: transform;
}

.glow-a { top: -24vh; left: -16vw; width: 72vw; height: 72vw; max-width: 920px; max-height: 920px;
          transform: translate3d(calc(var(--gx, 0) * 26px), calc(var(--gy, 0) * 26px), 0); }
.glow-a::before {
  background: radial-gradient(circle, rgba(181,153,58,.20), rgba(181,153,58,.06) 42%, transparent 68%);
  animation: bs-drift-a 28s ease-in-out infinite alternate;
}

.glow-b { top: 6vh; right: -20vw; width: 58vw; height: 58vw; max-width: 760px; max-height: 760px;
          transform: translate3d(calc(var(--gx, 0) * -18px), calc(var(--gy, 0) * -14px), 0); }
.glow-b::before {
  background: radial-gradient(circle, rgba(232,196,42,.11), rgba(232,196,42,.03) 45%, transparent 70%);
  animation: bs-drift-b 36s ease-in-out infinite alternate;
}

.glow-c { bottom: -30vh; left: 22vw; width: 64vw; height: 64vw; max-width: 860px; max-height: 860px;
          transform: translate3d(calc(var(--gx, 0) * 12px), calc(var(--gy, 0) * 18px), 0); }
.glow-c::before {
  background: radial-gradient(circle, rgba(122,150,208,.08), rgba(122,150,208,.02) 48%, transparent 72%);
  animation: bs-drift-c 44s ease-in-out infinite alternate;
}

@keyframes bs-drift-a { to { transform: translate3d(4%,  3%, 0) scale(1.06); } }
@keyframes bs-drift-b { to { transform: translate3d(-3%, 5%, 0) scale(1.04); } }
@keyframes bs-drift-c { to { transform: translate3d(3%, -4%, 0) scale(1.07); } }

/* The anamorphic blade: one thin diagonal of light across the hero */
.light-blade {
  position: absolute; left: -12vw; right: -12vw; top: 38vh;
  height: 2px;
  background: linear-gradient(90deg,
    transparent, rgba(232,196,42,.32) 30%, var(--coolstreak) 50%,
    rgba(232,196,42,.32) 70%, transparent);
  box-shadow: 0 0 26px rgba(232,196,42,.22);
  transform: rotate(-7deg);
  opacity: .38;
  animation: bs-blade 9s ease-in-out infinite alternate;
}
@keyframes bs-blade { from { opacity: .2; } to { opacity: .44; } }

/* Everything readable floats above the light */
.site-nav, main, .site-footer { position: relative; z-index: 1; }

/* ------------------------------------------------------------
   6. GLASS SYSTEM
   Two frost tiers. Sheen comes from a top gradient, never from
   opacity tricks that would blur text.
------------------------------------------------------------ */
.glass {
  background: var(--glass-card);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
  border: 1px solid var(--glass-brd);
}
.glass-heavy {
  background: var(--glass-nav);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--glass-brd);
}

/* ------------------------------------------------------------
   7. NAVIGATION: floating glass pill
------------------------------------------------------------ */
.site-nav {
  position: fixed;
  top: 14px; left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: min(calc(100% - 24px), var(--max));
  height: var(--nav-h);
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 1.8rem);
  border-radius: 18px;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-nav.scrolled {
  background: rgba(10,10,13,.78);
  border-color: var(--rule);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-logo {
  width: 40px; height: 40px; flex: none;
  object-fit: contain;
}
.site-footer .brand-logo { width: 34px; height: 34px; }
.brand-name { font-size: 1.02rem; font-weight: 300; letter-spacing: .04em; color: var(--paper); }

.menu { display: flex; align-items: center; gap: clamp(1.2rem, 2.6vw, 2.2rem); }
.menu a {
  position: relative;
  font-size: .66rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--dim);
  padding: .4rem 0;
  transition: color .25s;
}
.menu a:hover, .menu a:focus-visible { color: var(--paper); }
.menu a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .45s var(--ease);
}
.menu a:hover::after, .menu a:focus-visible::after { transform: scaleX(1); }

/* Toolkit dropdown */
.menu li { position: relative; }
.caret {
  display: inline-block;
  margin-left: .45rem;
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .65;
  vertical-align: 1px;
  transition: transform .3s var(--ease);
}
.has-sub:hover > a .caret, .has-sub:focus-within > a .caret,
.menu-item-has-children:hover > a .caret, .menu-item-has-children:focus-within > a .caret,
.menu li.open > a .caret { transform: rotate(180deg); }
.sub-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  min-width: 176px;
  padding: .55rem;
  border-radius: 14px;
  background: rgba(10,11,15,.86);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--glass-brd);
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  display: grid; gap: .1rem;
  opacity: 0; visibility: hidden;
  transform: translate3d(-50%, 8px, 0);
  transition: opacity .25s, transform .3s var(--ease), visibility 0s .25s;
  z-index: 110;
}
.sub-menu::before {
  content: "";
  position: absolute;
  top: -18px; left: 0; right: 0; height: 18px;   /* hover bridge */
}
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu,
.menu-item-has-children:hover > .sub-menu, .menu-item-has-children:focus-within > .sub-menu,
.menu li.open > .sub-menu {
  opacity: 1; visibility: visible;
  transform: translate3d(-50%, 0, 0);
  transition: opacity .25s, transform .3s var(--ease);
}
.sub-menu a {
  display: block;
  padding: .6rem .85rem;
  border-radius: 9px;
  white-space: nowrap;
}
.sub-menu a::after { content: none; }
.sub-menu a:hover, .sub-menu a:focus-visible { background: rgba(242,239,232,.06); }

.nav-toggle { display: none; }

/* ------------------------------------------------------------
   8. BUTTONS AND THE ANAMORPHIC FLARE SWEEP
   Any element carrying [data-flare] gets the horizontal streak:
   amber body, cool blue core, hardware accelerated only.
------------------------------------------------------------ */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 2.1rem;
  font-size: .64rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  border-radius: 999px;
  transition: transform .35s var(--ease), background .25s, border-color .25s, color .25s;
  will-change: transform;
}
.btn-solid { background: var(--brass); color: var(--ink); }
.btn-solid:hover { background: var(--brass-hi); }
.btn-line {
  color: var(--paper);
  background: var(--glass-card);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-line:hover { border-color: var(--brass-m); }

[data-flare] { position: relative; overflow: hidden; }
[data-flare]::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0; width: 42%;
  background: linear-gradient(100deg,
    transparent 0%, rgba(232,196,42,.15) 35%, var(--coolstreak) 50%,
    rgba(232,196,42,.15) 65%, transparent 100%);
  transform: translate3d(-130%, 0, 0) skewX(-14deg);
  pointer-events: none;
}
[data-flare]:hover::after,
[data-flare]:focus-visible::after {
  animation: bs-flare .75s var(--ease) forwards;
}
@keyframes bs-flare {
  to { transform: translate3d(330%, 0, 0) skewX(-14deg); }
}

/* ------------------------------------------------------------
   9. HERO
------------------------------------------------------------ */
.hero {
  min-height: 100svh;
  display: grid; place-items: center;
  text-align: center;
}
.hero-inner {
  max-width: 900px;
  padding: calc(var(--nav-h) + 5rem) 1.4rem 5rem;
}
.h-title { font-size: var(--fs-hero); letter-spacing: -.015em; }
.h-title .line { display: block; }
.h-title .line-b {
  background: linear-gradient(95deg, var(--brass-hi), #f0e2ac 55%, var(--brass));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h-rule {
  width: 64px; height: 1px;
  margin: 2.1rem auto;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}
.h-sub { max-width: 580px; margin-inline: auto; color: var(--dim); font-size: 1.05rem; line-height: 1.85; }
.h-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.6rem; }

/* ------------------------------------------------------------
   10. CLIENT MARQUEE
   Track is duplicated once by motion.js; the -50% translate3d
   loop is therefore seamless and fully on the compositor.
------------------------------------------------------------ */
.clients { padding: 3.5rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.clients .s-tag { display: block; text-align: center; margin-bottom: 2rem; }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center;
  width: max-content;
  gap: 3.6rem;
  animation: bs-marquee var(--marquee-dur) linear infinite;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes bs-marquee { to { transform: translate3d(-50%, 0, 0); } }

.cli {
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  font-weight: 100;
  letter-spacing: .05em;
  color: var(--dim);
  white-space: nowrap;
  transition: color .3s;
}
.cli:hover { color: var(--paper); }
.cli-dot { width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--brass-m); }

/* ------------------------------------------------------------
   11. CARDS (services and projects)
------------------------------------------------------------ */
.card {
  border-radius: 20px;
  padding: 2.3rem 2.1rem;
  display: flex; flex-direction: column; gap: 1.1rem;
  transition: transform .5s var(--ease), border-color .35s;
  will-change: transform;
}
.card:hover {
  transform: translate3d(0, -5px, 0) scaleX(1.012);   /* the anamorphic breath */
  border-color: var(--brass-m);
}
.card-mark {
  width: 15px; height: 15px;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4px var(--brass-lo);
}
.card h3 { font-size: 1.35rem; font-weight: 300; letter-spacing: .01em; }
.card h3 a { transition: color .25s; }
.card h3 a:hover { color: var(--brass-hi); }
.card-date {
  font-size: .58rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--faint);
}
.card p { color: var(--dim); font-size: .95rem; }
.card-link {
  margin-top: auto;
  font-size: .62rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass);
  transition: color .25s;
}
.card-link:hover { color: var(--brass-hi); }

/* Project media frame: fixed ratio kills layout shift */
.card-media {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  margin: -0.6rem -0.4rem 0.4rem;
  background: linear-gradient(140deg, var(--ink-2), #171a22 55%, var(--ink-2));
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale3d(1.05, 1.05, 1); }
.card-media-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
}
.card-media-ph::before {
  content: "";
  width: 54px; height: 54px;
  border: 1px solid var(--brass-m);
  border-radius: 50%;
  box-shadow: inset 0 0 0 10px var(--ink), inset 0 0 0 11px var(--brass-lo), 0 0 34px var(--brass-lo);
}

/* ------------------------------------------------------------
   12. APPROACH (vision) SECTION
------------------------------------------------------------ */
.vision-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.vision-frame {
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}
.vision-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-img { object-position: 62% 50%; }
.vision-ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(60% 50% at 70% 20%, rgba(232,196,42,.10), transparent 70%),
    linear-gradient(160deg, var(--ink-2), #14161d);
}
.vision-ph::before {
  content: "";
  width: 42%; aspect-ratio: 1;
  border: 1px solid var(--brass-m);
  border-radius: 50%;
  box-shadow: inset 0 0 0 18px var(--ink), inset 0 0 0 19px var(--brass-lo), 0 0 60px var(--brass-lo);
}
.vision-copy p { color: var(--dim); margin-bottom: 1.2rem; }
.vision-copy .btn { margin-top: .8rem; }

/* ------------------------------------------------------------
   13. CONTACT
------------------------------------------------------------ */
.contact { text-align: center; }
.contact .lead { margin: 1.1rem auto 2.4rem; }
.contact-meta {
  margin-top: 2.6rem;
  display: flex; gap: 2.4rem; justify-content: center; flex-wrap: wrap;
  font-size: .86rem; color: var(--faint);
}
.contact-meta a { color: var(--dim); transition: color .25s; }
.contact-meta a:hover { color: var(--brass-hi); }

/* ------------------------------------------------------------
   14. FOOTER
------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 3.6rem 0 2.4rem;
  font-size: .84rem; color: var(--faint);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.4rem;
  margin-bottom: 2.6rem;
}
.footer-grid h4 {
  font-size: .6rem; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--brass); margin-bottom: .9rem;
}
.footer-grid a:hover { color: var(--paper); }
.socials { display: grid; gap: .3rem; }

/* ------------------------------------------------------------
   14b. INNER PAGES AND ESSAYS
   Reading templates: page.php and single.php. Prose is capped
   at 68 characters so the long form actually reads.
------------------------------------------------------------ */
.section--first { padding-top: calc(var(--nav-h) + clamp(4rem, 8vw, 6rem)); }

.entry { max-width: 68ch; }
.entry p { color: rgba(242,239,232,.82); margin-bottom: 1.3rem; }
.entry h2, .entry h3 { margin: 2.4rem 0 1rem; }
.entry a { color: var(--brass-hi); }
.entry a:hover { text-decoration: underline; }
.entry img { border-radius: 14px; margin: 1.8rem 0; }
.entry blockquote {
  border-left: 2px solid var(--brass-m);
  padding-left: 1.3rem;
  margin: 1.8rem 0;
  font-style: italic;
  color: var(--dim);
}
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry ul, .entry ol { padding-left: 1.3rem; margin-bottom: 1.3rem; color: rgba(242,239,232,.82); }
.footer-tagline { color: var(--dim); margin-top: .6rem; max-width: 30ch; }
.footer-legal {
  border-top: 1px solid var(--glass-brd);
  padding-top: 1.6rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .74rem;
}
.footer-legal-nav { display: flex; gap: 1.2rem; }
.footer-legal-nav a { color: var(--dim); }
.footer-legal-nav a:hover { color: var(--brass-hi); }

/* ------------------------------------------------------------
   14c. WHAT OTHERS SAY
------------------------------------------------------------ */
.quote-card { gap: .8rem; }
.quote-mark {
  font-size: 3rem; line-height: .6;
  font-weight: 100;
  color: var(--brass-hi);
}
.quote-card blockquote {
  font-size: 1.02rem; font-weight: 300;
  line-height: 1.7;
  color: rgba(242,239,232,.86);
}
.quote-card figcaption {
  margin-top: auto;
  display: grid; gap: .15rem;
  font-size: .78rem; color: var(--dim);
}
.quote-card figcaption b { font-weight: 700; color: var(--paper); }

/* ------------------------------------------------------------
   14d. CONTACT ZONE
   Local fluid lighting: two counter drifting radials on the
   compositor, plus glass social action buttons.
------------------------------------------------------------ */
.contact { overflow: hidden; }
.contact-glow {
  position: absolute; inset: -20% -10%;
  pointer-events: none;
  z-index: 0;
}
.contact-glow::before, .contact-glow::after {
  content: "";
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 780px; max-height: 780px;
  border-radius: 50%;
  will-change: transform, opacity;
}
.contact-glow::before {
  left: 4%; top: 8%;
  background: radial-gradient(circle, rgba(181,153,58,.16), transparent 68%);
  animation: bs-cglow-a 16s ease-in-out infinite alternate;
}
.contact-glow::after {
  right: 2%; bottom: -6%;
  background: radial-gradient(circle, rgba(122,150,208,.10), transparent 70%);
  animation: bs-cglow-b 21s ease-in-out infinite alternate;
}
@keyframes bs-cglow-a {
  from { transform: translate3d(0, 0, 0) scale(1);      opacity: .7; }
  to   { transform: translate3d(6%, 8%, 0) scale(1.12); opacity: 1;  }
}
@keyframes bs-cglow-b {
  from { transform: translate3d(0, 0, 0) scale(1.1);     opacity: .9; }
  to   { transform: translate3d(-7%, -6%, 0) scale(1);   opacity: .6; }
}
.contact .wrap { position: relative; z-index: 1; }
.contact .lead { max-width: 46ch; }

.contact-socials {
  margin-top: 2.2rem;
  display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap;
}
.soc-btn {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--dim);
  transition: color .25s, border-color .25s, transform .35s var(--ease);
  will-change: transform;
}
.soc-btn:hover, .soc-btn:focus-visible {
  color: var(--brass-hi);
  border-color: var(--brass-m);
  transform: translate3d(0, -3px, 0);
}

/* ------------------------------------------------------------
   17. TOOLKIT: the coverage calculator
------------------------------------------------------------ */
.tk-app {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) 1.4fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  border-radius: 22px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
.tk-pane--in { display: grid; gap: 1.15rem; align-content: start; }

.tk-field { display: grid; gap: .5rem; }
.tk-label {
  font-size: .58rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--dim);
  display: flex; justify-content: space-between; align-items: baseline; gap: .8rem;
}
.tk-label b { color: var(--brass-hi); font-size: .68rem; letter-spacing: .1em; }
.tk-cfnote { display: block; margin-top: .3rem; font-size: .7rem; line-height: 1.45; color: var(--faint); }

.tk-select {
  appearance: none;
  padding: .7rem .9rem;
  border-radius: 10px;
  background: rgba(10,10,14,.6);
  border: 1px solid var(--glass-brd);
  color: var(--paper);
  font-size: .85rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%),
                    linear-gradient(135deg, var(--brass) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.tk-select:focus-visible { border-color: var(--brass-m); }
.tk-select optgroup, .tk-select option { background: #101218; color: var(--paper); }

.tk-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brass) var(--fill, 50%), rgba(242,239,232,.14) var(--fill, 50%));
  outline: none;
}
.tk-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--brass-hi);
  box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px var(--brass-m), 0 0 14px var(--brass-lo);
  cursor: pointer;
}
.tk-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--brass-hi);
  box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px var(--brass-m), 0 0 14px var(--brass-lo);
  cursor: pointer;
}
.tk-range:disabled { opacity: .45; }
.tk-range:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 6px; }
.tk-check {
  display: flex; gap: .6rem; align-items: flex-start;
  color: var(--dim); font-size: .84rem; line-height: 1.55;
  cursor: pointer;
}
.tk-check input { margin-top: .25rem; accent-color: var(--brass); flex: 0 0 auto; }
.card--featured {
  border-color: var(--brass-m);
  box-shadow: inset 0 0 0 1px var(--brass-lo), 0 18px 50px rgba(0,0,0,.35);
}
.card--featured .card-date { color: var(--brass-hi); }

.tk-canvas-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(181,153,58,.05), transparent 70%),
    rgba(8,8,11,.55);
  border: 1px solid var(--glass-brd);
}
.tk-canvas-frame canvas { display: block; width: 100%; }
.tk-verdict {
  position: absolute; top: 12px; right: 12px;
  padding: .4rem .8rem;
  border-radius: 999px;
  font-size: .58rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid transparent;
}
.tk-verdict--ok   { color: #9fd7a0; border-color: rgba(120,200,130,.35); background: rgba(60,140,80,.12); }
.tk-verdict--edge { color: var(--brass-hi); border-color: var(--brass-m); background: var(--brass-lo); }
.tk-verdict--out  { color: #e08a7a; border-color: rgba(210,110,90,.4); background: rgba(180,70,50,.12); }

.tk-readouts {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem 1.2rem;
}
.tk-readouts div {
  padding: .8rem .9rem;
  border-radius: 12px;
  background: rgba(10,10,14,.45);
  border: 1px solid var(--glass-brd);
}
.tk-readouts dt {
  font-size: .54rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim);
  margin-bottom: .3rem;
}
.tk-readouts dd { font-size: .98rem; font-weight: 300; color: var(--paper); }
.tk-soon { color: var(--faint); cursor: default; }
.tk-live {
  margin-top: 1.4rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.8rem; flex-wrap: wrap;
  padding: 1.9rem 2.1rem;
  border-radius: 20px;
  border-color: var(--brass-m);
}
.tk-live-copy { max-width: 56ch; display: grid; gap: .55rem; }
.tk-live h3 { font-size: 1.35rem; font-weight: 300; }
.tk-live p { color: var(--dim); font-size: .95rem; }
.tk-live-k { color: #9fd7a0; }
.tk-note {
  margin-top: 1.6rem;
  font-size: .78rem; color: var(--faint);
  max-width: 74ch;
}

/* ------------------------------------------------------------
   18. RAYFLOW: splash and assistant badge
------------------------------------------------------------ */
.rf-splash {
  position: relative;
  min-height: 100svh;
  display: block;
  text-align: center;
  overflow: hidden;
}
.rf-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.rf-stage {
  position: absolute;
  left: 50%; top: 57%;
  /* Enlarged 15% about the D8 diaphragm crossing, which the ray
     keyframes in rayflow.js place at 75.85% of the stage width on
     the optical axis (50% height). With the scale origin pinned
     there, that point is the fixed point of the transform: the
     convergence stays put on screen while the drawing grows, and
     the ray tracer re-reads the scaled rect on its next build. */
  transform-origin: 75.85% 50%;
  transform: translate(-50%, -50%) scale(1.15);
  width: min(1180px, 96vw, calc(70vh * 1.065));
  aspect-ratio: 1200 / 1127;
  z-index: 0;
  pointer-events: none;
}
.rf-patent {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: .16;
  filter: drop-shadow(0 0 22px rgba(150,190,255,.10));
}
.rf-inner {
  position: relative; z-index: 1;
  min-height: 100svh;
  max-width: 640px;
  margin-inline: auto;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  padding: calc(var(--nav-h) + 0.8rem) 1.4rem 2.4rem;
}
.rf-logo {
  width: min(120px, 32vw); height: auto;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid rgba(205,222,255,.14);
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 40px rgba(60,110,220,.10);
  flex: 0 0 auto;
}
.rf-foot { margin-top: auto; }
.rf-copy {
  margin: 0 auto 2.2rem;
  max-width: 46ch;
  color: var(--dim);
  font-size: 1.02rem; line-height: 1.8;
}

.rf-agent { position: fixed; right: 18px; bottom: 18px; z-index: 150; }
.rf-badge {
  width: 60px; height: 60px;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: transform .35s var(--ease), border-color .25s;
  will-change: transform;
}
.rf-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rf-badge:hover { transform: translate3d(0, -3px, 0) scale(1.05); border-color: rgba(205,222,255,.3); }

.rf-panel {
  position: absolute; right: 0; bottom: 72px;
  width: min(320px, calc(100vw - 36px));
  border-radius: 18px;
  overflow: hidden;
  transform: translate3d(0, 8px, 0) scale(.92);
  transform-origin: bottom right;
  opacity: 0;
  transition: transform .32s var(--ease), opacity .28s;
  will-change: transform, opacity;
}
.rf-panel.open { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
.rf-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: .85rem 1.1rem;
  font-size: .62rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass);
  border-bottom: 1px solid var(--glass-brd);
}
.rf-min {
  cursor: pointer;
  color: var(--dim);
  font-size: 1.1rem; line-height: 1;
  padding: .2rem .4rem;
}
.rf-min:hover { color: var(--paper); }
.rf-panel-body { padding: 1.1rem; font-size: .88rem; color: rgba(242,239,232,.82); }
.rf-panel-foot { padding: 0 1.1rem 1.1rem; }
.rf-panel-foot input {
  width: 100%;
  padding: .7rem .9rem;
  border-radius: 10px;
  background: rgba(10,10,14,.6);
  border: 1px solid var(--glass-brd);
  color: var(--faint);
  font-size: .84rem;
}
.menu a.menu-rayflow { color: rgba(150,185,255,.75); }
.menu a.menu-rayflow:hover { color: #cfe0ff; }

/* ------------------------------------------------------------
   19. GLOSSARY
------------------------------------------------------------ */
.bso-term {
  color: inherit;
  border-bottom: 1px dotted var(--brass);
  position: relative;
  cursor: help;
}
.bso-term:hover { color: var(--brass-hi); }
.bso-term::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%; bottom: 135%;
  transform: translate3d(-50%, 4px, 0);
  width: max-content; max-width: 250px;
  padding: .6rem .8rem;
  border-radius: 10px;
  background: rgba(12,13,17,.92);
  border: 1px solid var(--glass-brd);
  color: var(--paper);
  font-size: .74rem; font-style: normal; line-height: 1.5;
  text-align: left; white-space: normal;
  opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .25s var(--ease);
  pointer-events: none;
  z-index: 40;
}
.bso-term:hover::after, .bso-term:focus-visible::after {
  opacity: 1; visibility: visible;
  transform: translate3d(-50%, 0, 0);
}

.glossary-index { display: grid; gap: 2.6rem; }
.g-group {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--rule);
}
.g-letter {
  font-size: 2rem; font-weight: 100;
  color: var(--brass-hi);
}
.g-list { display: grid; gap: .9rem; }
.g-list a { font-size: 1.05rem; font-weight: 300; color: var(--paper); }
.g-list a:hover { color: var(--brass-hi); }
.g-tip { display: block; font-size: .82rem; color: var(--dim); margin-top: .15rem; }

/* ------------------------------------------------------------
   20. DISCREET SOCIAL BUTTONS
------------------------------------------------------------ */
.socials--icons { display: flex; gap: .55rem; }
.soc-mini {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--dim);
  transition: color .25s, border-color .25s, transform .3s var(--ease);
}
.soc-mini svg { width: 15px; height: 15px; }
.soc-mini:hover, .soc-mini:focus-visible {
  color: var(--brass-hi);
  border-color: var(--brass-m);
  transform: translate3d(0, -2px, 0);
}

/* ------------------------------------------------------------
   21. COMMUNITY: contribute a lens
------------------------------------------------------------ */
.cm-form {
  display: grid;
  gap: 1.15rem;
  border-radius: 22px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 720px;
}
.cm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.cm-input, .cm-textarea {
  width: 100%;
  padding: .75rem .95rem;
  border-radius: 10px;
  background: rgba(10,10,14,.6);
  border: 1px solid var(--glass-brd);
  color: var(--paper);
  font-size: .9rem;
}
.cm-input:focus-visible, .cm-textarea:focus-visible { border-color: var(--brass-m); outline: none; }
.cm-file { font-size: .82rem; color: var(--dim); }
.cm-file::file-selector-button {
  margin-right: .9rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--glass-brd);
  background: rgba(16,17,23,.6);
  color: var(--paper);
  font: 700 .58rem/1 var(--f);
  letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer;
}
.cm-check {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .84rem; color: var(--dim);
}
.cm-check input { margin-top: .25rem; accent-color: var(--brass); }
.cm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cm-note {
  border-radius: 14px;
  padding: 1rem 1.3rem;
  font-size: .9rem;
  margin-bottom: 1.6rem;
  border: 1px solid;
}
.cm-note--ok  { color: #9fd7a0; border-color: rgba(120,200,130,.35); background: rgba(60,140,80,.10); }
.cm-note--err { color: #e08a7a; border-color: rgba(210,110,90,.4);  background: rgba(180,70,50,.10); }
.cm-meta { font-size: .78rem; color: var(--faint); max-width: 62ch; }

/* ------------------------------------------------------------
   15. RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .vision-grid { grid-template-columns: 1fr; }
  .vision-frame { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .tk-app { grid-template-columns: 1fr; }
  .tk-readouts { grid-template-columns: repeat(2, 1fr); }
  .g-group { grid-template-columns: 1fr; gap: .6rem; }
}

@media (max-width: 840px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    padding: .6rem .2rem;
    position: relative;
    z-index: 210;
  }
  .nav-toggle span {
    width: 22px; height: 1.5px;
    background: var(--paper);
    transition: transform .35s var(--ease), opacity .25s;
  }
  .nav-toggle.open span:first-child { transform: translate3d(0, 3.2px, 0) rotate(45deg); }
  .nav-toggle.open span:last-child  { transform: translate3d(0, -3.2px, 0) rotate(-45deg); }

  /* Full screen menu, solid and above everything including the nav */
  .menu {
    position: fixed; inset: 0;
    width: 100%; height: 100dvh;
    margin: 0; padding: calc(var(--nav-h) + 2rem) 1.4rem 3rem;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 1.6rem;
    background: #08090c;
    opacity: 0; visibility: hidden;
    transform: translate3d(0, 0, 0);
    transition: opacity .32s var(--ease), visibility 0s .32s;
    z-index: 200;
    overflow-y: auto;
  }
  .menu.open {
    opacity: 1; visibility: visible;
    transition: opacity .32s var(--ease);
  }
  .menu > li { width: 100%; text-align: center; }
  .menu > li > a {
    display: inline-block;
    font-size: 1.15rem; font-weight: 300;
    letter-spacing: .16em;
    color: var(--paper);
    padding: .5rem 0;
  }
  .menu a::after { content: none; }

  /* Dropdown children shown inline, always open, indented under Toolkit */
  .sub-menu {
    position: static;
    transform: none;
    min-width: 0;
    opacity: 1; visibility: visible;
    background: transparent;
    border: none; box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: .6rem 0 .2rem;
    margin: 0;
    gap: .2rem;
    text-align: center;
  }
  .sub-menu::before { content: none; }
  .sub-menu a {
    font-size: .7rem; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--dim);
    padding: .5rem;
  }
  .sub-menu a.menu-rayflow { color: rgba(150,185,255,.8); }
  .caret { display: none; }

  .cm-row { grid-template-columns: 1fr; }
  .tk-readouts { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------
   16. REDUCED MOTION
------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow::before, .light-blade, .marquee-track,
  .contact-glow::before, .contact-glow::after { animation: none; }
  .reveal, .reveal-l { opacity: 1; transform: none; transition: none; }
  [data-flare]::after { display: none; }
  .card, .card-media img, .btn, .soc-btn, .rf-badge, .rf-panel { transition: none; }
}


/* ------------------------------------------------------------
   30. V3: calculator datasheet, pairing engine, remediation
------------------------------------------------------------ */
.tk-match { margin: .9rem 0 0; font-size: .82rem; color: var(--brass-hi); letter-spacing: .02em; }
.tk-macro-note {
  margin: .6rem 0 0;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--dim);
}

.tk-aov-info {
  margin-top: 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-brd);
  background: rgba(242,239,232,.03);
}
.tk-aov-info summary {
  cursor: pointer;
  list-style: none;
  padding: .75rem 1rem;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--dim);
  display: flex; align-items: center; gap: .6rem;
}
.tk-aov-info summary::-webkit-details-marker { display: none; }
.tk-aov-info summary::before {
  content: "";
  width: 0; height: 0;
  border-left: 4px solid var(--brass-hi);
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  transition: transform .25s var(--ease);
  flex: 0 0 auto;
}
.tk-aov-info[open] summary::before { transform: rotate(90deg); }
.tk-aov-info summary:hover { color: var(--paper); }
.tk-aov-info #tk-aov-info-body {
  padding: 0 1.1rem 1.1rem;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--faint);
}
.tk-aov-info #tk-aov-info-body p { margin: 0 0 .8rem; }
.tk-aov-info #tk-aov-info-body p:last-child { margin-bottom: 0; }
.tk-pair, .tk-fix {
  margin-top: 1.4rem;
  border-radius: 14px;
  padding: 1rem 1.3rem;
  font-size: .9rem;
  line-height: 1.55;
  border: 1px solid rgba(181,153,58,.4);
  background: rgba(181,153,58,.08);
  color: var(--paper);
}
.tk-fix { border-color: rgba(232,150,60,.45); background: rgba(200,110,40,.10); }
.tk-card { margin-top: 1.4rem; border-radius: 20px; padding: clamp(1.3rem, 2.4vw, 2rem); }
.tkc-empty { color: var(--dim); font-size: .9rem; }
.tkc-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; }
.tkc-brand { display: block; font: 700 .58rem/1 var(--f); letter-spacing: .22em; text-transform: uppercase; color: var(--brass-hi); margin-bottom: .35rem; }
.tkc-name { font-weight: 300; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.tkc-sub { color: var(--faint); font-size: .78rem; }
.tkc-badges { display: flex; gap: .4rem; flex-shrink: 0; }
.tkc-badge {
  font: 700 .54rem/1 var(--f); letter-spacing: .16em; text-transform: uppercase;
  padding: .42rem .6rem; border-radius: 999px;
  border: 1px solid var(--glass-brd); color: var(--dim);
}
.tkc-badge--ok { color: #9fd7a0; border-color: rgba(120,200,130,.4); }
.tkc-badge--cm { color: var(--brass-hi); border-color: var(--brass-m); }
.tkc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .85rem 1.1rem; margin-bottom: 1.2rem; }
.tkc-grid dt { font: 700 .55rem/1 var(--f); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: .3rem; }
.tkc-grid dd { font-size: .95rem; color: var(--paper); }
.tkc-grid small { color: var(--dim); font-size: .72rem; }
.tkc-layout { font-size: .88rem; color: var(--dim); margin-bottom: 1.1rem; }
.tkc-layout strong { color: var(--paper); font-weight: 600; }
.tkc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.tkc-cols h4 { font: 700 .58rem/1 var(--f); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-hi); margin-bottom: .6rem; }
.tkc-cols ul { list-style: none; }
.tkc-cols li { position: relative; padding-left: 1rem; font-size: .85rem; color: var(--dim); margin-bottom: .45rem; line-height: 1.5; }
.tkc-cols li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 1.5px; background: var(--brass); }
.tkc-asset { margin-top: 1.1rem; font-size: .72rem; color: var(--faint); }
.tkc-asset code { color: var(--dim); }
.tk-actions { margin-top: 1.2rem; }

/* Sticky Instagram loop bar on calculator and landing pages */
.tk-ig {
  position: fixed; left: 50%; bottom: 14px;
  transform: translate3d(-50%, 0, 0);
  z-index: 140;
  max-width: min(92vw, 640px);
  padding: .75rem 1.3rem;
  border-radius: 999px;
  font: 700 .6rem/1.4 var(--f);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-hi); text-align: center;
}
.tk-ig:hover { color: var(--amber); }

/* Mobile menu: closed overlay can never intercept taps */
@media (max-width: 840px) {
  .menu { pointer-events: none; }
  .menu.open { pointer-events: auto; }
  .tkc-cols { grid-template-columns: 1fr; }
  .tkc-head { flex-direction: column; }
}

/* ============================================================
   15. v3.5.0 additions
   Brass inline accent, header shop link, infographics gallery
   and lightbox, solo journal feature, protected media, and the
   invisible watermark host.
   ============================================================ */

/* Brass inline word, for "The" Calculator and other accents */
.brass {
  color: var(--brass-hi);
  font-style: italic;
}

/* ---- Header Bokehshop link ---- */
.shop-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-left: 1.4rem;
  padding: .42rem .9rem;
  border: 1px solid var(--brass-m);
  border-radius: 999px;
  color: var(--brass-hi);
  font-size: .92rem;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.shop-link:hover {
  border-color: var(--brass);
  background: var(--brass-lo);
  transform: translateY(-1px);
}
.shop-bag { color: currentColor; flex: 0 0 auto; }
.shop-word { font-weight: 600; }
@media (max-width: 720px) {
  .shop-link { margin-left: auto; padding: .4rem .7rem; }
  .shop-word { display: none; }          /* bag only on the tightest screens */
}

/* ---- Solo journal feature (launch mode, one stuck post) ---- */
.grid-3--solo { grid-template-columns: minmax(0, 720px); justify-content: center; }
.grid-3--solo .card--featured .card-media img,
.grid-3--solo .card--featured .card-media-ph { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* ---- Infographics gallery ---- */
.infographics-page .ig-grid-wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.4rem 4rem; }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ig-grid { grid-template-columns: 1fr; } }

.ig-card {
  background: var(--panel, rgba(255,255,255,.02));
  border: 1px solid var(--glass-brd);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ig-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0b0b0d;
  cursor: zoom-in;
  line-height: 0;
}
.ig-thumb {
  width: 100%;
  height: 320px;
  object-fit: cover;            /* show the top of the tall plate as a teaser */
  object-position: top center;
  display: block;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.ig-open:hover .ig-thumb { transform: scale(1.03); }
.ig-zoom {
  position: absolute; right: .8rem; bottom: .8rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(12,12,14,.7);
  border: 1px solid var(--brass-m);
}
.ig-zoom::before, .ig-zoom::after {
  content: ""; position: absolute; background: var(--brass-hi);
}
.ig-zoom::before { left: 9px; right: 9px; top: 16px; height: 2px; }
.ig-zoom::after  { top: 9px; bottom: 9px; left: 16px; width: 2px; }
.ig-cap { padding: 1rem 1.1rem 1.2rem; }
.ig-name { font-size: 1.05rem; margin: 0 0 .3rem; }
.ig-blurb { font-size: .86rem; color: var(--dim); margin: 0; line-height: 1.5; }

/* ---- Lightbox ---- */
.ig-lightbox {
  position: fixed; inset: 0; z-index: 3000;
  display: none;
  align-items: flex-start; justify-content: center;
  background: rgba(6,6,8,.92);
  overflow: auto;
  padding: 3vh 2vw;
}
.ig-lightbox.is-open { display: flex; }
.ig-lb-figure { margin: 0; max-width: 1000px; width: 100%; }
.ig-lb-img { width: 100%; height: auto; display: block; border-radius: 8px; }
.ig-lb-close {
  position: fixed; top: 1.2rem; right: 1.4rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(20,20,24,.8); border: 1px solid var(--brass-m);
  cursor: pointer; z-index: 3001;
}
.ig-lb-close::before, .ig-lb-close::after {
  content: ""; position: absolute; top: 20px; left: 11px; width: 20px; height: 2px;
  background: var(--brass-hi);
}
.ig-lb-close::before { transform: rotate(45deg); }
.ig-lb-close::after  { transform: rotate(-45deg); }

/* ---- Protected media: no selection, no native drag ---- */
.bso-protected, .ig-thumb, .ig-lb-img {
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
/* The watermark host is painted by protect.js; keep it out of print. */
@media print { #bso-wm { display: block !important; } }

/* ------------------------------------------------------------
   22. THE CODEX: the lens record
------------------------------------------------------------ */
.cdx-grid {
  display: grid;
  grid-template-columns: 1.6fr minmax(280px, .9fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
}
.cdx-main, .cdx-side { border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.cdx-side { position: sticky; top: 90px; display: grid; gap: 1rem; }
.cdx-h {
  font-size: .62rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass-hi);
  margin: 1.6rem 0 .8rem;
}
.cdx-main .cdx-h:first-child, .cdx-side .cdx-h:first-child { margin-top: 0; }
.cdx-badges { display: inline-flex; gap: .4rem; margin-left: .5rem; vertical-align: middle; }
.cdx-sources { list-style: none; display: grid; gap: .35rem; font-size: .78rem; color: var(--dim); }
.cdx-sources li::before { content: '\2014 '; color: var(--brass); }
.cdx-actions { margin-top: 1.8rem; }
.cdx-form { display: grid; gap: 1.1rem; }
.cdx-textarea { resize: vertical; min-height: 4.2rem; font-family: inherit; background-image: none; }
.cdx-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.cdx-ok { color: #9fd7a0; font-size: .85rem; }
.cdx-err { color: #d7a09f; font-size: .85rem; }
.cdx-hint { font-size: .78rem; color: var(--faint); line-height: 1.55; }
.cdx-search { border-radius: 18px; padding: 1.2rem 1.4rem; margin-bottom: 2rem; }
.cdx-brand { margin-bottom: 1.8rem; }
.cdx-brandname small { color: var(--faint); font-weight: 400; letter-spacing: 0; margin-left: .4rem; }
.cdx-list {
  list-style: none;
  columns: 3 260px;
  column-gap: 2rem;
}
.cdx-list li { break-inside: avoid; margin-bottom: .4rem; }
.cdx-list a {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .35rem .5rem; border-radius: 8px;
  font-size: .85rem; text-decoration: none; color: var(--paper);
}
.cdx-list a:hover { background: rgba(181,153,58,.08); }
.cdx-lensname { min-width: 0; }
.cdx-meta { color: var(--faint); font-size: .72rem; white-space: nowrap; }
.tkc-codex { margin-top: 1rem; font-size: .8rem; }
.tkc-codex a { color: var(--brass-hi); }

/* ------------------------------------------------------------
   23. THE METER: light, data and daylight
------------------------------------------------------------ */
.mt-app { border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.4rem); }
.mt-tabs {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--glass-brd);
  padding-bottom: 1rem;
}
.mt-tab {
  appearance: none; cursor: pointer;
  background: rgba(10,10,14,.6);
  border: 1px solid var(--glass-brd);
  color: var(--dim);
  border-radius: 10px;
  padding: .55rem 1.2rem;
  font-size: .62rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  transition: color .25s, border-color .25s, background .25s;
}
.mt-tab:hover { color: var(--paper); }
.mt-tab.is-on { color: var(--brass-hi); border-color: var(--brass); background: rgba(181,153,58,.1); }
.mt-pane { display: none; }
.mt-pane.is-on {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) 1.4fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.mt-head { display: grid; gap: .2rem; margin-bottom: 1.4rem; }
.mt-headline {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 300; color: var(--brass-hi);
  line-height: 1;
}
.mt-headsub {
  font-size: .62rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--dim);
}
@media (max-width: 980px) {
  .cdx-grid { grid-template-columns: 1fr; }
  .cdx-side { position: static; }
  .mt-pane.is-on { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   24. CALCULATOR: aperture toggle and the scene view
------------------------------------------------------------ */
.tk-seg {
  display: inline-flex; gap: 2px; margin-left: .5rem;
  border: 1px solid var(--glass-brd); border-radius: 7px;
  overflow: hidden; vertical-align: middle;
}
.tk-seg-btn {
  appearance: none; cursor: pointer;
  background: rgba(10,10,14,.6); border: 0;
  color: var(--dim);
  padding: .12rem .5rem;
  font-size: .64rem; font-weight: 700; letter-spacing: .1em;
  font-family: inherit; line-height: 1.5;
  transition: color .2s, background .2s;
}
.tk-seg-btn:hover { color: var(--paper); }
.tk-seg-btn.is-on { color: var(--brass-hi); background: rgba(181,153,58,.16); }
.tk-scene-frame {
  position: relative; margin-top: 1rem;
  border: 1px solid var(--glass-brd); border-radius: 14px;
  background: rgba(8,8,11,.55);
  padding: .6rem .6rem .5rem;
}
#tk-scene { display: block; width: 100%; height: 300px; }
.tk-scene-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem;
  padding: .5rem .3rem 0;
  border-top: 1px solid var(--glass-brd); margin-top: .4rem;
}
.tk-lg {
  font-size: .58rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); display: inline-flex; align-items: center; gap: .35rem;
}
.tk-lg::before {
  content: ''; width: 14px; height: 3px; border-radius: 2px; display: inline-block;
}
.tk-lg--dof::before { background: rgba(181,153,58,.85); }
.tk-lg--aov::before { background: rgba(232,196,42,.5); }
.tk-lg--hyp::before { background: rgba(120,190,220,.8); }
.tk-scene-btn {
  margin-left: auto; appearance: none; cursor: pointer;
  background: rgba(10,10,14,.6); border: 1px solid var(--glass-brd);
  color: var(--dim); border-radius: 8px; padding: .25rem .7rem;
  font-family: inherit; font-size: .58rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  transition: color .2s, border-color .2s;
}
.tk-scene-btn:hover { color: var(--brass-hi); border-color: var(--brass); }
@media (max-width: 620px) {
  #tk-scene { height: 340px; }
}

/* ------------------------------------------------------------
   25. INFOGRAPHIC READING VERSIONS
------------------------------------------------------------ */
.ig-read { max-width: 46rem; }
.ig-read h2 {
  font-size: .66rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass-hi); margin: 2.6rem 0 .4rem;
}
.ig-read h3 {
  font-size: 1.15rem; font-weight: 400;
  color: var(--paper); margin: 1.8rem 0 .5rem;
}
.ig-read h3 .ig-num {
  color: var(--brass); font-size: .8rem; margin-right: .5rem;
  letter-spacing: .1em;
}
.ig-read p { color: var(--dim); line-height: 1.75; margin-bottom: .9rem; }
.ig-read .ig-zone-blurb { color: var(--faint); font-style: italic; margin-bottom: 1.4rem; }
.ig-plate-link { margin: 2rem 0 3rem; }
.ig-read-nav {
  display: flex; flex-wrap: wrap; gap: .8rem;
  margin: 3rem 0 0; padding-top: 1.6rem;
  border-top: 1px solid var(--glass-brd);
}
.ig-read-list { list-style: none; columns: 2 240px; column-gap: 2rem; }
.ig-read-list li { break-inside: avoid; margin-bottom: .5rem; }
.ig-read-list a { color: var(--dim); font-size: .88rem; text-decoration: none; }
.ig-read-list a:hover { color: var(--brass-hi); }
.ig-readlink { margin-top: .6rem; }
.ig-readlink a {
  font-size: .6rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brass-hi); text-decoration: none;
  border-bottom: 1px solid rgba(181,153,58,.35); padding-bottom: 2px;
}
.ig-readlink a:hover { border-color: var(--brass-hi); }
