/* GENERATED by namebench/scripts/sync-hal-rig.py from website-agency/src/build.py.
   Do not edit here: change Hal in build.py and re-run the script. The deploy gate fails on drift. */
:root{--hal:#ff2f18; --halglow:#e01d06; --pupil:#ffeab0; --amber:#e8a33d;}
.eye{position:relative;width:var(--eye,64px);aspect-ratio:1;border:0;background:none;cursor:pointer;padding:0;display:grid;place-items:center;flex:0 0 auto}
.eye .bezel{position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 50% 42%,#15161a 0%,#0c0d10 58%,#070809 78%,#0e0f13 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),inset 0 0 14px rgba(0,0,0,.9),0 12px 30px -14px #000;border:1px solid #191b21}
.eye .glass{position:absolute;inset:15%;border-radius:50%;
  background:radial-gradient(circle at 50% 50%,var(--pupil) 0%,var(--pupil) 5%,#ffb24a 9%,var(--hal) 21%,var(--halglow) 44%,#6d0d02 74%,#2a0500 100%);
  box-shadow:0 0 14px 2px rgba(224,29,6,.36),inset 0 0 10px rgba(0,0,0,.55);filter:brightness(.62) saturate(1.05);transition:filter .3s,box-shadow .3s}
.eye .glass::after{content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(ellipse 44% 30% at 32% 22%,rgba(255,255,255,.16),transparent 70%)}
.eye .pupil{position:absolute;top:50%;left:50%;width:10%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;
  background:radial-gradient(circle at 50% 45%,#fffdf4 0%,#ffe9a8 34%,#ffc245 72%,#ff9b10 100%);box-shadow:0 0 6px 2px rgba(255,232,170,.55)}
.eye:hover .glass,.eye:focus-visible .glass,.eye.awake .glass{filter:none;box-shadow:0 0 26px 5px rgba(224,29,6,.42),inset 0 0 10px rgba(0,0,0,.55)}
.eye:focus-visible{outline:1px solid var(--amber);outline-offset:6px;border-radius:50%}
/* -- Hal: concept A, the barrel (Cassia; Fred approved 2026-09-22) --------- */
/* the widget grew from a 48px orb to a 248px rig, so the wrapper stops taking clicks: a
   transparent box that size would kill click-to-brighten over a quarter of the hero's corner.
   Only the core is hit-testable (`.rig .eye` below); the label is aria-hidden and has no handler. */
.eye-fixed{--rig:248px;gap:18px;pointer-events:none}
.rig{position:relative;width:var(--rig);aspect-ratio:1;display:grid;place-items:center;flex:0 0 auto;
  pointer-events:none}                 /* the rig is decoration: only the core takes a click */
/* the site's own device for holding something legible over moving film (.corner::before) */
.rig::before{content:"";position:absolute;inset:-14%;z-index:-1;pointer-events:none;filter:blur(18px);
  background:radial-gradient(circle at 50% 50%,rgba(6,5,4,.78) 0%,rgba(6,5,4,.42) 52%,transparent 72%)}

/* `hoop`, not the concept's `band`: .band is this site's full-height page section */
.rig .hoop{position:absolute;border-radius:50%;pointer-events:none}
/* Re-laid for the corner (Cassia, 2026-09-22). The concept was drawn at a 560px rig; this runs at
   248px, so every band was moved to make room for lettering that can actually be read - see the
   ring block below. Radii are given in the rings' own 400-unit space: r = (50 - inset%) * 4. */
.rig .hair-1{inset:28%;border:1px solid rgba(244,241,234,.08)}      /* r 88  - under the words  */
.rig .hair-2{inset:20%;border:1px solid rgba(244,241,234,.07)}      /* r 120 - between the two  */
.rig .hair-3{inset:8%;border:1px solid rgba(244,241,234,.06)}       /* r 168 - under the scale  */
.rig .hair-4{inset:2%;border:1px solid rgba(244,241,234,.09);box-shadow:inset 0 1px 0 rgba(244,241,234,.05)}

.rig .ticks{position:absolute;inset:0;pointer-events:none;      /* r 157-165, the fine scale */
  background:repeating-conic-gradient(from 0deg,rgba(244,241,234,.34) 0deg .22deg,transparent .22deg 6deg);
  -webkit-mask:radial-gradient(circle closest-side,transparent 78%,#000 78.5%,#000 82.5%,transparent 83%);
          mask:radial-gradient(circle closest-side,transparent 78%,#000 78.5%,#000 82.5%,transparent 83%)}
.rig .ticks-long{position:absolute;inset:0;pointer-events:none; /* r 152-165, the major divisions */
  background:repeating-conic-gradient(from 0deg,rgba(244,241,234,.5) 0deg .3deg,transparent .3deg 30deg);
  -webkit-mask:radial-gradient(circle closest-side,transparent 75.5%,#000 76%,#000 82.5%,transparent 83%);
          mask:radial-gradient(circle closest-side,transparent 75.5%,#000 76%,#000 82.5%,transparent 83%)}
.rig .knurl{position:absolute;inset:0;pointer-events:none;opacity:.55;   /* r 192-199, the rim */
  background:repeating-conic-gradient(from 0deg,rgba(244,241,234,.16) 0deg .45deg,rgba(0,0,0,.5) .45deg 1.5deg);
  -webkit-mask:radial-gradient(circle closest-side,transparent 95.5%,#000 96%,#000 99.5%,transparent 100%);
          mask:radial-gradient(circle closest-side,transparent 95.5%,#000 96%,#000 99.5%,transparent 100%)}
.rig .index{position:absolute;top:1.2%;left:50%;transform:translateX(-50%);width:0;height:0;pointer-events:none;
  border-left:4px solid transparent;border-right:4px solid transparent;border-top:8px solid var(--rust);
  filter:drop-shadow(0 0 5px rgba(184,92,44,.55))}

.rig .ring{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.rig .ring text{font-family:var(--mono);text-transform:uppercase;
  filter:drop-shadow(0 1px 0 rgba(0,0,0,.95)) drop-shadow(0 -.5px 0 rgba(255,255,255,.10))}
.rig .r-in {animation:halCw 74s linear infinite}
.rig .r-mid{animation:halAcw 104s linear infinite}
.rig .r-out{animation:halCw 148s linear infinite}
/* Legibility at corner scale (Cassia, 2026-09-22). The rings live in a 400-unit viewBox drawn at
   248px, so a glyph renders at 0.62x its unit size - the concept's 11px inner ring was landing at
   6.9px, which is texture, not a word. Fixed by cutting repeats (3/2/4 -> 2/2/3) and enlarging to
   suit, not by scaling the rig, which would eat the hero corner.
   The hierarchy is a real barrel's, and it is deliberate: ONE ring you read (the inner words), one
   you can read if you look (the process), one that is frankly a scale (the apertures). Three rings
   competing for the same weight is what made it noise. Rendered: 13.0 / 10.9 / 8.7px at --rig 248;
   10.7 / 8.9 / 7.1px at 204. */
.rig .r-in  text{font-size:21px;letter-spacing:.02em;fill:rgba(244,241,234,.78)}
.rig .r-mid text{font-size:17.5px;letter-spacing:.02em;fill:rgba(207,200,184,.46)}
.rig .r-out text{font-size:14px;letter-spacing:.02em;fill:rgba(184,92,44,.66)}
@keyframes halCw{to{transform:rotate(360deg)}}
@keyframes halAcw{to{transform:rotate(-360deg)}}

/* the core, at the concept's 30% of the rig. The site dims its eye until hover; the concept does
   not, and the concept is what was approved, so the dim comes off and the 7.5s breath goes on. */
.rig .eye{position:absolute;width:30%;height:auto;aspect-ratio:1;pointer-events:auto}
.rig .bezel{border:1px solid #191b21;
  background:radial-gradient(circle at 50% 40%,#17181c 0%,#0b0c0f 58%,#060607 80%,#101115 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),inset 0 0 38px rgba(0,0,0,.92),0 26px 70px -28px #000}
.rig .glass{inset:14%;filter:none;animation:halBreathe 7.5s ease-in-out infinite}
.rig .glass::after{background:radial-gradient(ellipse 44% 30% at 32% 22%,rgba(226,238,255,.20),transparent 70%)}
.rig .pupil{width:9%;box-shadow:0 0 12px 3px rgba(255,232,170,.55)}
@keyframes halBreathe{
  0%,100%{box-shadow:0 0 34px 5px rgba(224,29,6,.26),inset 0 0 28px rgba(0,0,0,.62)}
  50%    {box-shadow:0 0 54px 10px rgba(224,29,6,.40),inset 0 0 28px rgba(0,0,0,.62)}}

@media(max-width:1100px){.eye-fixed{--rig:204px}}

/* Phones: the compact barrel (Cassia, 2026-09-22). The rig that clears the H1 at 390px is about
   132px, and at 132px a 400-unit ring renders a glyph at 0.33x - 7px for the inner ring, 4.6px for
   the scale. Nothing can be done with type at that size, so the type comes off and the ENGRAVING
   stays: knurled rim, fine scale, two hairlines, the rust index mark, the core. That is what a
   small lens actually looks like - a barrel does not carry readable words at 30mm either - and it
   keeps this a button rather than a billboard. The motion Fred asked for survives in the scale,
   which turns on its own at 90s, one direction, no text to read while it does.
   The core goes to 46% of a 100px rig, so the button is 46px - bigger than the 44px it is today -
   and the engraving is a collar around it rather than a dial beside it. Three rotating text layers
   also come off the phone compositor, which is free.
   Measured at a TRUE 390px viewport, in an iframe: headless Chrome floors a window at 512px wide,
   so a `--window-size=390` screenshot is a 512px page and proves nothing about phones. At 390 with
   the cookie bar up, a 132px rig still sat across the end of the H1's first line; hence 100px and
   the deeper lift below. */
@media(max-width:760px){
  .eye-fixed{--rig:100px}
  .rig .ring,.rig .hair-2,.rig .hair-3,.rig .ticks-long{display:none}
  .rig .eye{width:46%}                          /* 46px: the tap target is bigger than today's 44 */
  .rig .hair-1{inset:22%}                       /* pulled in to ring the core, not empty space */
  .rig .hair-4{inset:3%}
  .rig .ticks{animation:halCw 90s linear infinite;
    -webkit-mask:radial-gradient(circle closest-side,transparent 70%,#000 70.5%,#000 79%,transparent 79.5%);
            mask:radial-gradient(circle closest-side,transparent 70%,#000 70.5%,#000 79%,transparent 79.5%)}
  .rig .knurl{opacity:.72;
    -webkit-mask:radial-gradient(circle closest-side,transparent 93%,#000 93.5%,#000 99%,transparent 99.5%);
            mask:radial-gradient(circle closest-side,transparent 93%,#000 93.5%,#000 99%,transparent 99.5%)}
  .rig .index{border-left-width:3px;border-right-width:3px;border-top-width:6px}
  .rig::before{inset:-10%;filter:blur(12px)}
}
/* With the cookie bar up on a phone there is no clear band left at the bottom of the hero - the
   H1 runs to within 30px of the bar - so the widget was sitting on the end of "CREATIVE AGENCY".
   The bar's own lift is deepened from 190 to 250 to park it in the empty film between the tagline
   and the headline. It only applies while the bar is up; dismissed, the widget drops back down. */
@media(max-width:640px){body.cbar-on .eye-fixed{transform:translateY(-272px)}}
@media(prefers-reduced-motion:reduce){
  .rig .ring,.rig .ticks{animation:none}
  .rig .glass{animation:none;box-shadow:0 0 40px 7px rgba(224,29,6,.32),inset 0 0 28px rgba(0,0,0,.62)}}
