/* ==========================================================================
   Cool, techy, fresh: the last layer, on top of everything else.
   1. beige grounds (tokens in site.css), yellow only as an accent, one dark section
   2. IBM Plex Mono for every small label (tags, meta, counters, nav, footer)
   3. precise details: dot grids, hairlines that draw in, square corners, outlined tiles
   4. quieter, more exact hover states (arrows, outlines) instead of lifts and fills
   5. one consistent photo grade, slightly cooler and crisper
   ========================================================================== */

/* ---------- 1. grounds: yellow sections become beige, yellow stays for accents ---------- */
.rstack--yellow, .phero--yellow, .jobs { background: var(--beige); }
.network { background: var(--paper); }
.areas { background: var(--beige); }
.network .btn, .phero--yellow .btn, .hero .btn, .cta .btn { background: var(--yellow); }
/* the founder orbit is the one dark section on the homepage */
.home .tunnel { background: var(--navy); }
.orbit__name { background: var(--yellow); color: var(--navy); }

/* ---------- 2. mono for the small labels ---------- */
.rtag, .nav--bar .nav__link, .footer__links a, .footer__label, .footer__form button,
.facts__label, .pcase__meta, .fc__meta, .lw__tag, .lw__info span, .dial__count, .dial__more,
.jobs__meta, .jobs__tab, .job__tag, .job__loc, .job__go, .jobs__n, .hi__label, .bio__role, .bio__in-link,
.vfacts__record span, .nslider__nav button, .fc__more, .tt__role {
  font-family: var(--mono); font-weight: 400; letter-spacing: .04em; }
.nav--bar .nav__link { font-size: 12px; letter-spacing: .08em; }
.footer__links a, .footer__label, .footer__form button { font-size: 12px; letter-spacing: .06em; }
.rtag { padding: 7px 10px 6px; font-size: 12px; letter-spacing: .12em; border-color: currentColor; }
.rtag::before { content: "// "; opacity: .5; }   /* a code-like marker in front of every section tag */
.fc__meta, .pcase__meta { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- 3. precise details ---------- */
/* square everything that was rounded */
.job__tag, .cfilter, .lpost, .bio, .jobs__q input, .jobs__sel select { border-radius: 0; }
/* logo tiles: outlined, transparent, a small arrow on hover; the logo stays navy */
.lw { background: transparent; border: 1px solid rgba(8, 44, 78, .18); transition: border-color .2s, background .2s; }
.lw::after { content: "↗"; position: absolute; top: 8px; right: 10px; font-family: var(--mono); font-size: 14px; color: var(--navy); opacity: 0; transform: translate(-4px, 4px); transition: opacity .2s, transform .3s var(--ease); }
a.lw:hover, a.lw:focus-visible { background: var(--paper); border-color: var(--navy); }
a.lw:hover::after, a.lw:focus-visible::after { opacity: 1; transform: none; }
a.lw:hover .lw__logo, a.lw:focus-visible .lw__logo { background: var(--navy); transform: none; }
a.lw:hover .lw__logo.is-fit, a.lw:focus-visible .lw__logo.is-fit { --ink: var(--navy); }
.lw__info { color: var(--navy); background: var(--paper); border-top: 1px solid rgba(8, 44, 78, .12); padding: 7px 10px; transform: translateY(100%); opacity: 1; }
a.lw:hover .lw__info, a.lw:focus-visible .lw__info { transform: none; }
.lw__info b { font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.lw__info span { font-size: 12px; opacity: .75; }
.lw__tag { background: var(--navy); color: var(--paper); }
/* hairlines that draw in when they scroll into view (class set by tech.js) */
.rstack__pillars, .area + .area { border-top-color: transparent !important; position: relative; }
.rstack__pillars::before, .area + .area::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: rgba(8, 44, 78, .3);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.19, 1, .22, 1); }
.rstack__pillars.is-drawn::before, .area + .area.is-drawn::before { transform: none; }
.no-draw .rstack__pillars::before, .no-draw .area + .area::before { transform: none; }

/* ---------- 4. hover: arrows and outlines, no bouncing ---------- */
.btn { transition: background .2s, color .2s; }
.btn:hover, .btn:focus-visible { transform: none; background: var(--navy); color: var(--yellow); }
.btn::after { content: "→"; position: relative; z-index: 1; margin-left: 12px; font-family: var(--mono); transition: transform .3s var(--ease); }
.btn:hover::after, .btn:focus-visible::after { transform: translateX(4px); }
.job { border: 1px solid rgba(8, 44, 78, .14); background: var(--paper); }
.job:hover, .job:focus-visible { background: var(--paper); border-color: var(--navy); }

/* ---------- 5. one photo grade: a touch cooler and crisper everywhere ---------- */
.nslide, .fc__img, .orbit__dot img, .team-hero img, .tt__photo img, .bio__photo img, .dial__face img {   /* photos only, not the illustrations */
  filter: saturate(.9) contrast(1.06) brightness(1.02) hue-rotate(-4deg); }
.dial__face.is-on img, .dial__face:hover img { filter: saturate(.95) contrast(1.06) hue-rotate(-4deg); }

@media (prefers-reduced-motion: reduce) {
  .rstack__pillars::before, .area + .area::before { transform: none; transition: none; }
}

/* ---------- line menu, fixed at the top right (built in site.js) ---------- */
.lmenu { position: fixed; z-index: 60; right: clamp(6px, 1vw, 18px); top: calc(env(safe-area-inset-top, 0px) + 18px);
  display: flex; flex-direction: column; align-items: flex-end; color: var(--navy); transition: color .3s; }
.lmenu a { display: flex; align-items: center; justify-content: flex-end; gap: 14px; height: 30px; padding-left: 24px; color: inherit; text-decoration: none; }
.lmenu__line { display: block; height: 3px; width: var(--w, 16px); background: currentColor; opacity: .35; box-shadow: 0 0 0 1px rgba(253, 249, 244, .6);
  transition: width .35s cubic-bezier(.19, 1, .22, 1), opacity .25s; }
.lmenu a.is-active .lmenu__line { opacity: 1; width: var(--w, 22px); }
.lmenu a.is-hot .lmenu__line, .lmenu a:focus-visible .lmenu__line { opacity: 1; }
.lmenu__label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  background: var(--paper); color: var(--navy); padding: 5px 8px 4px; opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .2s, transform .3s cubic-bezier(.19, 1, .22, 1); }
.lmenu a.is-hot .lmenu__label, .lmenu a:focus-visible .lmenu__label, .lmenu.is-open .lmenu__label { opacity: 1; transform: none; }
.lmenu a:focus-visible { outline: none; }
.lmenu--dark { color: var(--paper); }
.lmenu--dark .lmenu__line { box-shadow: 0 0 0 1px rgba(8, 44, 78, .45); }
.lmenu .lmenu__line { opacity: .55; }
.lmenu.is-open { color: var(--navy); background: var(--paper); padding: 10px 12px 10px 4px; margin-right: -12px; box-shadow: 0 12px 40px rgba(8, 44, 78, .18); }
.lmenu.is-open .lmenu__line { box-shadow: none; }
.lmenu.is-open a { height: 44px; }
.lmenu.is-open .lmenu__line { opacity: 1; }
@media (max-width: 760px) { .lmenu a { height: 34px; } .lmenu__line { width: var(--w, 12px); } .lmenu a.is-active .lmenu__line { width: var(--w, 16px); } }   /* phones: lines fit the 24px margin */
@media (prefers-reduced-motion: reduce) { .lmenu__line, .lmenu__label { transition: none; } }
