/* BrinkStudios Status — black & white, light 3D */
:root {
  --bg: #0a0a0b; --bg-2: #111113; --white: #fafafa; --text: #d9d9dc; --muted: #8b8b91;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Space Grotesk", "Inter", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif;
  --up: #fafafa; --degraded: #9d9da3; --down: #3a3a3f;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--text); font: 15px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: var(--display); color: var(--white); margin: 0; letter-spacing: -.02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.muted { color: var(--muted); font-size: .85rem; }

/* background: perspective grid */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(70% 50% at 50% 0%, rgba(255,255,255,.07), transparent 70%); }
.bg__grid { position: absolute; left: -50%; right: -50%; bottom: -20%; height: 70%;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 70px 70px; transform: perspective(600px) rotateX(72deg); transform-origin: 50% 100%; opacity: .35;
  mask-image: linear-gradient(to top, #000, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000, transparent 85%); }

/* top bar */
.top { position: sticky; top: 12px; z-index: 10; width: min(1080px, calc(100% - 28px)); margin: 12px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 12px 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10,10,11,.85); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 1rem var(--display); color: var(--white); }
.brand b { color: var(--muted); font-weight: 600; }
.brand em { font-style: normal; padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 99px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.top__right { display: flex; align-items: center; gap: 6px; }
.top__link { padding: .45em .85em; border-radius: 99px; color: var(--muted); font-size: .9rem; transition: color .2s, background .2s; }
.top__link:hover { color: var(--white); background: rgba(255,255,255,.06); }
.lang select { appearance: none; height: 38px; padding: 0 30px 0 14px; border: 1px solid var(--line-2); border-radius: 99px; background: rgba(255,255,255,.03); color: var(--white);
  font: 600 .8rem var(--display); letter-spacing: .08em; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.lang option { background: #111; }

.wrap { width: min(1080px, calc(100% - 28px)); margin: 0 auto; padding: 34px 0 40px; display: grid; gap: 18px; perspective: 1400px; }

/* cards tilt a little with the mouse (app.js) */
.card3d { transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .5s var(--ease), border-color .3s; }

/* hero with the orb */
.hero { position: relative; display: grid; grid-template-columns: 230px 1fr; align-items: center; gap: 26px; padding: 26px 34px; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 26px; background: radial-gradient(90% 140% at 0% 0%, #1c1c20, #0c0c0e 70%);
  box-shadow: 0 1px 0 #26262a, 0 2px 0 #1f1f23, 0 3px 0 #1a1a1e, 0 4px 0 #161619, 0 5px 0 #131315, 0 30px 50px -18px rgba(0,0,0,.9); }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.05; }
.hero__meta { margin: 12px 0 0; color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--white); font-size: .8rem; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.is-closed { color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 500 .74rem var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--white); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }

.orb { height: 210px; perspective: 700px; display: grid; place-items: center; }
.orb__stage { position: relative; width: 190px; height: 190px; transform-style: preserve-3d; animation: orb-tilt 9s ease-in-out infinite; }
@keyframes orb-tilt { 50% { transform: rotateX(10deg) rotateY(-14deg); } }
.orb__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); }
.orb__ring--1 { animation: r1 7s linear infinite; }
.orb__ring--2 { inset: 14px; border-style: dashed; animation: r2 5s linear infinite; }
.orb__ring--3 { inset: -14px; border-color: rgba(255,255,255,.14); animation: r3 12s linear infinite; }
.orb__ring::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff; }
@keyframes r1 { from { transform: rotateX(70deg) rotateZ(0); } to { transform: rotateX(70deg) rotateZ(360deg); } }
@keyframes r2 { from { transform: rotateY(70deg) rotateZ(360deg); } to { transform: rotateY(70deg) rotateZ(0); } }
@keyframes r3 { from { transform: rotateX(60deg) rotateY(30deg) rotateZ(0); } to { transform: rotateX(60deg) rotateY(30deg) rotateZ(360deg); } }
.orb__core { position: absolute; inset: 52px; border-radius: 50%; display: grid; place-items: center; transform: translateZ(20px);
  background: radial-gradient(circle at 35% 30%, #fff, #bdbdc2 45%, #55555b 100%); box-shadow: 0 0 50px rgba(255,255,255,.35), inset -8px -10px 20px rgba(0,0,0,.35);
  transition: background .6s, box-shadow .6s; }
.orb__icon { width: 34px; height: 34px; }
.orb__icon svg { width: 100%; height: 100%; fill: none; stroke: #0a0a0b; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero[data-state="degraded"] .orb__core, .hero[data-state="maintenance"] .orb__core { background: radial-gradient(circle at 35% 30%, #d9d9dc, #8d8d93 50%, #3d3d42); box-shadow: 0 0 34px rgba(255,255,255,.18); }
.hero[data-state="partial"] .orb__core, .hero[data-state="major"] .orb__core { background: radial-gradient(circle at 35% 30%, #5b5b61, #26262a 60%, #111); box-shadow: 0 0 0 2px #fff, 0 0 30px rgba(255,255,255,.2); animation: alarm 1.2s steps(2) infinite; }
.hero[data-state="partial"] .orb__icon svg, .hero[data-state="major"] .orb__icon svg { stroke: #fff; }
@keyframes alarm { 50% { box-shadow: 0 0 0 6px rgba(255,255,255,.35), 0 0 30px rgba(255,255,255,.3); } }
.hero[data-state="loading"] .orb__core { background: radial-gradient(circle at 35% 30%, #777, #222); }

/* open incidents banner */
.open { display: grid; gap: 12px; }
.alert { padding: 18px 22px; border: 1px solid #fff; border-radius: 18px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 10px, transparent 10px 20px), #121215; }
.alert__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.alert b { font: 600 1.08rem var(--display); color: var(--white); }
.tag { padding: 2px 10px; border-radius: 99px; font: 600 .68rem var(--display); letter-spacing: .14em; text-transform: uppercase; background: #fff; color: #000; }
.tag--ghost { background: none; color: var(--white); border: 1px solid var(--line-2); }
.alert p { margin: 8px 0 0; color: var(--text); }
.alert small { color: var(--muted); }

/* live numbers */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.stat { padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
  box-shadow: 0 1px 0 #222226, 0 2px 0 #1a1a1e, 0 3px 0 #141417, 0 18px 30px -14px rgba(0,0,0,.8); }
.stat b { display: block; font: 700 1.55rem var(--display); color: var(--white); }
.stat span { font-size: .78rem; color: var(--muted); }

/* panels */
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  box-shadow: 0 1px 0 #222226, 0 2px 0 #1a1a1e, 0 3px 0 #141417, 0 4px 0 #111113, 0 24px 40px -16px rgba(0,0,0,.85); }
.panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.panel h2 { font-size: 1.25rem; }
.legend { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); }
.legend .b { width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; }

.components { display: grid; gap: 22px; }
.comp__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.comp__name { display: flex; align-items: center; gap: 10px; }
.comp__name b { color: var(--white); font: 600 1rem var(--display); }
.comp__name small { color: var(--muted); font-size: .8rem; }
.comp__icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 9px; }
.comp__icon svg { width: 16px; height: 16px; fill: none; stroke: var(--white); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.comp__state { display: flex; align-items: center; gap: 10px; font-size: .84rem; white-space: nowrap; }
.comp__state em { font-style: normal; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 99px; font: 600 .74rem var(--display); letter-spacing: .06em; }
.pill--up { background: #fff; color: #000; }
.pill--degraded { background: none; color: #fff; border: 1px dashed #fff; }
.pill--down { background: #000; color: #fff; border: 1px solid #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.pill--maintenance { background: none; color: #fff; border: 1px solid var(--line-2); }
.pill--unknown { background: none; color: var(--muted); border: 1px solid var(--line); }

.bars { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 34px; }
.b { display: block; border-radius: 2px; background: rgba(255,255,255,.08); transform-origin: bottom; transition: transform .2s var(--ease); }
.bars .b:hover { transform: scaleY(1.25); }
.b--up { background: var(--up); }
.b--degraded { background: repeating-linear-gradient(135deg, #c9c9ce 0 3px, #6d6d73 3px 6px); }
.b--down { background: #0a0a0b; box-shadow: inset 0 0 0 1px #fff; background-image: linear-gradient(45deg, transparent 45%, #fff 45% 55%, transparent 55%); }
.b--none { background: rgba(255,255,255,.07); }
.days { display: flex; justify-content: space-between; margin-top: 10px; font-size: .72rem; color: var(--muted); letter-spacing: .06em; }

/* chart */
.chart { position: relative; height: 170px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .line { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .area { fill: url(#fade); }
.chart .grid { stroke: rgba(255,255,255,.08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .lbl { fill: var(--muted); font: 11px var(--body); }
.chart .empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }

/* history */
.history { display: grid; gap: 14px; }
.inc { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.inc__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.inc__top b { color: var(--white); font: 600 1rem var(--display); }
.inc__top time { margin-left: auto; color: var(--muted); font-size: .8rem; }
.inc ol { margin: 10px 0 0; padding: 0 0 0 16px; border-left: 1px solid var(--line-2); list-style: none; display: grid; gap: 8px; }
.inc li { position: relative; font-size: .88rem; }
.inc li::before { content: ""; position: absolute; left: -21px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid #fff; }
.inc li:last-child::before { background: #fff; }
.inc li span { color: var(--muted); margin-right: 8px; }
.none { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px dashed var(--line-2); border-radius: 14px; color: var(--muted); }

/* footer */
.foot { width: min(1080px, calc(100% - 28px)); margin: 0 auto 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .85rem; }
.foot a:hover { color: var(--white); }
.btn { display: inline-flex; align-items: center; padding: .8em 1.3em; border-radius: 99px; background: #fff; color: #000 !important; font: 600 .88rem var(--body); box-shadow: 0 4px 0 #8e8e93; transition: translate .12s, box-shadow .15s; }
.btn:active { translate: 0 3px; box-shadow: 0 1px 0 #8e8e93; }

/* tooltip over the bars */
.tip { position: fixed; z-index: 50; pointer-events: none; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #141417; color: var(--white); font-size: .8rem; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px)); box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.tip small { display: block; color: var(--muted); }

/* entrance */
.wrap > * { animation: rise .8s var(--ease) both; }
.wrap > *:nth-child(2) { animation-delay: .05s; } .wrap > *:nth-child(3) { animation-delay: .1s; } .wrap > *:nth-child(4) { animation-delay: .15s; }
.wrap > *:nth-child(5) { animation-delay: .2s; } .wrap > *:nth-child(6) { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: perspective(900px) translateY(30px) rotateX(18deg); } }

@media (max-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .top { border-radius: 22px; padding: 10px 12px; }
  .top__link { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; }
  .hero__meta, .eyebrow { justify-content: center; }
  .orb { height: 170px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 18px; }
  .bars { grid-template-columns: repeat(45, 1fr); }
  .bars .b:nth-child(-n+45) { display: none; }
  .comp__state em { display: none; }
  .legend { display: none; }
}
.is-hidden * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ═════════ protection screen ("EHI!") — same as the main site ═════════ */
/* no selecting / dragging, except the email */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img, svg { -webkit-user-drag: none; }
input, textarea, select, .foot a[href^="mailto"] { -webkit-user-select: text; user-select: text; }
@media print { body { display: none !important; } }

/* "HEY! what are you doing?" screen */
.hey { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; overflow: hidden; text-align: center; color: var(--white);
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #16161a, #050506 70%); opacity: 0; transition: opacity .35s; }
.hey.is-on { opacity: 1; }
.hey__glow { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.05) 0 1px, transparent 1px 60px); animation: hey-pulse 6s linear infinite; }
@keyframes hey-pulse { to { transform: scale(1.4); opacity: .2; } }
.hey__cubes span { position: absolute; top: -90px; left: var(--l); width: var(--w); height: var(--w); transform-style: preserve-3d; opacity: 0;
  animation: hey-fall var(--t) cubic-bezier(.45,0,.8,.6) var(--d) infinite; }
.hey__cubes i { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.04); }
.hey__cubes i:nth-child(1) { transform: translateZ(calc(var(--w) / 2)); }
.hey__cubes i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--w) / 2)); }
.hey__cubes i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.hey__cubes i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.hey__cubes i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--w) / 2)); background: rgba(255,255,255,.85); }
.hey__cubes i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--w) / 2)); }
@keyframes hey-fall { 0% { transform: translateY(0) rotateX(0) rotateY(0); opacity: 0; } 10% { opacity: 1; } 80% { opacity: .8; }
  100% { transform: translateY(118vh) rotateX(var(--r)) rotateY(var(--r)); opacity: 0; } }
.hey__main { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 24px 18px; max-height: 100vh; overflow-y: auto; }
.hey__logo { width: min(120px, 18vh); filter: drop-shadow(0 0 30px rgba(255,255,255,.35)); }
.hey__title { margin: 10px 0 0; font: 700 clamp(5rem, 18vw, 10rem)/1 var(--display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px var(--white);
  text-shadow: 0 0 60px rgba(255,255,255,.25); }
.hey__sub { margin: 18px 0 0; font: 700 clamp(1.3rem, 4vw, 2rem) var(--display); text-transform: uppercase; letter-spacing: .02em; }
.hey__sub span { color: var(--muted); }
.hey__text { max-width: 460px; margin: 12px 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.hey__count { margin-top: 16px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 99px; font: 600 .72rem var(--display); letter-spacing: .2em; text-transform: uppercase; }
.hey__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hey.is-on .hey__logo { animation: hey-drop .9s cubic-bezier(.2,1.3,.4,1) .05s backwards; }
.hey.is-on .hey__title { animation: hey-flip 1s var(--ease) .2s backwards; }
.hey.is-on .hey__sub, .hey.is-on .hey__text, .hey.is-on .hey__count, .hey.is-on .hey__actions { animation: hey-up .6s var(--ease) backwards; }
.hey.is-on .hey__sub { animation-delay: .45s; } .hey.is-on .hey__text { animation-delay: .55s; } .hey.is-on .hey__count { animation-delay: .65s; } .hey.is-on .hey__actions { animation-delay: .75s; }
@keyframes hey-drop { from { opacity: 0; transform: translateY(-60px) rotateY(180deg); } }
@keyframes hey-flip { from { opacity: 0; transform: perspective(700px) rotateX(-90deg) translateY(40px); filter: blur(10px); } }
@keyframes hey-up { from { opacity: 0; transform: translateY(20px); } }
.hey.is-shake .hey__main { animation: hey-shake .45s ease; }
@keyframes hey-shake { 20% { transform: translateX(-12px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(3px); } }
.hey__close { position: absolute; z-index: 3; top: 18px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2);
  border-radius: 50%; background: rgba(255,255,255,.04); color: var(--white); cursor: pointer; transition: background .2s, transform .3s var(--ease); }
.hey__close:hover { background: rgba(255,255,255,.12); transform: rotate(90deg); }
.hey__close svg { width: 18px; height: 18px; }
.hey-open { overflow: hidden; }
.hey-open body > *:not(.hey):not(.cursor) { filter: blur(4px); }


.btn--ghost { background: rgba(255,255,255,.04) !important; color: var(--white) !important; border: 1px solid var(--line-2); box-shadow: 0 4px 0 rgba(255,255,255,.14); }
.hey .btn { font-size: .95rem; padding: .95em 1.5em; }
@media (max-width: 640px) { .hey__actions { flex-direction: column; width: 100%; max-width: 320px; } .hey__actions .btn { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .hey__cubes, .hey__glow { display: none; } }
