/* Portfolio look: "quiet futurism". Dark glass, hairline borders, one ice-blue accent, small monospace labels.
   Colors and fonts are all in :root below, so a restyle is one small edit. */
:root {
  --bg: #10292d;
  --surface: rgba(255, 255, 255, 0.06);
  --ink: #f2fbf8;
  --muted: #a3c4c0;
  --line: rgba(180, 240, 228, 0.18);
  --line-strong: rgba(180, 240, 228, 0.38);
  --accent: #4fd8c4;
  --accent-dark: #c9f7ef;
  --accent-soft: rgba(79, 216, 196, 0.1);
  --accent-glow: rgba(79, 216, 196, 0.28);
  --warm: #ffcf9e;
  --dark: #0a1d20;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-label: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 12px;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 38% at 12% -8%, rgba(79, 216, 196, 0.24), transparent 70%),
    radial-gradient(ellipse 50% 36% at 92% 2%, rgba(255, 190, 130, 0.15), transparent 70%),
    radial-gradient(rgba(180, 240, 228, 0.07) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px;
  background-attachment: fixed;
}

a:hover { color: var(--accent-dark); }

/* Header */
.site-header {
  background: rgba(16, 41, 45, 0.82);
  border-bottom: 1px solid var(--line);
}
.brand, .brand:hover { color: var(--ink); }
.brand {
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.site-header .wrap::after {
  content: "\25CF  EN \21C4 IT";
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  white-space: nowrap;
}

/* Page head */
.eyebrow {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--line);
}
.hero h1, .page-head h1 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  background: linear-gradient(100deg, #ffffff 20%, var(--accent) 70%, var(--warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.page-head p { color: var(--muted); }
.page-head p.also { font-size: 0.82rem; opacity: 0.85; margin-top: 0.4rem; }

.page-head .jump a {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.5rem 1rem;
}
.page-head .jump a:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: var(--line-strong);
}

.stats {
  background: var(--surface);
  border: 1px solid var(--line);
}
.stat dd {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 1rem;
  color: var(--accent);
}
.stat dt {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.stat + .stat { border-left-color: var(--line); }

/* Section headings */
.portfolio-group > .wrap > h2 {
  position: relative;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.portfolio-group > .wrap > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 4.5rem;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.subhead {
  font-family: var(--font-label);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.2em;
}
.subhead::before { content: "/ "; color: var(--accent); }
.section-intro { color: var(--muted); }

/* Cards: dark glass, hairline edge, small index number */
.project {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(79, 216, 196, 0.75), transparent 55%);
}
.project:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(79, 216, 196, 0.1);
}
.project h3 { color: var(--ink); font-weight: 500; }
.project .studio {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.project .studio .year { color: var(--muted); font-weight: 400; }
.project .studio .year::before { color: var(--muted); }
.project .role { color: var(--muted); }
.project.has-poster .poster {
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line), 0 10px 22px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.25s, filter 0.25s;
}
.project:hover .poster { box-shadow: 0 0 0 1px var(--line-strong), 0 12px 26px rgba(0, 0, 0, 0.6); }
.project.has-poster .shot { border-top: 1px solid var(--line); }
.project .fan-item {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

/* Highlights (New Translation, episode counts): soft teal tint, teal text, no glow */
.tag {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  text-transform: none;
  background: rgba(32, 240, 216, 0.14);
  color: #7ff3e3;
  border: 1px solid rgba(32, 240, 216, 0.4);
  box-shadow: none;
  padding: 0.22rem 0.65rem;
}

/* Empty frames and notes */
.ph { background: rgba(255, 255, 255, 0.025); border-color: var(--line); color: var(--muted); font-family: var(--font-label); font-weight: 400; }
.project.has-poster .shot.ph { background: var(--dark); color: var(--muted); }
.note {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--surface);
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer a { color: var(--accent); }
.site-footer a:hover { color: var(--accent-dark); }

/* Viewer */
.lightbox { background: rgba(10, 29, 32, 0.95); }
.lightbox-img { box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(0, 0, 0, 0.6); }
.lightbox-close { border-color: var(--line-strong); color: var(--accent); }
