/* Holding pages (private investigations, surveillance, about, careers): compact night opener with the page's own
   photo in a tall torch-lit frame, then a "coming soon" mist band with link cards. Design plan: "Openers", holding.
   Markup classes: .hold-open > .hold-grid > .hold-copy + .hold-media (.hold-outline, .hold-frame, .hold-detail);
   .hold-soon > .soon-head + .link-cards.soon-cards. JS: holding.js. */

/* ---------- opener ---------- */
.hold-open {
  --mh: clamp(300px, 42svh, 440px);
  min-height: 58svh; display: flex; align-items: center;
  padding: calc(var(--head-h) + clamp(18px, 3vh, 34px)) 0 clamp(40px, 5.6vh, 60px);
}
.hold-open > .wrap { position: relative; }
.hold-rain { opacity: .5; }
.hold-lamp {
  position: absolute; z-index: -1; pointer-events: none; width: min(1100px, 90vw); aspect-ratio: 1; right: -18%; top: 50%;
  background: radial-gradient(circle, rgba(242,163,58,.22) 0%, rgba(242,163,58,.07) 34%, transparent 62%);
  transform: translateY(-50%); animation: hold-lamp 7s ease-in-out infinite alternate;
}
@keyframes hold-lamp { from { transform: translate(0, -50%) scale(.92); opacity: .75; } to { transform: translate(-4%, -46%) scale(1.06); opacity: 1; } }
.hold-open::after { /* soft floor so the band reads as one piece of night, not a flat fill */
  content: ""; position: absolute; inset: auto 0 0; height: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(4,9,13,.55), transparent);
}
.hold-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 5vw, 96px); align-items: center; }
.hold-copy h1 { font-size: clamp(2.4rem, 4.3vw, 4.4rem); margin-bottom: .3em; }
.hold-copy h1 em { display: block; }
.hold-copy .lede { margin: 0; color: rgba(255,255,255,.86); }
.hold-copy .btn-row { margin-top: clamp(22px, 3.2vh, 32px); }

/* the framed composition: tall torch-lit photo, amber outline offset inside the section, a print laid over it */
.hold-media { position: relative; height: var(--mh); width: calc(var(--mh) * 1.2); }
.hold-outline {
  position: absolute; right: 0; bottom: 0; height: calc(100% - 14px); aspect-ratio: 4 / 5;
  border: 2px solid var(--sodium); border-radius: var(--r); pointer-events: none;
}
.hold-frame {
  position: absolute; right: 14px; top: 0; height: calc(100% - 14px); aspect-ratio: 4 / 5; margin: 0;
  border-radius: var(--r); overflow: hidden; background: var(--night-2); isolation: isolate;
  box-shadow: 0 40px 80px rgba(0,0,0,.45);
}
.hold-img { position: absolute; inset: 0; overflow: hidden; }
/* breathing uses the individual `scale` property so GSAP's entrance transform can run on top of it */
.hold-img img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; scale: 1.04; animation: hold-breathe 14s ease-in-out infinite alternate; }
@keyframes hold-breathe { from { scale: 1.04; } to { scale: 1.12; } }
.hold-pos-investigations { object-position: 63% 50%; }
.hold-pos-surveillance { object-position: 43% 50%; }
.hold-pos-about { object-position: 64% 50%; }
.hold-pos-careers { object-position: 52% 50%; }
/* the torch: a dark veil with a hole in it, and a warm pool where the hole is. JS moves --tx/--ty and breathes --tr */
.hold-dark, .hold-beam { position: absolute; inset: 0; pointer-events: none; }
.hold-dark {
  background: rgba(4, 9, 13, .8);
  -webkit-mask-image: radial-gradient(circle var(--tr, 190px) at var(--tx, 54%) var(--ty, 40%), transparent 0, transparent 34%, rgba(0,0,0,.55) 70%, #000 100%);
  mask-image: radial-gradient(circle var(--tr, 190px) at var(--tx, 54%) var(--ty, 40%), transparent 0, transparent 34%, rgba(0,0,0,.55) 70%, #000 100%);
}
.hold-beam {
  background: radial-gradient(circle calc(var(--tr, 190px) * .8) at var(--tx, 54%) var(--ty, 40%), rgba(255,200,130,.36), rgba(255,200,130,.1) 50%, transparent 100%);
  mix-blend-mode: screen;
}
.hold-frame figcaption {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 11px; border-radius: calc(var(--r) - 4px); background: rgba(8,15,21,.74); color: #fff;
  font-family: var(--display); font-size: .9rem; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hold-frame figcaption b { font-weight: 700; color: var(--sodium); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 7px; }
.hold-frame figcaption b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e2463a; box-shadow: 0 0 0 3px rgba(226,70,58,.22); animation: blink 1.6s steps(2) infinite; }
/* a print laid on the desk: second photo with a paper border, swaying a little */
.hold-detail {
  position: absolute; left: 0; bottom: 12%; z-index: 2; width: calc(var(--mh) * .5); aspect-ratio: 4 / 3;
  padding: 7px; background: var(--signal); border-radius: var(--r); box-shadow: 0 26px 50px rgba(0,0,0,.5);
  overflow: clip; /* the print's photo is sized from the print, never read as a section backdrop */
  rotate: -4deg; animation: hold-sway 9s ease-in-out infinite alternate;
}
.hold-detail img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r) - 5px); }
.hold-print-surveillance { object-position: 55% 42%; }
.hold-print-about { object-position: 60% 45%; }
.hold-print-careers { object-position: 50% 62%; }
@keyframes hold-sway { from { rotate: -4deg; translate: 0 0; } to { rotate: -1.8deg; translate: 0 -8px; } }

/* ---------- coming soon ---------- */
.soon-head .lede { max-width: 120ch; }
.soon-head h2 em { display: inline; }
/* a writing caret after the heading: the page is still being written */
.soon-caret { display: inline-block; width: .09em; height: .82em; margin-left: .1em; vertical-align: -.06em; background: var(--sodium-deep); border-radius: 1px; animation: soon-caret 1.1s steps(2, jump-none) infinite; }
@keyframes soon-caret { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
.rm .soon-caret { animation: none; } /* the heading fits one line on desktop; balance keeps the phrase whole on phones */
.soon-cards a { padding: 0; gap: 0; }
.soon-cards .lc-img, .soon-cards .lc-body { display: block; color: inherit; font-size: inherit; line-height: inherit; }
.soon-cards .lc-img { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: var(--night); }
.soon-cards .lc-img img { width: 100%; height: 100%; object-fit: cover; scale: 1.04; transition: transform 1.2s var(--ease); animation: hold-breathe 12s ease-in-out infinite alternate; }
.soon-cards li:nth-child(2) .lc-img img { animation-delay: -4s; } .soon-cards li:nth-child(3) .lc-img img { animation-delay: -8s; }
.soon-cards .lc-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,15,21,0) 40%, rgba(8,15,21,.45)); }
/* torch: drifts over each photo on its own, and follows the pointer on hover */
.soon-cards .lc-img::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle 160px at var(--mx, 30%) var(--my, 40%), rgba(255,196,120,.34), transparent 70%);
  animation: soon-glint 9s ease-in-out infinite alternate;
}
.soon-cards li:nth-child(2) .lc-img::after { animation-delay: -3s; } .soon-cards li:nth-child(3) .lc-img::after { animation-delay: -6s; }
@keyframes soon-glint { 0% { transform: translate(-18%, -10%); } 50% { transform: translate(28%, 12%); } 100% { transform: translate(-4%, 18%); } }
.soon-cards a:hover .lc-img::after { animation-play-state: paused; transform: none; }
.soon-cards a:hover .lc-img img, .soon-cards a:focus-visible .lc-img img { transform: scale(1.07); }
.soon-cards .lc-body { padding: 22px 64px 26px 24px; }
.soon-cards .lc-body strong { display: block; margin-bottom: 6px; }
.soon-cards .lc-body > span { display: block; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.45; }
.soon-cards svg { top: auto; bottom: 28px; }
.soon-cards a.is-go { background: var(--sodium); }
.soon-cards a.is-go .lc-body > span { color: #2b2516; }
.soon-cards a.is-go svg { color: var(--ink); }
.soon-cards a.is-go::before { background: var(--ink); }

/* ---------- reveal start states (motion only; site.js safety net .rv-safe shows everything) ---------- */
.js:not(.rm):not(.rv-safe) [data-hold-frame] { clip-path: inset(100% 0% 0% 0% round var(--r)); }
.js:not(.rm):not(.rv-safe) .hold-outline { clip-path: inset(0 100% 100% 0); }
.js:not(.rm):not(.rv-safe) [data-hold-detail] { opacity: 0; }
.js:not(.rm):not(.rv-safe) [data-soon-cards] > li { clip-path: inset(100% 0% 0% 0% round var(--r)); }

/* ---------- reduced motion and no-JS: the finished frame, lit, nothing moving ---------- */
.rm .hold-lamp, .rm .hold-img img, .rm .hold-detail, .rm .soon-cards .lc-img img, .rm .soon-cards .lc-img::after, .rm .hold-frame figcaption b::before { animation: none; }
.rm .hold-detail { rotate: -3deg; translate: none; }
.rm .hold-dark, .no-js .hold-dark { --tr: 260px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hold-open { --mh: clamp(280px, 36svh, 380px); }
  .hold-media { width: calc(var(--mh) * .98); }
  .hold-detail { width: calc(var(--mh) * .42); }
}
@media (max-width: 900px) {
  .hold-open { min-height: 0; padding-top: calc(var(--head-h) + 14px); padding-bottom: 36px; }
  .hold-grid { grid-template-columns: 1fr; gap: 24px; }
  .hold-copy .btn-row { margin-top: 20px; }
  .hold-media { width: 100%; height: auto; aspect-ratio: 16 / 7.6; }
  .hold-outline, .hold-frame { aspect-ratio: auto; height: auto; width: auto; }
  .hold-outline { inset: 14px 0 0 14px; }
  .hold-frame { inset: 0 14px 14px 0; }
  .hold-detail { left: auto; right: 30px; bottom: 30px; top: auto; width: min(34%, 170px); padding: 5px; }
  .hold-frame figcaption { font-size: .82rem; left: 10px; right: auto; bottom: 10px; padding: 5px 9px; }
}
@media (max-width: 640px) {
  .hold-copy h1 { font-size: clamp(2.1rem, 9.4vw, 2.6rem); }
  .hold-copy .lede { font-size: 1.04rem; line-height: 1.5; }
  .hold-copy .btn-row { gap: 10px; }
  .hold-copy .btn-row .btn { min-height: 50px; padding: 12px 18px; }
  .hold-media { aspect-ratio: 16 / 8.4; }
  .hold-detail { display: none; }
  /* phone: compact rows, photo on the left, so three cards stay short */
  .soon-cards a { flex-direction: row; align-items: stretch; }
  .soon-cards .lc-img { aspect-ratio: auto; width: 34%; flex: none; min-height: 118px; }
  .soon-cards .lc-body { padding: 16px 46px 18px 16px; }
  .soon-cards .lc-body strong { font-size: 1.15rem; }
  .soon-cards .lc-body > span { font-size: .96rem; }
  .soon-cards svg { right: 16px; bottom: 18px; }
}

/* ---------- legal page (privacy): slim petrol band, then the text beside a sticky contents list ---------- */
.legal-band { padding-bottom: clamp(44px, 5vw, 72px); }
.legal-band h1 { margin-bottom: .3em; }
.legal-band .lede { margin: 0; color: rgba(255,255,255,.86); }
/* a slow amber sweep crosses the band, and a light runs along its foot, so the band never sits still */
.legal-sweep { position: absolute; z-index: -1; inset: -40% auto -40% 0; width: 46%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(242,163,58,.13) 50%, transparent); animation: legal-sweep 11s ease-in-out infinite alternate; }
@keyframes legal-sweep { from { transform: translateX(-60%) skewX(-12deg); } to { transform: translateX(210%) skewX(-12deg); } }
.legal-run { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.legal-run::before { content: ""; position: absolute; top: 0; left: 0; width: 24%; height: 100%; background: linear-gradient(90deg, transparent, var(--sodium), transparent); animation: rule-run 8s ease-in-out infinite; }

.legal-grid { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 110ch); gap: clamp(36px, 6vw, 96px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--head-h) + 28px); font-family: var(--display); }
.legal-toc p { margin: 0 0 12px; font-weight: 700; font-size: .95rem; color: var(--ink); }
.legal-toc ol { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line-light); position: relative; }
.legal-toc a { display: flex; align-items: center; min-height: 40px; text-decoration: none; font-weight: 560; font-size: 1rem; color: var(--ink-soft); transition: color .3s, transform .4s var(--ease); }
.legal-toc a:hover, .legal-toc a:focus-visible, .legal-toc a.is-on { color: var(--ink); }
.legal-toc a.is-on { transform: translateX(4px); font-weight: 700; }
.legal-toc ol::before { content: ""; position: absolute; left: -2px; top: var(--mark-y, 0px); width: 2px; height: 40px; background: var(--sodium); transition: top .5s var(--ease); }

.legal-text { font-size: 1.1rem; }
.legal-part { padding-bottom: clamp(26px, 3vw, 40px); margin-bottom: clamp(26px, 3vw, 40px); position: relative; scroll-margin-top: calc(var(--head-h) + 24px); }
/* each part closes on a rule with a slow light running along it */
.legal-part::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-light); }
.legal-part::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 22%; height: 3px; z-index: 1; background: linear-gradient(90deg, transparent, var(--sodium), transparent); animation: rule-run 9s ease-in-out infinite; }
.legal-part:nth-child(2n)::before { animation-delay: -3s; animation-duration: 11s; }
.legal-part:nth-child(3n)::before { animation-delay: -6s; }
.legal-part:last-child { margin-bottom: 0; }
.legal-part h2 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); margin-bottom: .55em; }
.legal-part p, .legal-part li { color: var(--ink-soft); }
.legal-part ul { margin: 0 0 1em; padding-left: 1.3em; }
.legal-part li { margin-bottom: .35em; }
.legal-part li::marker { color: var(--sodium-deep); }
.legal-part a:not(.btn) { color: var(--ink); text-decoration-color: var(--sodium); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.legal-part .btn-row { margin-top: 10px; }

/* the text section stays alive: the grain drifts and a warm torch pool wanders slowly behind the text */
.legal-grain { inset: -8%; animation: drift 40s linear infinite alternate; }
.legal-glow { position: absolute; z-index: -1; pointer-events: none; width: min(900px, 90vw); aspect-ratio: 1; left: 0; top: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,163,58,.16), rgba(242,163,58,.05) 40%, transparent 66%);
  animation: legal-glow 16s ease-in-out infinite alternate; }
@keyframes legal-glow { 0% { transform: translate(-20%, -10%); } 50% { transform: translate(60%, 30vh); } 100% { transform: translate(10%, 70vh); } }
.rm .legal-sweep, .rm .legal-run::before, .rm .legal-part::before, .rm .legal-grain, .rm .legal-glow { animation: none; }
.rm .legal-part::before, .rm .legal-run::before { opacity: 0; }
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
}
