/* Sj Web & Graphic Design — Faithful Dark Stage Stylesheet (000000 / bg.png / Glass) */
:root {
  --black: #000000;
  --panel: rgba(24, 24, 24, 0.88);
  --border: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(0, 153, 255, 0.45);
  --text: #f0f3f7;
  --muted: #98a2b3;
  --azure: #0099ff;
  --slate: #3c5a78;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--black);
  background-image: radial-gradient(circle at 50% 0%, rgba(60, 90, 120, 0.18), transparent 55%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--azure);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #cbe7ff;
}

.stage {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.glass-panel {
  background: var(--panel);
  background-image: url('/bg.png');
  background-blend-mode: overlay;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-badge {
  background: #ffffff;
  padding: 5px 9px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
}

.brand-badge img {
  height: 26px;
  width: auto;
  display: block;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-meta strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.brand-meta small {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav .nav-accent {
  color: #ffffff;
  border: 1px solid var(--border-accent);
  background: rgba(0, 153, 255, 0.14);
  padding: 5px 12px;
  border-radius: 999px;
}

.nav .nav-accent:hover {
  background: var(--azure);
  color: #000000;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  padding: 32px;
  align-items: center;
  margin-bottom: 36px;
}

.kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--azure);
  font-weight: 600;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.intro {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 52ch;
}

.intro strong {
  color: var(--text);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 600;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--azure);
  color: #000000;
}

.btn-primary:hover {
  background: #33adff;
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
  border-color: var(--border-accent);
}

.hero-logo-box {
  background: #ffffff;
  border-radius: 8px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-box img {
  max-width: 100%;
  max-height: 145px;
  object-fit: contain;
}

/* Sections */
.section {
  margin-bottom: 36px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.section-head span {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Portfolio Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tile {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
  transition: border-color 0.18s ease, transform 0.15s ease;
}

.tile-live:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tile p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  color: var(--azure);
  margin-top: auto;
}

.pill {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.pill.live {
  border-color: var(--border-accent);
  color: var(--azure);
  background: rgba(0, 153, 255, 0.12);
}

/* Marks */
.marks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mark {
  margin: 0;
  overflow: hidden;
}

.mark-bg {
  background: #ffffff;
  height: 150px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mark-bg img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mark figcaption {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* Footer */
.footer {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .grid,
  .marks {
    grid-template-columns: 1fr;
  }
}
