/* ==========================================================================
   GREEN HOME — Team Lab
   Palette, type, and layout are all token-driven so the real GREEN HOME
   brand (logo, exact hex values, approved fonts) can replace the values
   below without touching any structural or animation code.

   MAIN-SITE INTEGRATION (Phase 1) -- CSS ISOLATION
   --------------------------------------------------------------
   This is the standalone Lab's stylesheet, scoped to load safely inside
   the main GREEN HOME site's own global CSS. The ONLY change anywhere
   in this file is the SELECTOR on every rule -- every declaration
   (every color, size, position, transform, timing) is byte-for-byte the
   value from the locked Lab source. Two mechanical patterns were applied
   throughout, both purely about WHICH elements a rule can reach, never
   about what it does to them:

   1. Every selector that used to be global (*, html, body, h1-h3, img,
      button, a, :focus-visible, or a bare class like .icon-button) is
      now prefixed with ".gh-team-exp" so it can only ever match inside
      this route's own rendered container -- it can no longer touch the
      main site's header, footer, nav, or any other page's typography/
      buttons, and the main site's own global CSS can equally never
      reach in and alter this experience's camera-critical geometry.
   2. :root{...} (page-wide CSS custom properties) moved to
      .gh-team-exp{...} instead -- same variables, same values, just
      defined on the actual wrapper element in the DOM instead of the
      document root, so they never leak into (or collide with) the main
      site's own --tokens.

   Two rules were dropped outright rather than scoped: the standalone
   page's own .site-header, .brand (and .brand__* children), and
   .site-footer rules (that markup is excluded from this integration --
   the main site's real header/footer are used instead, per the
   integration brief) and the bare html{}/
   body{} resets (html/body are singletons above this route's own
   container, so they can't be meaningfully scoped; the main site
   already resets/owns them). .skip-link was renamed to
   .team-exp-skip-link and its position/z-index adjusted (see below) to
   avoid colliding with the main site's own real .skip-link. Every other
   rule, in file order, is otherwise the same file.
   ========================================================================== */

.gh-team-exp {
  /* ---- palette (placeholder hexes — swap for approved brand values) ---- */
  --color-forest: #1f3d2f;
  --color-forest-deep: #142a20;
  --color-orange: #ec6a2d;
  --color-graphite: #2a2a28;
  --color-warm-grey: #7a756c;
  --color-wood: #b98a5c;
  --color-stone: #efe9df;
  --color-cream: #faf7f1;
  --color-sea: #7fb0be;
  --color-paper: #f7f2e7;

  /* ---- typography (swap for GREEN HOME's approved fonts later) ---- */
  --font-heading: 'Frank Ruhl Libre', 'Times New Roman', serif;
  --font-body: 'Heebo', -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-hand: 'Segoe Print', cursive;

  /* ---- misc ---- */
  --ease-camera: cubic-bezier(0.22, 0.61, 0.16, 1);
  --radius-note: 3px;

  /* folded from the standalone page's own body{} rule (see header note
     above) -- keeps this container visually self-consistent without
     touching the main site's real <body>. */
  font-family: var(--font-body);
  color: var(--color-graphite);
  background: var(--color-cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.gh-team-exp, .gh-team-exp * { box-sizing: border-box; }

/* h1/h2/h3 rules are intentionally NOT global -- scoped below */
.gh-team-exp h1, .gh-team-exp h2, .gh-team-exp h3 { font-family: var(--font-heading); margin: 0; font-weight: 700; }

.gh-team-exp img { max-width: 100%; display: block; }

.gh-team-exp button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.gh-team-exp a { color: inherit; }

.gh-team-exp .visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Renamed from the standalone page's own .skip-link (which the main
   site's own real skip-link class already uses, with different values)
   and repositioned below the main site's fixed header (var(--header-h),
   defined by the main site itself) instead of the standalone page's
   own top:-60px/top:12px pair, which assumed a minimal Lab-only header.
   z-index kept comfortably under the main header (1000) and mobile
   menu (999) it now sits below, but above every layer this experience
   itself uses (max 90, the profile modal). */
.gh-team-exp .team-exp-skip-link {
  position: absolute;
  top: calc(-1 * var(--header-h, 88px) - 60px);
  right: 12px;
  background: var(--color-forest);
  color: var(--color-cream);
  padding: 12px 20px;
  border-radius: 4px;
  z-index: 950;
  transition: top .2s ease;
}
.gh-team-exp .team-exp-skip-link:focus { top: calc(var(--header-h, 88px) + 12px); }

.gh-team-exp :focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   PERSISTENT "ALL TEAM" TOGGLE
   (the standalone page's own .site-header/.brand* rules are dropped here --
   this integration uses the main site's real header instead, see the file
   header note above)
   ========================================================================== */

/* Repositioned below the main site's real fixed header instead of the
   standalone page's own top:18px (which assumed a minimal Lab-only
   header with room to spare) -- at top:18px this would have overlapped
   the main site's real nav/lang-switch/hamburger cluster.
   CONTROL POSITION PASS: top offset tightened from header-h+16px (104px
   at the default 88px header -- sat well below the hamburger, reading
   as visually disconnected from it) to header-h/2+26px (70px) so it
   sits directly under the hamburger cluster instead: header.site-header
   vertically centers its content (align-items:center) at header-h/2,
   .burger is 24px tall (index.html), so header-h/2+12px reaches its
   real bottom edge -- +26px total leaves a deliberate ~14px breathing
   gap below that edge, not a token guess. Vertical offset unchanged by
   the pass below.

   RTL/LTR CONTROL POSITIONING PASS: a hard-coded `left:` here (matching the hamburger only by coincidence in
   whichever ONE direction happens to be physical-left) was replaced with a CSS `inset-inline-end` formula,
   which fixed the RTL/LTR direction problem but turned out to still be visually imprecise -- live inspection
   (not just computed values) traced it to `right`/`inset-inline-end` both targeting the same physical axis
   from two different origins (this stylesheet rule vs. a later inline style) without one cleanly winning in
   every tested browser state, a genuine few-pixel drift depending on which had last been touched.
   FINAL CORRECTION PASS: positioning (both top and the direction-aware side) now lives ENTIRELY in JS --
   positionAllTeamToggle() in team-experience/app.js -- reading the hamburger's own real getBoundingClientRect()
   every time and writing a plain physical `left`/`right` inline style directly, so there is only ever ONE
   declaration for that axis, never two competing origins. This rule intentionally sets neither `top` nor any
   inset anymore; positionAllTeamToggle() sets both before first paint (called from applyUIStrings(), itself
   called at the very start of init()) and again on resize/language-switch/body-scroll-lock toggle (see its own
   comments for exactly when). z-index/typography/functionality unchanged; the hamburger itself (index.html's
   .burger rules) is not touched by this file at all. */
.gh-team-exp .all-team-toggle {
  position: fixed;
  z-index: 40;
  padding: 10px 18px;
  font-size: .82rem;
  letter-spacing: .02em;
  color: var(--color-cream);
  background: rgba(20, 42, 32, .55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}
.gh-team-exp .all-team-toggle:hover { background: rgba(20, 42, 32, .8); transform: translateY(-1px); }
/* TEAM DIRECTORY -- FINAL CORRECTION PASS: two text spans, CSS-toggled by display -- NOT a JS resize
   listener/font-size shrink -- so the button always shows the INTENTIONALLY shorter mobile wording (see
   strings.js's allTeamToggleShort), never the desktop phrase squeezed smaller. Reuses the SAME max-width:980px
   boundary the site's own hamburger/nav breakpoint already uses (see the header CSS further down), not a new
   breakpoint. display:none on the inactive span also correctly removes it from the button's accessible name
   per the standard accname computation, so screen readers/voice control always announce whichever phrase is
   actually visible -- no separate aria-label needed. */
.gh-team-exp .all-team-toggle__short { display: none; }
@media (max-width: 980px) {
  .gh-team-exp .all-team-toggle__full { display: none; }
  .gh-team-exp .all-team-toggle__short { display: inline; }
}

/* ==========================================================================
   CAMERA EXPERIENCE
   ========================================================================== */

/* Was var(--color-graphite) (#2a2a28, near-black) -- only ever visible during the brief gap before
   office-bg.png has decoded (see .camera-stage's own opacity below, driven directly by app.js's
   revealSceneWhenReady()), so a near-black fallback read as a broken/unfinished scene. A light, neutral paper
   tone here means that gap (normally imperceptible) reads as "the page hasn't finished appearing yet",
   consistent with how every other route on the main site loads, never as a black/broken screen. */
.gh-team-exp .experience { position: relative; background: var(--color-cream); }

.gh-team-exp .camera-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  /* Visible only as letterbox/pillarbox at the desktop "contain" room
     shot (the master photo never fully covers a very wide/short
     viewport). A warm, neutral dark tone -- not the cool brand-green --
     so it reads as ambient shadow around the room, not a UI frame. */
  background: #26221d;
  /* Hidden until app.js's revealSceneWhenReady() confirms office-bg.png has actually decoded and is ready to
     paint -- prevents the incomplete-scene flash (dark background + floating photo/note/hardware elements
     with no office image yet) that a purely image-driven paint order previously allowed. One single fade for
     the whole stage -- world/hardware-layer/note-layer/scroll-indicator all appear together, coherently,
     never as separate per-element fades. Reduced-motion visitors never take this code path at all (init()
     renders the static #reduced-fallback list instead), but the instant-reveal media query below is kept as
     a defensive belt-and-suspenders match for that preference anyway. */
  opacity: 0;
  transition: opacity .4s ease;
}
@media (prefers-reduced-motion: reduce) {
  .gh-team-exp .camera-stage { transition: none; }
}

.gh-team-exp .world {
  position: absolute;
  top: 0; left: 0;
  /* Must always match WORLD_WIDTH/WORLD_HEIGHT in shots.js exactly --
     the camera engine's coverage math (getCoverScale/
     clampCameraToCoverage in app.js) computes translate/scale
     assuming this element's real rendered size equals those JS
     constants. A stale mismatch here (as happened after the last
     master-image recalibration) silently reintroduces an edge gap
     no matter how correct the JS math is. */
  width: 1672px;
  height: 941px;
  transform-origin: 0 0;
  will-change: transform;
  z-index: 1;
}

/* ---- crisp hardware layer (frames/pins/clips/magnets/paper) ----
   Screen-space sibling of .world, positioned/sized in real screen px
   by app.js's updateHardwareLayer() every time the camera pose
   changes -- never transformed by .world's own scale, so these CSS
   borders/gradients/shadows are painted directly at final size
   instead of being rasterized small and stretched. Sits ABOVE .world
   (z-index higher, so it paints over the office-bg fridge texture);
   frame hardware (.hw-frame, below) is a hollow RING with a
   transparent center specifically so the still-world-space photo
   <img> underneath shows through untouched. */
.gh-team-exp .hardware-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

.gh-team-exp .office-bg { width: 100%; height: 100%; object-fit: cover; user-select: none; }

/* High-res refrigerator detail plate -- registered pixel-perfect over
   office-bg via GH_WORLD.FRIDGE_DETAIL_BOUNDS (shots.js). Position/size
   are percentages of .world's own box, which is a fixed 1672x941 --
   the same coordinate space every other world-space element uses, so
   this inherits the camera's translate/scale exactly like office-bg
   does, with zero independent movement. Opacity is toggled by app.js's
   updatePlate(); this transition is the only thing that animates it. */
.gh-team-exp .fridge-detail-plate {
  position: absolute;
  left: 54.10%;
  top: 23.78%;
  width: 17.54%;
  height: 49.41%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 200ms ease;
}

/* ?fridgeDebug=1 only (see app.js updateFridgeDebug) -- shows the
   plate's true box even while its opacity is 0, for registration
   verification. Never applied for normal visitors. */
.gh-team-exp .fridge-detail-plate.gh-debug-outline { outline: 2px solid #ff2ec4; outline-offset: -1px; }

.gh-team-exp .world__people-layer { position: absolute; inset: 0; }

/* ---- crisp note layer ----
   A SIBLING of .world, not a descendant: it never receives the
   camera's translate()/scale() transform, so paper text stays
   rendered at native 1:1 browser resolution no matter how deep the
   camera zooms into the fridge (20-35x). Positions come from
   shots.js desktopNote/mobileNote as explicit xPercent/yPercent of
   this layer's own box (== the viewport-sized camera-stage box). */
.gh-team-exp .note-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

/* ---- fridge photo (life photo) — rebuilt as a physical print ----
   A photographic print pinned to stainless steel, not a UI card:
   an almost invisible even border, square physical corners, and a
   contact shadow tuned for "millimeters off the metal" rather than
   a floating panel. This object NEVER animates -- no hover, no
   focus, no active state exists anywhere in this file for it. The
   camera is the only thing that ever moves; see app.js's tick(). */
.gh-team-exp .fridge-photo {
  position: absolute;
  z-index: 1;
  margin: 0;   /* reset the UA default <figure> margin (1em 40px) --
                  position:absolute still honors it otherwise, which
                  reads as a harmless ~35px screen drift at wide-view
                  scale but explodes to ~750px+ at close-up zoom. */
  border-radius: 0;
  /* Own compositing layer, promoted independently of .world's single
     shared one. Without this, every fridge-photo's border/shadow/pin
     is painted into .world's ONE backing-store texture -- sized for
     .world's own ~1672x941 box, not for the ~10-20x scale PEOPLE
     close-ups apply to it -- then stretched by the compositor, which
     is what made these CSS-vector borders/pins/clips look soft despite
     containing no raster asset. Promoting each photo lets Chromium
     raster it at ITS OWN final on-screen size instead. Purely a
     rendering hint -- no visual/geometry change. */
  will-change: transform;
}
/* --photo-defocus (app.js updatePhotoDefocus()): every world-space photo's own soft-focus amount, in
   world-local px (counter-scaled by the current camera zoom so it reads as a consistent on-screen blur
   regardless of which person is active) -- 0px by default (untouched/ambient), applied only to whichever
   photos are NOT the currently-settled active person. Appended onto each photoStyle's own base color-grade
   filter below (never replacing it) so blurred photos keep their real saturate/contrast/brightness look. */
.gh-team-exp .fridge-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.93) contrast(1.03) brightness(.99) blur(var(--photo-defocus, 0px));
  transition: filter .4s ease;
}

/* ---- 5 physical print treatments -- a real fridge is a MIX, never
   14 identical Polaroids. Each photoStyle is its own look; attachment
   hardware (pin-black/pin-silver/clip, below) is an independent axis
   layered on top, so the combinatorics feel genuinely varied. ---- */
.gh-team-exp .fridge-photo--standard-print {
  padding: 1.5px;
  background: #f7f5f0;
  box-shadow: 0 0.5px 1px rgba(0,0,0,.3), 0 1.5px 3px rgba(0,0,0,.16);
}
.gh-team-exp .fridge-photo--matte-bordered {
  /* "thin matte print edge" -- a whisper of border, not a Polaroid
     frame. Thinner than the previous pass on purpose. */
  padding: 1.5px;
  background: #e9e3d3;
  box-shadow: 0 0.5px 1.5px rgba(0,0,0,.32), 0 2px 4px rgba(0,0,0,.18);
}
.gh-team-exp .fridge-photo--matte-bordered img { filter: saturate(.78) contrast(.96) brightness(.97) blur(var(--photo-defocus, 0px)); }
.gh-team-exp .fridge-photo--glossy-borderless {
  padding: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.24), 0 0 0 0.5px rgba(255,255,255,.25) inset;
}
.gh-team-exp .fridge-photo--glossy-borderless img { filter: saturate(1.08) contrast(1.07) brightness(1.03) blur(var(--photo-defocus, 0px)); }
.gh-team-exp .fridge-photo--direct-magnet {
  /* "held directly by the magnet" -- no card, no border, no shadow
     box at all: just the photo itself with a hairline contact shadow
     so it still reads as sitting proud of the steel. */
  padding: 0;
  box-shadow: 0 0.5px 1.5px rgba(0,0,0,.3);
}
.gh-team-exp .fridge-photo--direct-magnet img { filter: saturate(1.0) contrast(1.04) brightness(1.0) blur(var(--photo-defocus, 0px)); }
.gh-team-exp .fridge-photo--worn-edge {
  padding: 2px;
  background: #f1e9d5;
  box-shadow: 0 0.5px 1px rgba(0,0,0,.3), 0 1.5px 3px rgba(0,0,0,.16);
}
.gh-team-exp .fridge-photo--worn-edge::after {
  /* a soft, irregular aged-paper vignette -- restrained, not cartoonish */
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(120,100,68,.16), inset 0 0 5px rgba(90,74,48,.14);
  pointer-events: none;
}
.gh-team-exp .fridge-photo--overlap-pair { background: none; box-shadow: none; }
.gh-team-exp .fridge-photo--overlap-pair .fridge-photo__print {
  position: absolute; inset: 0;
  padding: 1.5px;
  background: #f7f5f0;
  box-shadow: 0 0.5px 1px rgba(0,0,0,.3), 0 1.5px 3px rgba(0,0,0,.16);
}
.gh-team-exp .fridge-photo--overlap-pair .fridge-photo__print img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.93) contrast(1.03) brightness(.99) blur(var(--photo-defocus, 0px));
  transition: filter .4s ease;
}
.gh-team-exp .fridge-photo--overlap-pair .fridge-photo__print--under { transform: translate(-14%, 10%) rotate(-6deg) scale(.82); z-index: 0; }
.gh-team-exp .fridge-photo--overlap-pair .fridge-photo__print--over  { transform: translate(10%, -7%) rotate(4deg) scale(.82); z-index: 1; }

/* ---- attachment hardware: exactly three real types, deliberately
   tiny -- the photo is ~95% of what the eye registers, the hardware
   ~5%. No brand colors, no novelty shapes, nothing larger than 5px. */
.gh-team-exp .fridge-photo[data-magnet="pin-black"]::before {
  content: '';
  position: absolute;
  top: -2.5px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #4c4b49, #131312 80%);
  box-shadow: 0 .5px 1px rgba(0,0,0,.4);
}
.gh-team-exp .fridge-photo[data-magnet="pin-silver"]::before {
  content: '';
  position: absolute;
  top: -2.5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: linear-gradient(140deg, #c7c7c3, #8f8f89 55%, #b3b3ae);
  box-shadow: 0 .5px 1.2px rgba(0,0,0,.3);
}
.gh-team-exp .fridge-photo[data-magnet="clip"]::before {
  content: '';
  position: absolute;
  top: -2.5px; left: 50%;
  transform: translateX(-50%);
  width: 7px; height: 2.5px;
  border-radius: .5px;
  background: linear-gradient(180deg, #454542 0%, #262523 60%, #333230 100%);
  box-shadow: 0 .5px 1px rgba(0,0,0,.3);
}
.gh-team-exp .fridge-photo--anchor[data-magnet="pin-silver"]::before { width: 5px; height: 5px; top: -3px; }

/* ---- world-space hardware suppression ----
   The frame/border/pin CSS above would otherwise be painted TWICE:
   once here (soft at close-up zoom -- see the hardware-layer comment
   near .world) and once crisp in #hardware-layer (below, and in
   app.js's updateHardwareLayer()). The <img> itself is untouched --
   still full-opacity, still world-space, still exactly where it's
   always been; only the decorative background/shadow/pin/vignette
   around it is suppressed here, since the crisp screen-space version
   now provides it instead. */
.gh-team-exp #world .fridge-photo,
.gh-team-exp #world .fridge-photo--overlap-pair .fridge-photo__print {
  background: none;
  box-shadow: none;
}
.gh-team-exp #world .fridge-photo::before,
.gh-team-exp #world .fridge-photo--worn-edge::after {
  content: none;
}

/* ---- screen-space frame hardware (crisp layer) ----
   #hardware-layer sits ABOVE .world (see its own comment), so unlike
   the old world-space wrapper (padding + solid background, with the
   <img> sitting inside the padding inset), these are HOLLOW RINGS --
   border-width standing in for the old padding value, border-color for
   the old background color, a genuinely transparent center. The
   border-color below is each style's own default (cream/off-white); a
   restrained, per-anchor GREEN HOME accent palette overrides a few
   instances -- see HW_FRAME_ACCENT in app.js. border-WIDTH is set here
   only as a fallback (0-zoom/pre-JS paint) -- app.js's
   updateHardwareLayer() overwrites it every frame to padding*cam.s (the
   exact SAME scale factor already applied to this box's own projected
   width/height, and to the crisp photo's inset -- see hwActivePhotos),
   so the ring is always exactly as thick as the (correctly-inset)
   photo's own edge, at any zoom. A border that stayed a flat CSS px
   value regardless of zoom would read as a bare hairline at a PEOPLE
   close-up (the "transparent frame" bug) -- but the fix must be a
   SCALED BORDER, not a solid background fill: a background would cover
   this box's entire footprint, including the photo opening, hiding the
   ordinary world-space <img> underneath for every anchor that ISN'T
   the one active crisp photo (see showCrispPhoto()/hideCrispPhoto() in
   app.js) -- exactly the "empty frame until active" visibility
   regression. A properly scaled border-only ring keeps the center
   genuinely transparent at all times, so the world-space photo always
   shows through it whether or not that anchor is the active close-up.
   Every other value (width/shadow) is copied verbatim from the
   corresponding (now-suppressed) .fridge-photo--* rule above, including
   --worn-edge's ::after vignette merged straight into its box-shadow
   list (a real ::after can't be projected into a different stacking
   layer the way a real sibling element can). box-sizing:border-box
   keeps the border addition from changing the box's own declared (=
   final projected) size. */
.gh-team-exp .hw-frame {
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
}
.gh-team-exp .hw-frame--standard-print,
.gh-team-exp .hw-frame--overlap-pair-print {
  border: 1.5px solid #f7f5f0;
  box-shadow: 0 0.5px 1px rgba(0,0,0,.3), 0 1.5px 3px rgba(0,0,0,.16);
}
.gh-team-exp .hw-frame--matte-bordered {
  border: 1.5px solid #e9e3d3;
  box-shadow: 0 0.5px 1.5px rgba(0,0,0,.32), 0 2px 4px rgba(0,0,0,.18);
}
.gh-team-exp .hw-frame--glossy-borderless {
  border: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.24), 0 0 0 0.5px rgba(255,255,255,.25) inset;
}
.gh-team-exp .hw-frame--direct-magnet {
  border: none;
  box-shadow: 0 0.5px 1.5px rgba(0,0,0,.3);
}
.gh-team-exp .hw-frame--worn-edge {
  border: 2px solid #f1e9d5;
  box-shadow: 0 0.5px 1px rgba(0,0,0,.3), 0 1.5px 3px rgba(0,0,0,.16),
    inset 0 0 0 1px rgba(120,100,68,.16), inset 0 0 5px rgba(90,74,48,.14);
}

/* ---- screen-space ACTIVE photo (crisp layer) ----
   Only ONE (or two, for an overlap-pair anchor) of these is ever
   visible at a time -- whichever chapter is currently settled -- see
   app.js's showCrispPhoto()/hideCrispPhoto(). Same root-cause fix as
   .hw-frame: the world-space <img> is a tiny box in .world's own
   local space, blown up by its ancestor's transform; this one is
   sized directly at its final screen px, so the browser rasters it at
   real resolution instead of stretching a small one. object-fit/
   object-position are set inline by app.js from the exact same
   focusPosition()/crop the world-space <img> already uses -- nothing
   about the crop or composition changes, only where it's painted. */
.gh-team-exp .hw-photo {
  position: absolute;
  object-fit: cover;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms ease;
}
/* Two photoStyles have an INSET box-shadow that visually sits on top
   of the photo itself in world-space (glossy-borderless's edge
   highlight, worn-edge's aged-paper vignette) -- .hw-frame's own ring
   paints BELOW the crisp photo (see the append-order comment in
   app.js), so those two specific inset shadows need this separate
   element painted ABOVE it instead. box-shadow itself is set inline
   by app.js (HW_INSET_OVERLAY_SHADOW), copied verbatim from the
   corresponding .fridge-photo--* rule; every other style has no inset
   component and never activates this element. */
.gh-team-exp .hw-photo-overlay {
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms ease;
}

/* ---- screen-space pin/clip hardware (crisp layer) ----
   Real elements (not ::before pseudo-elements, which can't be
   projected into a different layer) reproducing the exact gradient/
   shadow/size values above. app.js positions/sizes/rotates these via
   inline style from the same anchor data + live camera pose. */
.gh-team-exp .hw-pin {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.gh-team-exp .hw-pin--pin-black {
  background: radial-gradient(circle at 36% 32%, #4c4b49, #131312 80%);
  box-shadow: 0 .5px 1px rgba(0,0,0,.4);
}
.gh-team-exp .hw-pin--pin-silver {
  background: linear-gradient(140deg, #c7c7c3, #8f8f89 55%, #b3b3ae);
  box-shadow: 0 .5px 1.2px rgba(0,0,0,.3);
}
.gh-team-exp .hw-pin--clip {
  border-radius: .5px;
  background: linear-gradient(180deg, #454542 0%, #262523 60%, #333230 100%);
  box-shadow: 0 .5px 1px rgba(0,0,0,.3);
}

/* ---- decorative fridge magnets ----
   Small, never a camera target, never interactive -- exist purely so
   the door reads as a real collected-over-time surface, not a wall of
   only people. Real physical hardware feel: a material gradient, a
   thin top-edge highlight, and a genuine contact shadow underneath --
   never a flat SVG icon pasted on top of the photo. GREEN HOME's own
   brand green/orange, plus restrained silver/black/cream neutrals;
   never a rainbow, never cartoonish. */
.gh-team-exp .deco-magnet {
  position: absolute;
  z-index: 1;
  width: 11px; height: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 6.5px; line-height: 1;
  pointer-events: none;
  box-shadow:
    0 1px 1.5px rgba(0,0,0,.4),      /* contact shadow, cast onto the steel */
    0 0.5px 0 rgba(255,255,255,.22) inset,  /* top-edge highlight */
    0 -1px 1.5px rgba(0,0,0,.22) inset;     /* lower-edge falloff (rounded material) */
  /* own compositing layer -- see .fridge-photo's will-change comment
     above for why (same .world shared-raster softness applies here). */
  will-change: transform;
}
.gh-team-exp .deco-magnet--circle { border-radius: 50%; }
.gh-team-exp .deco-magnet--square { width: 12px; height: 9px; border-radius: 2px; }
.gh-team-exp .deco-magnet--pin {
  width: 9px; height: 9px;
  border-radius: 50% 50% 50% 3px;
}
.gh-team-exp .deco-magnet--green {
  background: radial-gradient(circle at 32% 26%, #4f7f64 0%, var(--color-forest) 58%, var(--color-forest-deep) 100%);
  color: rgba(255,255,255,.85);
}
.gh-team-exp .deco-magnet--orange {
  background: radial-gradient(circle at 32% 26%, #f5a26e 0%, var(--color-orange) 58%, #b34a19 100%);
  color: rgba(255,255,255,.92);
}
.gh-team-exp .deco-magnet--silver {
  background: linear-gradient(150deg, #ececea 0%, #adada6 55%, #86867d 100%);
  color: rgba(42,38,28,.72);
}
.gh-team-exp .deco-magnet--black {
  background: radial-gradient(circle at 32% 26%, #4c4c4a 0%, #1c1c1a 60%, #070706 100%);
  color: rgba(255,255,255,.78);
}

/* ---- background paper texture ----
   Pure texture, never a chapter, never competes with an agent note:
   no name, no CTA, low visual weight, faint ruled/handwriting hint. */
.gh-team-exp .deco-paper {
  position: absolute;
  z-index: 1;
  width: 24px; height: 18px;
  background: linear-gradient(160deg, #f2ecd8 0%, #e5dbbe 100%);
  box-shadow: 0 0.5px 1.5px rgba(0,0,0,.25);
  pointer-events: none;
  /* own compositing layer -- see .fridge-photo's will-change comment. */
  will-change: transform;
}
.gh-team-exp .deco-paper::before, .gh-team-exp .deco-paper::after {
  content: '';
  position: absolute; left: 16%; right: 22%;
  height: 1px;
  background: rgba(88,72,44,.24);
}
.gh-team-exp .deco-paper::before { top: 36%; }
.gh-team-exp .deco-paper::after { top: 60%; right: 34%; }
.gh-team-exp .deco-paper--reminder { width: 26px; height: 20px; background: linear-gradient(155deg, #f4efdb 0%, #e2d5ac 100%); }
.gh-team-exp .deco-paper--torn {
  width: 24px; height: 19px;
  background: linear-gradient(160deg, #efe6cd 0%, #ddcfa5 100%);
  clip-path: polygon(0 6%, 9% 0, 22% 7%, 36% 1%, 51% 6%, 66% 0, 81% 7%, 93% 1%, 100% 6%, 100% 100%, 0 100%);
}
.gh-team-exp .deco-paper--appt {
  width: 22px; height: 15px;
  border-radius: 1px;
  background: linear-gradient(160deg, #f5f0e2 0%, #e9e0c8 100%);
  box-shadow: 0 0.5px 1.5px rgba(0,0,0,.25), inset 0 0 0 1px rgba(150,130,90,.2);
}
.gh-team-exp .deco-paper--sticky { width: 20px; height: 20px; background: linear-gradient(160deg, #f7edb8 0%, #eddd8c 100%); }

/* World-space magnets/paper have no photo to preserve underneath them
   (unlike .fridge-photo), so they're simply hidden outright here --
   their crisp screen-space replacement (app.js's updateHardwareLayer,
   reusing these exact same classes in #hardware-layer) is the only
   visible copy. shots.js's decorativeMagnets/paperDetails arrays
   remain the untouched single source of truth for their position/
   rotation/color/shape data either way. */
.gh-team-exp #world .deco-magnet,
.gh-team-exp #world .deco-paper {
  opacity: 0;
}

/* ---- physical note ----
   Lives directly in .note-layer (screen space, see above) at an
   explicit left/top percent set inline by app.js from shots.js's
   desktopNote/mobileNote -- both PHYSICAL properties, so they are
   honored as-is regardless of dir="rtl" (no inherited-static-position
   gotcha to work around here, unlike the old world-space version).
   Reveal is the ONE thing allowed to animate, and ONLY opacity + a
   4px translateY settle -- explicitly NO scale (no counter-scale
   architecture anymore -- the layer itself is never transformed, so
   none is needed) and NO filter/backdrop-filter blur anywhere. Text
   and paper texture stay pixel-sharp at any camera zoom. Timing
   itself (camera settles -> pause -> reveal; instant hide the moment
   the next chapter starts) is entirely owned by app.js. */
.gh-team-exp .person-note {
  position: absolute;
  width: var(--note-width, 300px);
  padding: 18px 20px 16px;
  background: linear-gradient(160deg, #f5ecd0 0%, #eeddac 100%);
  box-shadow: 0 3px 10px rgba(0,0,0,.26);
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  --reveal-y: 4px;
  /* --fit-x/--fit-y: small nudge that keeps an edge-anchored note fully on screen (app.js fitNoteInStage()) */
  transform: translate(calc(-50% + var(--fit-x, 0px)), calc(-50% + var(--reveal-y) + var(--fit-y, 0px))) rotate(var(--nrot, -1deg));
  transition: opacity .3s ease-out, transform .3s ease-out;
}
.gh-team-exp .person-note.is-visible { opacity: 1; pointer-events: auto; --reveal-y: 0px; }
@media (max-width: 899px) {
  .gh-team-exp .person-note { width: min(78vw, 340px); padding: 16px 18px 14px; max-height: calc(100% - 20px); overflow-y: auto; overscroll-behavior: contain; }
}
/* SHORT PHONES ONLY (<=700px tall, e.g. 360x640 / 375x667 -- owner request 2026-11-13): a slightly more compact card
   (a bit wider, tighter padding/leading) so long cards fit below the magnet photo instead of covering it. Same text,
   same design; normal phones (taller than 700px) and desktop are untouched. No new scrolling. */
@media (max-width: 899px) and (max-height: 700px) {
  .gh-team-exp .person-note { width: min(88vw, 340px); padding: 12px 15px 10px; }
  .gh-team-exp .person-note__name { font-size: 1.22rem; margin-bottom: 2px; }
  .gh-team-exp .person-note__role { font-size: .7rem; margin-bottom: 8px; padding-bottom: 6px; }
  .gh-team-exp .person-note__line { font-size: .875rem; line-height: 1.5; margin-bottom: 6px; }
  .gh-team-exp .person-note__cta { font-size: .84rem; }
}

.gh-team-exp .person-note::before {
  /* folded corner -- the default physical detail; several variants
     below replace it with a magnet dot or a strip of tape instead. */
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 15px; height: 15px;
  background: linear-gradient(135deg, #fbf4dc 44%, #cab77c 46%, #b5a165 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  box-shadow: -1px 1px 2px rgba(70, 55, 25, .22);
}
[dir="rtl"] .gh-team-exp .person-note::before {
  right: auto; left: 0;
  background: linear-gradient(225deg, #fbf4dc 44%, #cab77c 46%, #b5a165 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  box-shadow: 1px 1px 2px rgba(70, 55, 25, .22);
}

/* ---- 7 note variants -- never one identical yellow card 14 times ----
   Each is a genuinely different physical object (paper tone + one
   attachment/edge detail), not just a recolor. All restrained: no
   cartoon corners, no giant Post-it, no exaggerated paper curl. Stay
   primarily cream/ivory/pale-yellow/kraft/natural paper -- green and
   orange (v5's magnet, v6's clip) are SMALL hardware accents only,
   never a base card color. Widths deliberately vary within the
   260-340px target range so the door doesn't read as one template. */
.gh-team-exp .person-note--v1 {
  /* 1: warm cream ruled notebook paper, tiny imperfect torn edge */
  --note-width: 300px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 24px, rgba(101,82,43,.14) 24px 25px),
    linear-gradient(160deg, #f7f2e2 0%, #ebe0c3 100%);
  clip-path: polygon(0 2%, 6% 0%, 13% 2.5%, 21% 0.5%, 29% 2%, 37% 0%, 45% 2.5%, 53% 0.5%, 61% 2%, 69% 0%, 77% 2.5%, 85% 0.5%, 93% 2%, 100% 0%, 100% 100%, 0% 100%);
}
.gh-team-exp .person-note--v1::before { content: none; }
.gh-team-exp .person-note--v2 {
  /* 2: soft pale-yellow memo, one subtle folded corner (default ::before) */
  --note-width: 280px;
  background: linear-gradient(160deg, #f6e9bd 0%, #ecd587 100%);
}
.gh-team-exp .person-note--v3 {
  /* 3: ivory handwritten-style note, held by a tiny matte-black magnet */
  --note-width: 310px;
  background: linear-gradient(160deg, #faf6ea 0%, #ede3ca 100%);
}
.gh-team-exp .person-note--v3::before { content: none; }
.gh-team-exp .person-note--v3::after {
  content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #4c4b49, #131312 80%);
  box-shadow: 0 1px 1.5px rgba(0,0,0,.45);
}
/* FRIDGE CARD READABILITY PASS (2026-11-11): the card text is now one continuous paragraph split over two lines,
   so v3 no longer switches its first half to the handwriting font (v3 keeps its own paper and pin). */
.gh-team-exp .person-note--v4 {
  /* 4: off-white paper, attached with translucent tape (no fold) */
  --note-width: 320px;
  background: linear-gradient(160deg, #faf8f1 0%, #ebe5d5 100%);
}
.gh-team-exp .person-note--v4::before { content: none; }
.gh-team-exp .person-note--v4::after {
  content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 46px; height: 16px;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 1px 1.5px rgba(0,0,0,.1);
}
.gh-team-exp .person-note--v5 {
  /* 5: light kraft memo, tiny GREEN GREEN HOME magnet (no fold) */
  --note-width: 300px;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 7px),
    linear-gradient(160deg, #ddc9a3 0%, #c6a878 100%);
}
.gh-team-exp .person-note--v5::before { content: none; }
.gh-team-exp .person-note--v5::after {
  content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #4f7f64 0%, var(--color-forest) 58%, var(--color-forest-deep) 100%);
  box-shadow: 0 1px 1.5px rgba(0,0,0,.4);
}
.gh-team-exp .person-note--v5 .person-note__role, .gh-team-exp .person-note--v5 .person-note__line { color: #5c4321; }
.gh-team-exp .person-note--v5 .person-note__name { color: #382809; }
.gh-team-exp .person-note--v6 {
  /* 6: cream rectangular paper, subtle ORANGE paper clip (sharp corners) */
  --note-width: 285px;
  background: linear-gradient(155deg, #f8f1de 0%, #ecdfb9 100%);
  border-radius: 0;
}
.gh-team-exp .person-note--v6::before { content: none; }
.gh-team-exp .person-note--v6::after {
  content: ''; position: absolute; top: -9px; right: 16px;
  width: 10px; height: 22px;
  border: 2px solid var(--color-orange);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  transform: rotate(-4deg);
  box-shadow: 0 1px 1.5px rgba(0,0,0,.18);
}
[dir="rtl"] .gh-team-exp .person-note--v6::after { right: auto; left: 16px; }
.gh-team-exp .person-note--v7 {
  /* 7: very pale warm paper, faint ruled lines, slight natural curl */
  --note-width: 330px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 23px, rgba(101,82,43,.08) 23px 24px),
    linear-gradient(165deg, #fbf8f0 0%, #f2ebd9 88%, #e9dfc4 100%);
  border-radius: var(--radius-note) var(--radius-note) 10px 2px;
  box-shadow: 0 3px 10px rgba(0,0,0,.22), inset -10px -8px 14px -12px rgba(120,100,60,.28);
}
.gh-team-exp .person-note--v7::before { content: none; }

/* FRIDGE CARD READABILITY PASS (2026-11-11): clearer hierarchy -- name strongest, role a quiet small-caps
   label separated by a hairline, the story in a calm, slightly larger reading size with more leading. */
.gh-team-exp .person-note__role {
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.35;
  color: #8a7645;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(138, 118, 69, .28);
}
.gh-team-exp .person-note__name {
  font-family: var(--font-heading);
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 4px;
  color: #3c3323;
}
.gh-team-exp .person-note__line {
  font-size: .95rem;
  color: #463c2c;
  margin: 0 0 10px;
  line-height: 1.6;
}
.gh-team-exp .person-note__line--personal { color: #463c2c; }
[dir="rtl"] .gh-team-exp .person-note__role { letter-spacing: 0; }
.gh-team-exp .person-note__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-forest);
  border-bottom: 1.5px solid var(--color-orange);
  padding-bottom: 2px;
  text-decoration: none; /* always renders, for every person (see app.js ctaMarkup()) -- a real <a href> for
    people with a live Agent Profile route, an inert <span> (same class, no href/click behavior) for everyone
    else. Reset here so the anchor never picks up a default browser underline; the span never had one to
    begin with, so this rule is a no-op for it -- appearance stays identical either way. */
}
.gh-team-exp .person-note__cta:hover { color: var(--color-orange); }
.gh-team-exp .person-note__flourish {
  font-family: var(--font-hand);
  color: var(--color-orange);
  font-size: 1.2rem;
}

/* ---- scroll/swipe discovery indicator ----
   Small, minimal, premium -- a thin line-art icon plus one short
   line of copy, never a button, never a generic emoji. Visible only
   on chapter 0 (app.js toggles .is-visible); GREEN HOME orange
   appears only as a tiny accent (the dot / chevron stroke), never as
   the indicator's own color. Respects safe-area-inset-bottom so it
   never collides with a phone's home-indicator gesture bar. */
/* CAMERA/UI POLISH PASS: added background/border-radius/padding only -- position, text, icon, and
   functionality (data-mode swap, .is-visible opacity toggle) all untouched. A restrained dark
   translucent pill so the indicator stays legible against bright passages of the office photo
   (previously relying on text-shadow alone) without ever reading as a CTA button. */
.gh-team-exp .scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: rgba(250, 247, 241, .88);
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
  background: rgba(16, 16, 14, .38);
  border-radius: 14px;
  padding: 10px 20px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
.gh-team-exp .scroll-indicator.is-visible { opacity: 1; }
.gh-team-exp .scroll-indicator__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.gh-team-exp .scroll-indicator__icon {
  display: flex;
  animation: scrollIndicatorBob 2.6s ease-in-out infinite;
}
/* only the icon matching the active mode renders */
.gh-team-exp .scroll-indicator:not([data-mode="mobile"]) .scroll-indicator__icon--mobile,
.gh-team-exp .scroll-indicator[data-mode="mobile"] .scroll-indicator__icon--desktop {
  display: none;
}
.gh-team-exp .scroll-indicator__dot { animation: scrollIndicatorDot 2.6s ease-in-out infinite; }
.gh-team-exp .scroll-indicator__chev { animation: scrollIndicatorChev 2.6s ease-in-out infinite; }

@keyframes scrollIndicatorBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes scrollIndicatorDot {
  0% { opacity: 1; transform: translateY(0); }
  55%, 100% { opacity: 0; transform: translateY(7px); }
}
@keyframes scrollIndicatorChev {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .gh-team-exp .scroll-indicator__icon,
  .gh-team-exp .scroll-indicator__dot,
  .gh-team-exp .scroll-indicator__chev {
    animation: none;
  }
}

.gh-team-exp .scroll-track { width: 100%; }

/* ==========================================================================
   REDUCED MOTION FALLBACK
   ========================================================================== */

.gh-team-exp .reduced-fallback { display: none; padding: 120px clamp(20px,6vw,80px) 60px; max-width: 900px; margin: 0 auto; }
html[data-motion="reduced"] .gh-team-exp .reduced-fallback { display: block; }
html[data-motion="reduced"] .gh-team-exp #experience { display: none; }

.gh-team-exp .reduced-fallback__title { font-size: clamp(1.8rem,4vw,2.6rem); margin-bottom: 40px; color: var(--color-forest); }
.gh-team-exp .reduced-fallback__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid rgba(0,0,0,.08);
}
.gh-team-exp .reduced-fallback__item img { width: 84px; height: 84px; object-fit: cover; border-radius: 4px; flex: none; }
.gh-team-exp .reduced-fallback__item h3 { font-size: 1.15rem; margin-bottom: 2px; }
.gh-team-exp .reduced-fallback__item p { margin: 0 0 8px; color: var(--color-warm-grey); font-size: .92rem; }
/* REDUCED-MOTION PARITY (2026-11-11): role as a quiet label, then the full card text at a comfortable reading size. */
.gh-team-exp .reduced-fallback__item .reduced-fallback__role { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 10px; }
[dir="rtl"] .gh-team-exp .reduced-fallback__item .reduced-fallback__role { letter-spacing: 0; }
.gh-team-exp .reduced-fallback__item .reduced-fallback__story { color: #463c2c; font-size: .98rem; line-height: 1.65; margin: 0 0 10px; max-width: 62ch; }

/* ==========================================================================
   ALL TEAM DIRECTORY
   ========================================================================== */

/* z-index raised from the Lab source's 80 to 2100 (main-site integration): the standalone Lab's own
   header/nav sat at a lower z-index than this modal (see its dropped .site-header rule), so 80 was
   plenty. The main site's REAL fixed header is z-index:1000 -- at 80, this modal's backdrop rendered
   BEHIND it, leaving the header's nav/language-switcher fully visible and clickable over the "dimmed"
   backdrop instead of covered by it (confirmed in testing: a click meant for this panel's close button
   landed on the header's language switcher instead and changed site language mid-modal). 2100 clears
   every documented main-site z-index tier (header 1000, mobile-menu 999, nav-dropdown 1100, and the main
   site's own 2000-tier skip-link/lead-modal/lightbox, which never overlap this modal's own open state
   in practice) with room to spare -- a pure stacking-layer fix, no visual/geometry value touched. */
/* PREMIUM TEAM DIRECTORY PASS: full visual/markup redesign (this comment block replaces the old strip/list
   design's own). The backdrop stays a CENTERED restrained scrim (not the old edge-docked full-height sidebar)
   so the Team world behind it stays part of the composition, matching the desktop hamburger drawer's own
   backdrop treatment. The panel itself is a self-contained card: a non-scrolling header (title + close) above
   a SEPARATE scrolling body -- .all-team__body, not the panel itself, carries overflow-y, so the header never
   drifts or gets covered by scrolled content (replaces the old fixed-position-header-over-gradient hack). See
   the .all-team__list/.all-team__tile rules further below for the actual editorial grid. z-index/backdrop
   click-to-close/ESC/focus-trap/body-scroll-lock/camera-pause are ALL pre-existing app.js behavior, completely
   untouched by this pass -- only presentation changed. */
.gh-team-exp .all-team {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(20,26,22,.46);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.gh-team-exp .all-team[data-open="true"] { visibility: visible; opacity: 1; transition: opacity .3s ease; }

/* Width: 70-80vw as a starting point, capped so it never stretches endlessly on ultra-wide desktops -- lands
   at ~78%/1123px (1440w), ~78%/1066px (1366w), capped at 1180px (1920w and beyond, ~61% there by design, a
   sensible ceiling rather than a literal percentage at that width). Height: 84vh (inside the requested
   75-85vh range), capped at 900px. The panel is a column flex box specifically so the header can stay a
   fixed-height, non-scrolling flex:none child while .all-team__body (below) is the ONE scrolling element --
   overflow-x:hidden guards against any accidental horizontal scroll axis (a previously-reported site-wide
   overflow bug class), overflow-y:hidden on the panel itself means content can only ever escape through the
   body's own explicit scroll container, never the panel/backdrop. */
.gh-team-exp .all-team__panel {
  width: clamp(620px, 78vw, 1180px);
  max-height: min(84vh, 900px);
  background: var(--color-cream);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(14px) scale(.985);
  opacity: 0;
  transition: transform .32s var(--ease-camera), opacity .32s var(--ease-camera);
}
.gh-team-exp .all-team[data-open="true"] .all-team__panel { transform: translateY(0) scale(1); opacity: 1; }

.gh-team-exp .all-team__header {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(24px, 4vw, 56px) 22px;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.gh-team-exp .all-team__heading { min-width: 0; }
/* Compact editorial header type: NAME/TITLE reuse the main site's OWN approved heading system (its root
   --font-display for en/fr/ru, --font-heebo for he -- the exact pattern index.html's global h1-h4 rule and
   the approved Agent Profile pages already use), inherited straight from :root since .gh-team-exp only
   defines its OWN separate --font-heading ('Frank Ruhl Libre', the Lab's placeholder serif, never approved
   for the real site and due to be removed elsewhere) -- that variable is deliberately NOT used anywhere in
   this new component. */
.gh-team-exp .all-team__header h2 {
  font-family: var(--font-display, serif);
  font-size: clamp(1.5rem, 2.1vw, 1.85rem);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--color-forest);
}
html[dir="rtl"] .gh-team-exp .all-team__header h2 {
  font-family: var(--font-heebo, 'Heebo', sans-serif);
  font-weight: 800;
  letter-spacing: -.01em;
}
.gh-team-exp .all-team__subtitle {
  margin-top: 5px;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 400;
  color: var(--color-warm-grey);
}
.gh-team-exp .all-team__header .icon-button { flex: none; margin-top: 2px; }

.gh-team-exp .icon-button {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.06);
  font-size: 1rem;
}
.gh-team-exp .icon-button:hover { background: rgba(0,0,0,.12); }

/* The ONE scroll container for the whole directory -- see the panel-level comment above. overflow-x:hidden
   here too as a second, redundant guard against a horizontal scroll axis ever opening up. */
.gh-team-exp .all-team__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 34px clamp(24px, 4vw, 56px) 52px;
  -webkit-overflow-scrolling: touch;
}

/* TEAM DIRECTORY -- FINAL CORRECTION PASS: the 3-column large-portrait grid (an earlier version of this
   pass) is REPLACED entirely with thin horizontal editorial strips -- explicitly rejected as reading too much
   like an ecommerce/agent-card grid. Each person is now one flex row (photo | info | CTA); .all-team__list is
   plain block flow (each .all-team__tile is a block-level <article>, stacking vertically with zero grid
   machinery needed). No card container, no border-radius on the row itself, no shadow anywhere -- separation
   between rows comes ONLY from the alternating background tone below, never a border/divider line. */
.gh-team-exp .all-team__list {}

/* ~129px tall at the 84px photo width below (105px photo height + 12px top/bottom padding) -- inside the
   requested 110-135px range, thin enough that 5-6 people are visible at once in a typical desktop viewport
   without scrolling, per this pass's own "immediately feel like a sophisticated Team index" goal. Plain
   flexbox row: in RTL this naturally renders photo on the right/CTA on the left (Hebrew reading order), and
   the exact mirror in LTR, for free -- no per-language layout variant needed anywhere in this rule. */
.gh-team-exp .all-team__tile {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 28px);
  padding: 12px clamp(20px, 3vw, 36px);
}
/* Alternating material tones -- both reused directly from the SAME palette every other part of this file
   already uses (--color-cream, the warm off-white the whole directory panel itself sits on, and
   --color-stone, the site's own soft warm grey -- see the .gh-team-exp{--color-*} tokens at the top of this
   file) -- not new colors invented for this pass, and not a strong/zebra-table grey. */
.gh-team-exp .all-team__tile:nth-child(odd)  { background: var(--color-cream); }
.gh-team-exp .all-team__tile:nth-child(even) { background: var(--color-stone); }

/* Strip photo: present but controlled, per this pass's own 75-95px width range (84px). Same 4:5 editorial
   portrait ratio and object-fit:cover/object-position:center-top discipline as before (never stretches/warps
   the source image) -- only the CONTAINER size changed, not the cropping discipline. flex:none so it never
   compresses when the info column needs the space; barely-there 2px radius, no border, no shadow. */
.gh-team-exp .all-team__photo {
  display: block;
  flex: none;
  width: 84px;
  /* height MUST be explicit "auto" here -- the <img> markup carries width/height attributes (a11y/CLS best
     practice, giving the browser an intrinsic size before it decodes) which the UA stylesheet turns into a
     LOW-priority `height` declaration in the cascade; without this rule that's still the only declaration for
     `height`, so it "wins" by being uncontested, height stops computing as auto, and aspect-ratio -- which
     only fills in a dimension left auto -- silently never engages, rendering the raw HTML attribute size
     instead of 84x105. This one declaration is what makes aspect-ratio actually apply. */
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  background: var(--color-paper);
  transition: transform .45s var(--ease-camera);
}
@media (hover: hover) {
  .gh-team-exp .all-team__tile:hover .all-team__photo { transform: scale(1.02); }
}

/* Middle info column: takes the remaining row width (min-width:0 lets long names/roles ellipsis-safe truncate
   rather than force the row to overflow) so the CTA after it always has room to sit at the row's own trailing
   edge with real breathing room, matching "PHOTO | NAME+ROLE | breathing space | CTA". */
.gh-team-exp .all-team__info { flex: 1 1 auto; min-width: 0; }

/* Typographic hierarchy: NAME is primary (same reused --font-display/--font-heebo pair as the header title --
   the main site's OWN approved heading system, see the header h2 rule's own comment above; .gh-team-exp's own
   --font-heading, 'Frank Ruhl Libre', is deliberately never used anywhere in this component), ROLE is
   secondary (small, quiet, --font-body regular), CTA is tertiary but clearly interactive (see the
   .person-note__cta override below -- same ctaMarkup() output every other CTA in this file uses). */
.gh-team-exp .all-team__name {
  margin: 0;
  font-family: var(--font-display, serif);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .005em;
  color: var(--color-graphite);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[dir="rtl"] .gh-team-exp .all-team__name {
  font-family: var(--font-heebo, 'Heebo', sans-serif);
  font-weight: 800;
  letter-spacing: -.01em;
}
.gh-team-exp .all-team__role {
  margin: 3px 0 0;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  color: var(--color-warm-grey);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Scoped override of the shared CTA (same ctaMarkup() output the cinematic notes use) -- smaller/quieter here
   to read as clearly tertiary, flex:none so it never gets squeezed by the info column, and the flourish arrow
   drops the notes' --font-hand cursive (wrong register for a clean editorial row) in favor of the surrounding
   font's own glyph. Direction/hover/real-link-vs-inert-span behavior are 100% the base .person-note__cta
   rule, untouched -- this only restyles size/weight/spacing for this context. */
.gh-team-exp .all-team__tile .person-note__cta {
  flex: none;
  margin: 0;
  padding-bottom: 1px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}
.gh-team-exp .all-team__tile .person-note__flourish { font-family: inherit; font-size: 1em; transition: transform .2s var(--ease-camera); }
@media (hover: hover) {
  .gh-team-exp .all-team__tile .person-note__cta:hover .person-note__flourish { transform: translateX(3px); }
  html[dir="rtl"] .gh-team-exp .all-team__tile .person-note__cta:hover .person-note__flourish { transform: translateX(-3px); }
}

/* ==========================================================================
   PROFILE LAYER
   ========================================================================== */

/* z-index raised from the Lab source's 90 to 2110 -- same reason as .all-team above (kept 10 higher, the
   same relative gap the Lab source used, so a profile opened while the all-team panel happens to be
   behind it still stacks correctly). */
.gh-team-exp .profile {
  position: fixed;
  inset: 0;
  z-index: 2110;
  background: rgba(15, 20, 17, .78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.gh-team-exp .profile[data-open="true"] { visibility: visible; opacity: 1; transition: opacity .3s ease; }

.gh-team-exp .profile__panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(760px, 92vh);
  overflow-y: auto;
  background: var(--color-cream);
  display: grid;
  grid-template-columns: 340px 1fr;
  border-radius: 4px;
  transform: translateY(16px);
  transition: transform .35s var(--ease-camera);
}
.gh-team-exp .profile[data-open="true"] .profile__panel { transform: translateY(0); }

.gh-team-exp .profile__close { position: absolute; top: 16px; inset-inline-start: 16px; background: rgba(0,0,0,.06); z-index: 2; }

.gh-team-exp .profile__portrait-wrap { background: var(--color-stone); }
.gh-team-exp .profile__portrait { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }

.gh-team-exp .profile__content { padding: 64px 44px 44px; }
.gh-team-exp .profile__role { color: var(--color-orange); font-size: .85rem; font-weight: 700; letter-spacing: .05em; margin-bottom: 6px; }
.gh-team-exp .profile__name { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--color-forest); margin-bottom: 20px; }
.gh-team-exp .profile__bio { color: var(--color-graphite); font-size: 1rem; line-height: 1.7; margin-bottom: 26px; }
.gh-team-exp .profile__meta-row { display: flex; gap: 10px; font-size: .88rem; padding: 8px 0; border-top: 1px solid rgba(0,0,0,.08); }
.gh-team-exp .profile__meta-row dt { color: var(--color-warm-grey); flex: none; width: 6em; }
.gh-team-exp .profile__meta-row dd { margin: 0; color: var(--color-graphite); }

/* the standalone page's own .site-footer ("...פרוטוטייפ מעבדה פנימי")
   is intentionally dropped -- not ported into this file at all, see
   the header note above; the main site's real footer is used instead. */

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 640px) {
  .gh-team-exp .profile__panel { grid-template-columns: 1fr; }
  .gh-team-exp .profile__portrait { min-height: 200px; }
  .gh-team-exp .profile__content { padding: 24px 22px 34px; }
  .gh-team-exp .world__brand-phrase { font-size: 26px; }

  /* TEAM DIRECTORY -- FINAL CORRECTION PASS -- MOBILE: the desktop strips carry over here too (tested against
     390-430px: an 84px-wide desktop photo + name/role/CTA still reads cleanly in a single row at these
     widths, so forcing a completely different mobile-only composition -- e.g. the earlier large-portrait-per-
     row draft -- is not necessary and would work against "restrained, not aggressive"). The panel becomes a
     near-full-viewport sheet (safe-area-aware, no floating centered card, corners eased rather than sharp) so
     header + close + the start of the scrolling list fit naturally without collision; only the row's own
     internal sizing (photo width, gap, padding, font sizes) is tuned down from desktop's numbers, same
     structure/classes, no separate template. */
  .gh-team-exp .all-team { padding: 0; }
  .gh-team-exp .all-team__panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: none;
    border-radius: 0;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .gh-team-exp .all-team__header { padding: 20px 18px 14px; }
  .gh-team-exp .all-team__header h2 { font-size: 1.28rem; }
  .gh-team-exp .all-team__body { padding: 6px 14px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .gh-team-exp .all-team__tile { padding: 13px 8px; gap: 14px; }
  .gh-team-exp .all-team__photo { width: 64px; }
  .gh-team-exp .all-team__name { font-size: .97rem; }
  .gh-team-exp .all-team__role { font-size: .78rem; }
  /* Touch target: the CTA's visual size (font-size/underline) stays the same restrained tertiary treatment as
     desktop -- padding alone expands the actual tappable area to a comfortable ~44px without changing how it
     looks. Same for the header close button, already 38px via the shared .icon-button rule (untouched). */
  .gh-team-exp .all-team__tile .person-note__cta { padding: 12px 4px; font-size: .74rem; }
}

/* ==========================================================================
   REDUCED MOTION (OS-level safety net; JS also switches to the static
   fallback markup entirely — see app.js)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .gh-team-exp .all-team__panel,
  .gh-team-exp .profile__panel,
  .gh-team-exp .all-team,
  .gh-team-exp .profile,
  .gh-team-exp .person-note {
    transition: none !important;
  }
}
