:root {
  color-scheme: dark;
  --bg: #070711;
  --panel: rgba(19, 16, 39, 0.84);
  --panel-2: rgba(13, 25, 46, 0.84);
  --text: #f7f5ff;
  --muted: #b8b4ca;
  --purple: #9867ff;
  --blue: #45b7ff;
  --orange: #ff9f43;
  --green: #58e6a9;
  --pink: #ff70c8;
  --line: rgba(255,255,255,0.11);
  --line-strong: rgba(255,255,255,0.22);
  --shadow: 0 22px 70px rgba(0,0,0,0.42);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(152,103,255,.28), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(69,183,255,.20), transparent 34%),
    radial-gradient(circle at 48% 92%, rgba(88,230,169,.13), transparent 36%),
    linear-gradient(145deg, #06060e 0%, #0b0919 48%, #06121c 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}
button, input { font: inherit; }
a { color: inherit; }
main {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 54px;
  position: relative;
  z-index: 1;
}
.card, .portfolio-shell, .closing-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 28px;
}
.profile-card { max-width: 720px; margin: 0 auto; }
.card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 0 0 28px rgba(152,103,255,.05), 0 0 0 58px rgba(69,183,255,.035);
}
.identity {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.avatar-wrap {
  width: 104px;
  height: 104px;
  border-radius: 27px;
  padding: 3px;
  background: linear-gradient(135deg, var(--purple), var(--blue), var(--green), var(--orange));
  box-shadow: 0 12px 34px rgba(69,183,255,.18);
}
.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  border: 3px solid #0a0a15;
  background: #0a0a15;
}
.eyebrow, .kicker {
  margin: 0 0 6px;
  color: var(--green);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .74rem;
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: .97;
  letter-spacing: -.055em;
}
h2, h3, p { margin-top: 0; }
.role {
  margin: 10px 0 0;
  font-weight: 720;
  color: #d9d6e7;
  font-size: 1rem;
}
.summary {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 58ch;
  position: relative;
  z-index: 2;
}
.direct-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
  position: relative;
  z-index: 2;
}
.action, .link, .portfolio-entry, .project-button {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.action:hover, .link:hover, .portfolio-entry:hover, .project-button:hover {
  transform: translateY(-2px);
  border-color: rgba(152,103,255,.62);
}
.action {
  border-radius: 16px;
  padding: 13px 10px;
  text-align: center;
  font-weight: 760;
  background: rgba(255,255,255,.055);
}
.action.primary {
  color: #0a0911;
  border-color: transparent;
  background: linear-gradient(135deg, #b38cff, #66c8ff);
}
.portfolio-entry {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  min-height: 78px;
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 14px;
  align-items: center;
  border-radius: 20px;
  padding: 12px 17px 12px 12px;
  background: linear-gradient(135deg, rgba(152,103,255,.18), rgba(69,183,255,.11));
}
.portfolio-entry-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #090812;
  font-size: 1.35rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--green), var(--blue), var(--purple));
}
.portfolio-entry strong, .portfolio-entry small { display: block; }
.portfolio-entry strong { font-size: 1.04rem; }
.portfolio-entry small { color: var(--muted); margin-top: 4px; }
section { margin-top: 28px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: .76rem;
  font-weight: 840;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: #d4d0e0;
}
.section-title::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.links { display: grid; gap: 10px; }
.link {
  min-height: 68px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 14px;
  align-items: center;
  border-radius: 19px;
  padding: 10px 16px 10px 11px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: #090812;
  background: linear-gradient(135deg, var(--purple), var(--blue));
}
.icon.green { background: linear-gradient(135deg, var(--green), #8fffd1); }
.icon.orange { background: linear-gradient(135deg, var(--orange), #ffd166); }
.icon.blue { background: linear-gradient(135deg, var(--blue), #8ed8ff); }
.link strong { display: block; font-size: 1rem; }
.link small { display: block; margin-top: 3px; color: var(--muted); font-size: .82rem; }
.arrow { font-size: 1.25rem; color: #b7b1c7; }

.portfolio-shell {
  scroll-margin-top: 18px;
  margin-top: 44px;
  border-radius: 34px;
  padding: clamp(20px, 4vw, 38px);
  overflow: hidden;
  position: relative;
}
.portfolio-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 92% 7%, rgba(69,183,255,.16), transparent 27%),
    radial-gradient(circle at 5% 38%, rgba(152,103,255,.12), transparent 25%);
}
.portfolio-shell > * { position: relative; z-index: 1; }
.portfolio-hero {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 34px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.portfolio-hero h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.05em;
  max-width: 13ch;
}
.portfolio-hero p:last-child { color: var(--muted); line-height: 1.65; max-width: 68ch; margin-bottom: 0; }
.principles { display: grid; gap: 9px; }
.principles span {
  padding: 12px 14px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  font-weight: 730;
}
.constellation-intro {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr minmax(250px, 340px);
  align-items: end;
  gap: 24px;
}
.constellation-intro h3 { font-size: 1.8rem; margin-bottom: 8px; }
.constellation-intro p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }
.search-box { display: block; color: #ddd9e8; font-size: .82rem; font-weight: 700; }
.search-box input {
  width: 100%;
  margin-top: 7px;
  color: var(--text);
  background: rgba(5,6,15,.64);
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  padding: 13px 14px;
  outline: none;
}
.search-box input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(69,183,255,.12); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--text);
  background: rgba(255,255,255,.035);
  cursor: pointer;
  font-size: .84rem;
  font-weight: 720;
}
.filter-button[aria-pressed="true"] {
  color: #090812;
  border-color: transparent;
  background: linear-gradient(135deg, #b38cff, #66c8ff);
}
.result-count { margin: 14px 0 0; color: var(--muted); font-size: .83rem; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 18px;
}
.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: transform .18s ease, border-color .18s ease;
}
.project-card:hover { transform: translateY(-3px); border-color: rgba(69,183,255,.4); }
.project-art {
  min-height: 138px;
  padding: 17px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.28), transparent 11%),
    linear-gradient(135deg, rgba(152,103,255,.72), rgba(69,183,255,.28) 52%, rgba(88,230,169,.16));
}
.project-art::before, .project-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  z-index: -1;
}
.project-art::before { width: 130px; height: 130px; right: -34px; top: -42px; }
.project-art::after { width: 82px; height: 82px; left: -22px; bottom: -36px; }
.project-art[data-tone="green"] { background: linear-gradient(135deg, rgba(88,230,169,.66), rgba(69,183,255,.24), rgba(152,103,255,.17)); }
.project-art[data-tone="orange"] { background: linear-gradient(135deg, rgba(255,159,67,.72), rgba(255,112,200,.25), rgba(152,103,255,.17)); }
.project-art[data-tone="blue"] { background: linear-gradient(135deg, rgba(69,183,255,.72), rgba(152,103,255,.27), rgba(88,230,169,.13)); }
.project-art[data-tone="pink"] { background: linear-gradient(135deg, rgba(255,112,200,.66), rgba(152,103,255,.32), rgba(69,183,255,.16)); }
.project-mark { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 950; letter-spacing: -.07em; }
.project-status {
  align-self: flex-start;
  padding: 6px 8px;
  border-radius: 999px;
  color: #0a0911;
  background: rgba(255,255,255,.82);
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.project-content { display: flex; flex-direction: column; flex: 1; padding: 17px; }
.project-category { color: var(--green); font-size: .71rem; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
.project-content h4 { margin: 8px 0 8px; font-size: 1.1rem; }
.project-content p { margin-bottom: 18px; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.project-button {
  margin-top: auto;
  width: 100%;
  cursor: pointer;
  border-radius: 13px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  font-weight: 760;
}
.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}
.closing-card {
  margin-top: 28px;
  border-radius: 30px;
  padding: clamp(24px, 5vw, 40px);
  text-align: center;
}
.closing-card h2 { margin-bottom: 12px; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.035em; }
.closing-card > p:not(.eyebrow) { max-width: 720px; margin: 0 auto; color: var(--muted); line-height: 1.65; }
.closing-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.closing-actions .action { min-width: 180px; }
footer {
  text-align: center;
  padding: 28px 12px 4px;
  color: #918aa5;
  font-size: .82rem;
  line-height: 1.5;
}
footer strong { color: #cdc8da; }

.project-dialog {
  width: min(820px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: #0b0b18;
  box-shadow: 0 34px 100px rgba(0,0,0,.7);
  overflow: auto;
}
.project-dialog::backdrop { background: rgba(2,2,8,.82); backdrop-filter: blur(8px); }
.dialog-art {
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background:
    radial-gradient(circle at 80% 25%, rgba(255,255,255,.25), transparent 13%),
    linear-gradient(135deg, rgba(152,103,255,.78), rgba(69,183,255,.30), rgba(88,230,169,.17));
}
.dialog-art[data-tone="green"] { background: linear-gradient(135deg, rgba(88,230,169,.76), rgba(69,183,255,.26), rgba(152,103,255,.16)); }
.dialog-art[data-tone="orange"] { background: linear-gradient(135deg, rgba(255,159,67,.78), rgba(255,112,200,.27), rgba(152,103,255,.17)); }
.dialog-art[data-tone="blue"] { background: linear-gradient(135deg, rgba(69,183,255,.78), rgba(152,103,255,.28), rgba(88,230,169,.13)); }
.dialog-art[data-tone="pink"] { background: linear-gradient(135deg, rgba(255,112,200,.76), rgba(152,103,255,.34), rgba(69,183,255,.16)); }
.dialog-art span { font-size: clamp(3.5rem, 12vw, 7rem); font-weight: 950; letter-spacing: -.08em; }
.dialog-body { position: relative; padding: clamp(22px, 5vw, 38px); }
.dialog-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255,255,255,.06);
  cursor: pointer;
  font-size: 1.5rem;
}
.dialog-category { margin-bottom: 9px; color: var(--green); font-size: .75rem; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.dialog-body h2 { margin: 0 52px 10px 0; font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -.045em; }
.dialog-tagline { color: #dedbea; font-size: 1.08rem; line-height: 1.55; }
.dialog-story { margin-top: 23px; color: var(--muted); line-height: 1.68; }
.dialog-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.dialog-facts h3 { margin-bottom: 7px; font-size: .88rem; }
.dialog-facts p { margin-bottom: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.dialog-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.dialog-links a { text-decoration: none; border: 1px solid var(--line); border-radius: 13px; padding: 10px 13px; background: rgba(255,255,255,.045); font-weight: 730; }

@media (max-width: 850px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-hero { grid-template-columns: 1fr; align-items: start; }
  .principles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  main { width: min(100% - 18px, 1120px); padding-top: 10px; }
  .card { padding: 21px 17px; border-radius: 24px; }
  .identity { grid-template-columns: 82px 1fr; gap: 14px; }
  .avatar-wrap { width: 82px; height: 82px; border-radius: 23px; }
  .avatar { border-radius: 20px; }
  .direct-actions { grid-template-columns: 1fr; }
  .action { padding: 14px; }
  .link { grid-template-columns: 43px 1fr auto; padding-right: 13px; }
  .icon { width: 43px; height: 43px; }
  .portfolio-shell { margin-top: 22px; border-radius: 25px; }
  .constellation-intro { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-art { min-height: 124px; }
  .dialog-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Enter The Field visual unification — RC3 */
:root {
  --bg: #080b12;
  --panel: rgba(18, 23, 31, 0.86);
  --panel-2: rgba(13, 18, 25, 0.9);
  --text: #f0eadb;
  --muted: #a8a89f;
  --purple: #9f8bff;
  --blue: #6fa7c6;
  --orange: #d5a25e;
  --green: #78b98d;
  --pink: #ca8195;
  --line: rgba(231, 222, 198, 0.14);
  --line-strong: rgba(231, 222, 198, 0.28);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}
html { background: var(--bg); }
body {
  background:
    radial-gradient(circle at 24% 4%, rgba(103, 83, 184, 0.09), transparent 31rem),
    radial-gradient(circle at 90% 32%, rgba(56, 112, 105, 0.06), transparent 30rem),
    var(--bg);
}
body::before {
  background-image:
    radial-gradient(rgba(228, 218, 190, 0.22) 0 1px, transparent 1px),
    radial-gradient(rgba(120, 185, 141, 0.13) 0 1px, transparent 1px);
  background-size: 83px 83px, 137px 137px;
  background-position: 0 0, 31px 49px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}
.card, .portfolio-shell, .closing-card {
  background: linear-gradient(145deg, rgba(18, 23, 31, 0.9), rgba(13, 18, 25, 0.88));
}
.card::after {
  border-color: rgba(217, 173, 97, 0.18);
  box-shadow: 0 0 0 28px rgba(159, 139, 255, 0.035), 0 0 0 58px rgba(111, 167, 198, 0.025);
}
.avatar-wrap,
.portfolio-entry-mark,
.icon,
.record-brand-mark {
  background: linear-gradient(135deg, var(--gold, #d9ad61), var(--green), var(--blue));
}
.action.primary,
.filter-button[aria-pressed="true"] {
  color: #11120f;
  border-color: #e1c982;
  background: #e1c982;
}
.action.primary:hover,
.filter-button[aria-pressed="true"]:hover { background: #f1dc9b; }
.action:hover, .link:hover, .portfolio-entry:hover, .project-button:hover {
  border-color: rgba(217, 173, 97, 0.54);
}
.portfolio-entry {
  background: linear-gradient(135deg, rgba(217, 173, 97, 0.09), rgba(120, 185, 141, 0.06));
}
.portfolio-shell::before {
  background:
    radial-gradient(circle at 92% 7%, rgba(111, 167, 198, 0.09), transparent 27%),
    radial-gradient(circle at 5% 38%, rgba(159, 139, 255, 0.07), transparent 25%);
}
.search-box input {
  color: var(--text);
  background: rgba(8, 11, 18, 0.72);
}
.search-box input:focus {
  border-color: var(--gold, #d9ad61);
  box-shadow: 0 0 0 3px rgba(217, 173, 97, 0.12);
}
.project-card { background: rgba(13, 18, 25, 0.78); }
.project-card:hover { border-color: rgba(217, 173, 97, 0.46); }
.project-art {
  background:
    radial-gradient(circle at 72% 25%, rgba(240, 234, 219, 0.11), transparent 26%),
    linear-gradient(145deg, rgba(111, 167, 198, 0.26), rgba(159, 139, 255, 0.1), rgba(120, 185, 141, 0.1));
}
.project-art[data-tone="green"], .dialog-art[data-tone="green"] {
  background: linear-gradient(135deg, rgba(120, 185, 141, 0.62), rgba(111, 167, 198, 0.18), rgba(159, 139, 255, 0.1));
}
.project-art[data-tone="orange"], .dialog-art[data-tone="orange"] {
  background: linear-gradient(135deg, rgba(213, 162, 94, 0.68), rgba(202, 129, 149, 0.17), rgba(159, 139, 255, 0.1));
}
.project-art[data-tone="blue"], .dialog-art[data-tone="blue"] {
  background: linear-gradient(135deg, rgba(111, 167, 198, 0.64), rgba(159, 139, 255, 0.15), rgba(120, 185, 141, 0.1));
}
.project-art[data-tone="pink"], .dialog-art[data-tone="pink"] {
  background: linear-gradient(135deg, rgba(202, 129, 149, 0.6), rgba(159, 139, 255, 0.16), rgba(111, 167, 198, 0.1));
}
.project-status { color: #11120f; background: rgba(240, 234, 219, 0.9); }
.project-dialog { background: #0d1219; }
.project-dialog::backdrop { background: rgba(8, 11, 18, 0.88); }
.soundtrack {
  border-color: rgba(231, 222, 198, 0.18);
  background: rgba(8, 11, 18, 0.94);
}
.sound-icon, .sound-launch {
  color: #11120f;
  background: linear-gradient(135deg, #d9ad61, #e1c982);
}
