* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cyan: rgba(0,200,255,1);
  --cyan-dim: rgba(0,200,255,0.5);
  --cyan-ghost: rgba(0,200,255,0.08);
  --teal: rgba(0,220,180,1);
  --teal-dim: rgba(0,220,180,0.5);
}

body {
  background: #000;
  min-height: 100vh;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: #fff;
  overflow-x: hidden;
}

/* ── Starfield ── */
#starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── Grid overlay ── */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0,200,255,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.09) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── Corner brackets ── */
.brk {
  position: fixed; width: 24px; height: 24px;
  pointer-events: none; z-index: 150;
}
.brk::before, .brk::after {
  content: ''; position: absolute;
  background: rgba(0,220,180,0.9);
}
.brk::before { width: 100%; height: 1.5px; }
.brk::after  { width: 1.5px; height: 100%; }
.brk-tl { top: 14px; left: 14px; }
.brk-tl::before, .brk-tl::after { top: 0; left: 0; }
.brk-tr { top: 14px; right: 14px; }
.brk-tr::before { top: 0; right: 0; }
.brk-tr::after  { top: 0; right: 0; }
.brk-bl { bottom: 14px; left: 14px; }
.brk-bl::before { bottom: 0; left: 0; }
.brk-bl::after  { bottom: 0; left: 0; }
.brk-br { bottom: 14px; right: 14px; }
.brk-br::before { bottom: 0; right: 0; }
.brk-br::after  { bottom: 0; right: 0; }


/* ── Intro poème ── */
#boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  transition: opacity 1.2s ease;
}
#boot::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,255,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
#boot.done { opacity: 0; pointer-events: none; }

.poem-wrap {
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.poem-label {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: rgba(0,200,255,0.55);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 4px;
}

.poem-line {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(1.25rem, 4.5vw, 1.6rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s ease, transform 1s ease;
}
.poem-line.show {
  opacity: 1;
  transform: translateY(0);
}
.poem-line.dim {
  opacity: 0.2;
  transform: translateY(0);
}

/* ── Main ── */
#main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 24px 96px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
#main.visible { opacity: 1; transform: translateY(0); }

/* ── Profile ── */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 52px;
}

/* Avatar */
.avatar-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 28px;
}

.avatar-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(0,200,255,0.8);
  animation: spin1 10s linear infinite;
}
.avatar-ring::after {
  content: '';
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(0,200,255,1);
  top: 50%; left: -4.5px;
  transform: translateY(-50%);
  box-shadow: 0 0 12px rgba(0,200,255,1), 0 0 24px rgba(0,200,255,0.5);
}

.avatar-ring-2 {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  border: 1px solid rgba(0,220,180,0.6);
  animation: spin1 18s linear infinite reverse;
}
.avatar-ring-2::after {
  content: '';
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(0,220,180,1);
  top: -2.5px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,220,180,0.8);
}

@keyframes spin1 { to { transform: rotate(360deg); } }

.avatar-initials {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(0,200,255,0.7);
  background: radial-gradient(circle at 38% 32%, #0d1e2e, #020a12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: rgba(0,200,255,1);
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 20px rgba(0,200,255,0.1), 0 0 30px rgba(0,200,255,0.15);
}

.profile-name {
  font-size: 1.95rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 40px rgba(0,200,255,0.4), 0 2px 8px rgba(0,0,0,0.8);
  line-height: 1;
}

.profile-role {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0,200,255,0.9);
  text-align: center;
  max-width: 340px;
  line-height: 1.7;
}

.profile-sep {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-sep-line {
  width: 28px; height: 1px;
  background: rgba(0,200,255,0.55);
}
.profile-company {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
}

/* ── Section label ── */
.section-label {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(0,200,255,1);
  text-transform: uppercase;
  width: 100%;
  max-width: 440px;
  margin-bottom: 14px;
}

/* ── Contact links ── */
.links-wrap {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lnk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: rgba(0,200,255,0.07);
  border: 1px solid rgba(0,200,255,0.5);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-20px);
  transition:
    opacity 0.55s ease calc(var(--i) * 90ms + 150ms),
    transform 0.55s ease calc(var(--i) * 90ms + 150ms),
    background 0.22s,
    border-color 0.22s;
  -webkit-tap-highlight-color: transparent;
}
#main.visible .lnk { opacity: 1; transform: translateX(0); }

.lnk::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(0,200,255,0), rgba(0,200,255,0.7), rgba(0,200,255,0));
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}
.lnk::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(0,200,255,0.04) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.22s;
}

@media (hover: hover) {
  .lnk:hover { background: rgba(0,200,255,0.12); border-color: rgba(0,200,255,0.7); }
  .lnk:hover::before { transform: scaleY(1); }
  .lnk:hover::after { opacity: 1; }
  .lnk:hover .lnk-arrow { transform: translateX(4px); color: rgba(0,200,255,1); }
  .lnk:hover .lnk-icon { border-color: rgba(0,200,255,0.9); background: rgba(0,200,255,0.18); }
}
.lnk:active { background: rgba(0,200,255,0.14); border-color: rgba(0,200,255,0.75); }


.lnk-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0,200,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0,200,255,0.12);
  transition: border-color 0.22s, background 0.22s;
  color: rgba(0,200,255,1);
}

.lnk-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.lnk-label {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lnk-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes blink { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

.lnk-arrow {
  color: rgba(0,200,255,0.9);
  font-size: 13px;
  flex-shrink: 0;
  transition: transform 0.22s, color 0.22s;
}

/* ── Companies grid ── */
.companies-wrap {
  width: 100%;
  max-width: 440px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.company-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 14px 14px;
  background: rgba(0,200,255,0.06);
  border: 1px solid rgba(0,200,255,0.42);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease calc(var(--j) * 80ms + 400ms),
    transform 0.5s ease calc(var(--j) * 80ms + 400ms),
    background 0.22s,
    border-color 0.22s;
  -webkit-tap-highlight-color: transparent;
}
.company-card--full {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}
.company-card--full .company-name { font-size: 0.95rem; }
.company-card--full .company-url  { display: none; }

#main.visible .company-card { opacity: 1; transform: translateY(0); }

.company-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,200,255,0.5), transparent);
  transform: scaleX(0);
  transition: transform 0.22s ease;
}
@media (hover: hover) {
  .company-card:hover { background: rgba(0,200,255,0.12); border-color: rgba(0,200,255,0.65); }
  .company-card:hover::before { transform: scaleX(1); }
  .company-card:hover .company-arrow { color: rgba(0,200,255,1); transform: translate(2px,-2px); }
}
.company-card:active { background: rgba(0,200,255,0.14); border-color: rgba(0,200,255,0.7); }

.company-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.company-card--full .company-card-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex-shrink: 0;
}

.company-tag {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(0,200,255,1);
  text-transform: uppercase;
}

.company-card-body { flex: 1; }
.company-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.company-desc {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
  margin-top: 4px;
}
.company-card--full .company-desc { font-size: 0.8rem; }

.company-url {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.company-arrow {
  font-size: 18px;
  color: rgba(0,200,255,0.85);
  align-self: flex-end;
  transition: color 0.22s, transform 0.22s;
  line-height: 1;
}
.company-card--full .company-arrow { align-self: center; flex-shrink: 0; }

/* ── Footer ── */
.footer {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.8s ease 1.4s;
}
#main.visible .footer { opacity: 1; }

.footer-sep {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-sep-line { width: 32px; height: 1px; background: rgba(0,200,255,0.55); }
.footer-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(0,200,255,0.9); }
.footer-logo {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ── Ripple ── */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0,200,255,0.2);
  transform: scale(0);
  animation: rippleAnim 0.5s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ── Responsive ── */
@media (max-width: 480px) {
  #main { padding: 60px 18px 80px; }
  .hud-c { font-size: 9px; padding: 12px 14px; }
  .profile-name { font-size: 1.65rem; }
  .brk { width: 20px; height: 20px; }
  .brk-tl { top: 10px; left: 10px; }
  .brk-tr { top: 10px; right: 10px; }
  .brk-bl { bottom: 10px; left: 10px; }
  .brk-br { bottom: 10px; right: 10px; }
}
