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

:root {
  --navy:       #1C2232;
  --navy-deep:  #141825;
  --teal:       #2EC4B6;
  --teal-dim:   #1a9e92;
  --magenta:    #D42E70;
  --orange:     #F17130;
  --white:      #FFFFFF;
  --off-white:  #E8EDF5;
  --gray:       #8A90A0;
  --side-w:     220px;
}

html, body {
  min-height: 100%;
  background: var(--navy-deep);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* Background mesh */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(46,196,182,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(212,46,112,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(241,113,48,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Noise grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Left menu */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--side-w);
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 44px 28px;
  background: rgba(20,24,37,0.82);
  border-right: 1px solid rgba(255,255,255,0.07);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 48px;
}
.side-brand img { width: 34px; height: 34px; }
.side-brand span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--white);
  line-height: 1;
}
.side-brand em { font-style: normal; color: var(--teal); }

.menu { list-style: none; }
.menu a {
  display: block;
  padding: 10px 0 10px 14px;
  border-left: 2px solid transparent;
  color: var(--off-white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.2s, border-color 0.2s;
}
.menu a:hover { color: var(--teal); border-left-color: rgba(46,196,182,0.5); }
.menu a[aria-current="page"] { color: var(--teal); border-left-color: var(--magenta); }

a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* Content area */
.page {
  position: relative;
  z-index: 1;
  margin-left: var(--side-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 80px;
}

.logo-mark {
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.25s forwards;
}
.wordmark-salorne {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 10vw, 88px);
  letter-spacing: 0.12em;
  color: var(--white);
  line-height: 1;
}
.wordmark-mediaworks {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(13px, 2.5vw, 17px);
  font-weight: 300;
  letter-spacing: 0.45em;
  color: var(--teal);
  text-transform: uppercase;
}

.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--magenta));
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.tagline {
  font-size: clamp(15px, 2.5vw, 19px);
  font-weight: 300;
  color: var(--off-white);
  text-align: center;
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}
.tagline strong { color: var(--teal); font-weight: 500; }
.tagline.small { font-size: clamp(13px, 2vw, 16px); color: var(--gray); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46,196,182,0.10);
  border: 1px solid rgba(46,196,182,0.25);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease infinite;
}

.footer-text {
  position: fixed;
  bottom: 28px;
  left: var(--side-w);
  right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.18);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
  pointer-events: none;
}

/* Corner lines */
.corner { position: fixed; width: 48px; height: 48px; opacity: 0.2; z-index: 1; }
.corner-tr { top: 28px; right: 28px; border-top: 1px solid var(--teal); border-right: 1px solid var(--teal); }
.corner-bl { bottom: 28px; left: calc(var(--side-w) + 28px); border-bottom: 1px solid var(--teal); border-left: 1px solid var(--teal); }
.corner-br { bottom: 28px; right: 28px; border-bottom: 1px solid var(--teal); border-right: 1px solid var(--teal); }

/* About page */
.about {
  position: relative;
  z-index: 1;
  margin-left: var(--side-w);
  padding: 80px 40px 120px;
}
.about-inner { max-width: 680px; margin: 0 auto; }

.about h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 7vw, 68px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 14px;
}
.about .lede {
  font-size: clamp(17px, 2.4vw, 21px);
  font-style: italic;
  font-weight: 300;
  color: var(--teal);
  margin-bottom: 24px;
}
.about .rule {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--magenta));
  margin-bottom: 32px;
}
.about p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--off-white);
  margin-bottom: 18px;
}
.about h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 56px 0 20px;
}
.about h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  margin: 32px 0 10px;
}
.about ul { list-style: none; margin-bottom: 18px; }
.about li {
  position: relative;
  padding-left: 22px;
  font-size: 16.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--off-white);
  margin-bottom: 10px;
}
.about li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 2px;
  background: var(--magenta);
}
.about li strong { font-weight: 500; color: var(--white); }
.about .closing {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Mobile: menu becomes a top bar */
@media (max-width: 760px) {
  :root { --side-w: 0px; }
  .sidebar {
    position: sticky;
    top: 0;
    bottom: auto;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .side-brand { margin-bottom: 0; }
  .menu a { padding: 6px 0; border-left: none; border-bottom: 2px solid transparent; }
  .menu a:hover { border-left-color: transparent; border-bottom-color: rgba(46,196,182,0.5); }
  .menu a[aria-current="page"] { border-bottom-color: var(--magenta); }
  .page { min-height: calc(100vh - 66px); }
  .about { padding: 48px 22px 100px; }
  .corner { display: none; }
  .footer-text { position: static; padding: 0 0 28px; text-align: center; }
}

/* Footer flows with content on the About page */
.about ~ .footer-text { position: static; margin-left: var(--side-w); padding: 0 0 32px; }
