/* ==========================================================================
   FLASHCLOUD — home v2 additions
   The record (LED wall) · Three worlds · Heard backstage (crew passes) · Clients
   Builds on main.css tokens; adds one derived tint (festoon warm white).
   ========================================================================== */

:root {
  --led-college: #EE5826;  /* = --flash */
  --led-wedding: #F6DDB4;  /* festoon warm white, bone pushed toward flash */
  --led-corp: #29A8E0;     /* = --cloud */
  --led-rest: #8E8A84;     /* dimmed bone */
}

/* -------------------------------------------------------------- hero: progress bar shows only the current project */
.hero--slides .hs-tab { padding-top: 14px; padding-bottom: 16px; }
.hero--slides .hs-tab .hs-k { display: none; }
.hero--slides .hs-tab .hs-t { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .6s var(--ease); white-space: nowrap; }
.hero--slides .hs-tab.is-on .hs-t { opacity: 1; transform: none; }
.hero--slides .hs-tab:hover .hs-t { opacity: .75; transform: none; }
@media (max-width: 960px) { .hero--slides .hs-tab .hs-t { white-space: normal; font-size: .875rem; } }

/* stronger shade under the header so the menu reads over bright photos */
.hero--slides .hs-media::after {
  background:
    linear-gradient(180deg, rgba(10,11,13,.78) 0%, rgba(10,11,13,.32) 14%, rgba(10,11,13,0) 32%, rgba(10,11,13,0) 45%, rgba(10,11,13,.9) 100%),
    linear-gradient(90deg, rgba(10,11,13,.6) 0%, rgba(10,11,13,0) 60%);
}

/* shared two-column section head */
.duo-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px clamp(24px, 4vw, 72px); align-items: end; margin-bottom: clamp(36px, 4.5vw, 64px); }
.duo-head .lead { justify-self: end; }
.big-head { font-size: clamp(2.5rem, 1rem + 5vw, 6.6rem); line-height: .94; letter-spacing: -.05em; font-weight: 500; }
.duo-head--stack { grid-template-columns: minmax(0, 1fr); }
.duo-head--stack .lead { max-width: 40ch; }
.rec-title span { display: block; }

/* -------------------------------------------------------------- the record: LED wall */
.rec { padding-bottom: clamp(72px, 8vw, 128px); }
.led { margin: 0; position: relative; background: #0C0E11; border: 1px solid var(--line); border-radius: 6px; padding: clamp(10px, 1.3vw, 18px); box-shadow: 0 40px 120px -60px rgba(238, 88, 38, .35); }
.led canvas { display: block; width: 100%; touch-action: pan-y; cursor: crosshair; }
.led-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; color: var(--text-3); font-size: .8125rem; }
.led-bar .led-total { flex: none; white-space: nowrap; color: var(--text); font-size: clamp(1rem, .9rem + .4vw, 1.25rem); font-weight: 500; font-variant-numeric: tabular-nums; }

.led-key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line); }
.lk {
  position: relative; display: grid; align-content: start; gap: 10px; text-align: left;
  padding: 22px 20px 4px 0; color: var(--text-2); transition: opacity .45s var(--ease);
}
.lk + .lk { padding-left: 20px; border-left: 1px solid var(--line); }
.lk::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.lk:hover::before, .lk.is-on::before, .lk[aria-pressed="true"]::before { transform: scaleX(1); }
.lk-n { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: clamp(2.1rem, 1rem + 2.5vw, 3.7rem); line-height: 1; letter-spacing: -.045em; font-weight: 500; font-variant-numeric: tabular-nums; }
.lk-n i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); }
.lk-t { font-size: var(--fs-small); line-height: 1.4; max-width: 24ch; }
.led-key.has-focus .lk:not(.is-on) { opacity: .35; }

/* -------------------------------------------------------------- what we do: panels size to their content (no reserved gap) */
.cx-panels { min-height: 0; }

/* -------------------------------------------------------------- three worlds */
.worlds-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.wt-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.wt { position: relative; display: flex; align-items: baseline; gap: 14px; text-align: left; padding: 20px 20px 22px 0; color: var(--text-3); transition: color .4s; }
.wt + .wt { padding-left: 20px; border-left: 1px solid var(--line); }
.wt::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.wt.is-on::before { transform: scaleX(1); }
.wt:hover, .wt.is-on { color: var(--text); }
.wt-dot { flex: none; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); opacity: .5; transition: opacity .4s; }
.wt.is-on .wt-dot { opacity: 1; }
.wt-n { font-size: clamp(1.6rem, 1rem + 1.5vw, 2.7rem); letter-spacing: -.045em; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.wt-t { font-size: clamp(1.05rem, .9rem + .55vw, 1.4rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.world-cta { margin-top: 28px; align-self: flex-start; }
.cx-panel .spec-list { margin-top: 24px; }

.world { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.4vw, 56px); margin-top: clamp(24px, 3vw, 40px); }
.world[hidden] { display: none; }
.world.is-on { animation: fc-rise .7s var(--ease) both; }
.world-stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); align-self: start; }
.world-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .8s var(--ease), transform 1.6s var(--ease); }
.world-stage img.is-on { opacity: 1; transform: none; }
.world-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 20px 16px; background: linear-gradient(180deg, rgba(10,11,13,0), rgba(10,11,13,.82)); color: var(--text-2); font-size: .875rem; }
.world-side { display: flex; flex-direction: column; }
.world-lead { color: var(--text-2); max-width: 40ch; margin-bottom: 22px; font-size: var(--fs-body); }
.world-list { border-top: 1px solid var(--line); }
.wl { display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 4px 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.wl-name { font-size: clamp(1.1rem, 1rem + .55vw, 1.45rem); letter-spacing: -.025em; line-height: 1.15; font-weight: 500; color: var(--text-2); transition: transform .5s var(--ease), color .3s; }
.wl-meta { grid-column: 1; color: var(--text-3); font-size: .875rem; line-height: 1.35; }
.wl-go { grid-column: 2; grid-row: 1 / span 2; width: 16px; height: 16px; color: var(--text-3); transition: transform .5s var(--ease), color .3s; }
.wl { position: relative; }
.wl::before { content: ""; position: absolute; left: -16px; top: 50%; width: 3px; height: 0; border-radius: 3px; background: var(--flash); transform: translateY(-50%); transition: height .45s var(--ease); }
.wl.is-on::before { height: 60%; }
.wl.is-on .wl-name { color: var(--text); }
.wl.is-on .wl-go { color: var(--flash); }
a.wl:hover .wl-name { color: var(--text); transform: translateX(8px); }
a.wl:hover .wl-go { color: var(--flash); transform: translateX(4px); }
.world-side .link-line { margin-top: 26px; align-self: flex-start; }

/* -------------------------------------------------------------- heard backstage: crew passes */
.voices { overflow: hidden; }
.passes { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
.passes::-webkit-scrollbar { display: none; }
.passes-track { position: relative; display: flex; gap: clamp(14px, 1.8vw, 28px); width: max-content; min-width: 100%; padding: 62px 2px 34px; }
/* the rail the lanyards hang from */
.passes-track::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 3px; border-radius: 3px; background: linear-gradient(180deg, #2A2E35, #15171B); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.pass {
  --r: 0deg; position: relative; flex: none; width: clamp(148px, 14.5vw, 196px); scroll-snap-align: start;
  transform-origin: 50% -48px; transform: rotate(var(--r)); transition: transform .9s cubic-bezier(.25, 1.5, .45, 1);
  text-align: left; border-radius: 12px;
}
/* lanyard strap */
.pass::before {
  content: ""; position: absolute; left: 50%; top: -48px; width: 12px; height: 54px; margin-left: -6px; border-radius: 2px;
  background: repeating-linear-gradient(180deg, var(--flash) 0 6px, var(--flash-2) 6px 8px);
}
.pass::after { content: ""; position: absolute; left: 50%; top: 2px; width: 20px; height: 12px; margin-left: -10px; border-radius: 3px; background: linear-gradient(180deg, #C9C4BC, #8F8A83); }
.pass-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; aspect-ratio: 5 / 7; overflow: hidden;
  padding: 30px 16px 18px; border-radius: 12px; background: var(--bone); color: var(--ink);
  box-shadow: 0 24px 40px -22px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.4);
}
/* punched slot */
.pass-card::before { content: ""; position: absolute; top: 12px; left: 50%; width: 36px; height: 7px; margin-left: -18px; border-radius: 6px; background: var(--bg-2); box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
/* laminate sheen */
.pass-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 60%); transform: translateX(-120%); transition: transform 1.1s var(--ease); pointer-events: none; }
.pass:hover .pass-card::after, .pass[aria-selected="true"] .pass-card::after { transform: translateX(120%); }
.pass-logo { height: 52px; display: flex; align-items: center; }
.pass-logo img { max-height: 46px; max-width: 82%; width: auto; height: auto; object-fit: contain; }
.pass-logo img[data-mono] { filter: brightness(0); opacity: .88; }
.pass-word { font-size: 1.15rem; line-height: 1; letter-spacing: -.035em; font-weight: 600; }
.pass-access { align-self: flex-start; font-size: .6875rem; font-weight: 600; letter-spacing: .02em; color: var(--bone); background: var(--ink); padding: 4px 8px; border-radius: 4px; }
.pass-role { margin-top: auto; font-size: .9375rem; line-height: 1.15; letter-spacing: -.012em; font-weight: 600; }
.pass-org { font-size: .8125rem; line-height: 1.3; color: var(--ink-2); }
.pass-code { height: 22px; opacity: .8; border-radius: 1px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px); }
.pass-band { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--c, var(--flash)); }
.pass:hover { transform: rotate(0deg) translateY(4px); }
.pass[aria-selected="true"] { transform: rotate(0deg) translateY(16px); }
.pass[aria-selected="true"] .pass-card { box-shadow: 0 30px 50px -22px rgba(0,0,0,.95), 0 0 0 2px var(--flash); }
.pass:focus-visible { outline: 2px solid var(--cloud); outline-offset: 6px; }

.vstage { border-top: 1px solid var(--line); padding-top: clamp(28px, 3.4vw, 48px); min-height: clamp(220px, 22vw, 300px); }
.vq { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 2.4vw, 40px); }
.vq[hidden] { display: none; }
.vq:not([hidden]) { animation: fc-rise .6s var(--ease) both; }
.vq-mark { font-family: Georgia, "Times New Roman", serif; font-size: clamp(5rem, 2rem + 7vw, 10rem); line-height: .8; color: var(--flash); font-weight: 400; }
.vq blockquote { margin: 0; }
.vq blockquote p { font-size: clamp(1.45rem, 1rem + 1.8vw, 2.75rem); line-height: 1.16; letter-spacing: -.03em; font-weight: 500; max-width: 30ch; }
.vq-cite { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 26px; font-style: normal; color: var(--text-2); }
.vq-cite b { color: var(--text); font-weight: 500; }
/* quote not yet supplied */
.vq-pending { display: grid; gap: 14px; max-width: 780px; }
.vq-pending i { display: block; height: clamp(18px, 2vw, 28px); border-radius: 6px; background: linear-gradient(90deg, rgba(241,238,232,.06), rgba(241,238,232,.13), rgba(241,238,232,.06)); background-size: 200% 100%; animation: fc-shimmer 2.4s linear infinite; }
.vq-pending i:nth-child(2) { width: 88%; }
.vq-pending i:nth-child(3) { width: 56%; }
.vq-tag { display: inline-flex; align-items: center; gap: 8px; width: max-content; margin-top: 6px; padding: 6px 12px; border: 1px dashed rgba(238,88,38,.65); border-radius: 99px; color: var(--flash); font-size: .8125rem; }

/* -------------------------------------------------------------- clients */
.cl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--ink-line); border-left: 1px solid var(--ink-line); }
.cl { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .84; padding: 20px 16px 42px; border-right: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); transition: background .5s var(--ease); }
.cl img { width: auto; height: auto; max-width: 76%; max-height: clamp(40px, 4.4vw, 64px); object-fit: contain; filter: brightness(0); opacity: .8; transition: filter .5s var(--ease), opacity .5s, transform .7s var(--ease); }
.cl img.is-emblem { max-height: clamp(56px, 5.6vw, 84px); }
.cl img.is-wide { max-width: 84%; }
.cl span { position: absolute; left: 16px; right: 16px; bottom: 14px; color: var(--ink-2); font-size: .8125rem; line-height: 1.25; }
.cl:hover { background: var(--bone-2); }
.cl:hover img { opacity: 1; transform: scale(1.04); }
.cl:hover img:not([data-mono]) { filter: none; }

/* -------------------------------------------------------------- motion */
@keyframes fc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fc-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .world.is-on, .vq:not([hidden]) { animation: none; }
  .vq-pending i { animation: none; }
  .pass, .pass-card::after { transition: none; }
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .cl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .duo-head { grid-template-columns: minmax(0, 1fr); }
  .duo-head .lead { justify-self: start; }
  .led-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lk:nth-child(3) { padding-left: 0; border-left: 0; }
  .lk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lk { padding-bottom: 18px; }
  .world { grid-template-columns: minmax(0, 1fr); }
  .wt { flex-direction: column; gap: 8px; }
  .wt-dot { align-self: flex-start; }
}
@media (max-width: 640px) {
  .worlds-head { flex-direction: column; align-items: flex-start; }
  .wt { padding-right: 10px; }
  .wt + .wt { padding-left: 12px; }
  .wt-t { font-size: .875rem; }
  .cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl { padding: 14px 10px 36px; }
  .cl span { left: 10px; right: 10px; bottom: 10px; font-size: .75rem; }
  .vq { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .vq-mark { font-size: 4.5rem; line-height: .6; }
  .led-bar { font-size: .75rem; }
}
@media (max-width: 420px) {
  .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lk-t { font-size: .875rem; }
}

/* -------------------------------------------------------------- trusted by: two drifting rows of client logos */
.trusted { overflow: hidden; }
.trusted-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px clamp(24px, 4vw, 72px); align-items: end; margin-bottom: clamp(36px, 4.5vw, 64px); }
.trusted-head .lead { justify-self: end; max-width: 40ch; }
.tr-rows { display: grid; gap: clamp(10px, 1.2vw, 16px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.tr-row { display: flex; width: max-content; }
.tr-track { display: flex; gap: clamp(10px, 1.2vw, 16px); padding: 0 clamp(10px, 1.2vw, 16px) 0 0; margin: 0; list-style: none; animation: tr-drift 52s linear infinite; }
.tr-row--rev .tr-track { animation-duration: 60s; animation-direction: reverse; }
.tr-rows:hover .tr-track, .tr-rows:focus-within .tr-track { animation-play-state: paused; }
@keyframes tr-drift { to { transform: translateX(-100%); } }
.tr { position: relative; flex: none; display: grid; place-items: center; width: clamp(168px, 15vw, 236px); aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(241,238,232,.035), rgba(241,238,232,.01)); transition: background .45s var(--ease), border-color .45s var(--ease), transform .6s var(--ease); }
.tr img { width: auto; height: auto; max-width: 60%; max-height: 44%; object-fit: contain; filter: brightness(0) invert(1); opacity: .7; transition: filter .45s var(--ease), opacity .45s, transform .6s var(--ease); }
.tr img.is-emblem { max-height: 60%; }
.tr img.is-wide { max-width: 72%; }
.tr-name { position: absolute; left: 14px; right: 14px; bottom: 9px; font-size: .75rem; line-height: 1.2; color: var(--ink-2); opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .5s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr:hover { background: var(--bone); border-color: var(--bone); transform: translateY(-3px); }
.tr:hover img { filter: none; opacity: 1; transform: translateY(-6px) scale(1.04); }
.tr:hover img[data-mono] { filter: brightness(0); }
.tr:hover .tr-name { opacity: 1; transform: none; }
@media (max-width: 960px) { .trusted-head { grid-template-columns: minmax(0, 1fr); } .trusted-head .lead { justify-self: start; } }
@media (max-width: 640px) { .tr { width: 148px; border-radius: 10px; } }
@media (prefers-reduced-motion: reduce) {
  .tr-track { animation: none; }
  .tr-row { width: auto; padding-inline: var(--gutter); }
  .tr-track[aria-hidden="true"] { display: none; }
  .tr-track { flex-wrap: wrap; }
  .tr-rows { -webkit-mask-image: none; mask-image: none; }
}

/* round seals (BMC) keep their own colours and sit a little larger */
.pass-logo img.pass-seal { max-height: 52px; max-width: 52px; }

/* round full-colour seals (BMC): soft greyscale at rest, real colours on hover */
.tr img.is-seal { max-height: 66%; max-width: 66%; filter: grayscale(1) brightness(1.08); opacity: .62; }
.tr:hover img.is-seal { filter: none; opacity: 1; }

/* full-colour marks that lose detail as a flat silhouette (PNB): soft greyscale at rest, real colours on hover */
.tr img.is-color { max-width: 64%; max-height: 46%; filter: grayscale(1) brightness(1.35) contrast(.9); opacity: .6; }
.tr:hover img.is-color { filter: none; opacity: 1; }
/* round marks (Mumbai Hacks) sit a little larger */
.tr img.is-mark { max-height: 58%; max-width: 58%; }
