:root {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #161b22;
  --panel-2: #222b34;
  --text: #eef3f8;
  --muted: #a9b5c3;
  --line: #2d3744;
  --accent: #55c7a7;
  --accent-2: #f0b35a;
  --accent-3: #c783ff;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(160deg, rgba(13, 17, 23, .96), rgba(12, 16, 20, .98) 46%, rgba(18, 15, 20, .98)),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(13,17,23,.92);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: .94rem;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
}

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

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px;
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(300px, .76fr);
  gap: 40px;
  align-items: center;
}

.hero h1,
h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.dashboard-title {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.05;
}

.homepage-dashboard {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(45, 212, 191, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 0%, rgba(96, 165, 250, 0.14), transparent 26rem),
    linear-gradient(135deg, #070b10 0%, #101820 46%, #12151b 100%);
  color: #edf3f8;
}

.homepage-dashboard::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 75%);
}

.homepage-wrap {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(7rem, 17vw, 12rem) clamp(1rem, 3vw, 2rem) 3rem;
  position: relative;
  z-index: 1;
}

.homepage-hero {
  margin-bottom: 1.35rem;
}

.homepage-kicker {
  margin: 0 0 .6rem;
  color: #8ddfd6;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.homepage-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: .95;
  letter-spacing: 0;
}

.homepage-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(280px, 1.2fr);
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.homepage-widget,
.homepage-search,
.homepage-group {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(7, 11, 16, 0.46);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.homepage-widget {
  min-height: 3.25rem;
  padding: .65rem 1.1rem;
}

.homepage-widget span {
  display: block;
  color: #9fb0c0;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.homepage-widget strong {
  display: block;
  margin-top: .1rem;
  color: #edf3f8;
}

.homepage-search {
  min-height: 3.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: .25rem;
}

.homepage-search input,
.homepage-search button {
  min-height: 2.65rem;
  border: 0;
  border-radius: 6px;
  font: inherit;
}

.homepage-search input {
  min-width: 0;
  padding: 0 .9rem;
  background: rgba(255, 255, 255, 0.06);
  color: #edf3f8;
  outline: none;
}

.homepage-search input:focus {
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.13);
}

.homepage-search button {
  padding: 0 1rem;
  color: #061016;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.9), rgba(96, 165, 250, 0.78));
}

.homepage-group {
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(18, 28, 39, 0.9), rgba(15, 23, 32, 0.72));
  overflow: hidden;
}

.homepage-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}

.homepage-group h2 {
  margin: 0;
  color: #edf3f8;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.homepage-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.homepage-card {
  min-height: 94px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.homepage-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(255, 255, 255, 0.095);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.homepage-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(45, 212, 191, 0.12);
  color: #8ddfd6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 900;
}

.homepage-card strong,
.homepage-card small {
  display: block;
}

.homepage-card strong {
  color: #edf3f8;
  line-height: 1.2;
}

.homepage-card small {
  margin-top: .2rem;
  color: #9fb0c0;
  line-height: 1.35;
}

.notes-group {
  margin-top: 1rem;
}

.notes-header {
  align-items: flex-start;
}

.notes-header p {
  margin: .25rem 0 0;
  color: #9fb0c0;
  font-size: .92rem;
}

.notes-status {
  min-height: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #9fb0c0;
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  font-size: .82rem;
  font-weight: 750;
  white-space: nowrap;
}

.notes-panel {
  display: grid;
  gap: .75rem;
}

.notes-input {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #edf3f8;
  padding: 1rem;
  font: inherit;
  line-height: 1.55;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.notes-input::placeholder {
  color: rgba(159, 176, 192, .76);
}

.notes-input:focus {
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.notes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
}

.notes-button {
  min-height: 2.55rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #edf3f8;
  padding: 0 .95rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.notes-button:hover {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(255, 255, 255, 0.095);
}

.notes-button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.9), rgba(96, 165, 250, 0.78));
  color: #061016;
}

.dashboard-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(10,14,20,.96), rgba(10,14,20,.99)),
    var(--bg);
}

.ops-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.ops-header {
  min-height: 76px;
  border: 1px solid rgba(130,148,170,.18);
  border-radius: 8px;
  background: rgba(13,18,26,.92);
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(190px, auto);
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
}

.ops-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.ops-brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(79,179,216,.55);
  border-radius: 8px;
  background: #102131;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.ops-brand strong,
.ops-brand small {
  display: block;
}

.ops-brand strong {
  font-size: 1.05rem;
  line-height: 1.15;
}

.ops-brand small,
.ops-nav a,
.ops-auth {
  color: var(--muted);
  font-size: .9rem;
}

.ops-nav {
  min-height: 40px;
  border: 1px solid rgba(130,148,170,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
}

.ops-nav a {
  min-width: 84px;
  min-height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
}

.ops-nav a:hover {
  background: rgba(79,179,216,.12);
  color: var(--text);
}

.ops-auth {
  justify-self: end;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(86,214,138,.22);
  border-radius: 8px;
  background: rgba(86,214,138,.07);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #56d68a;
  box-shadow: 0 0 0 5px rgba(86,214,138,.12);
}

.ops-hero {
  margin-top: 18px;
  min-height: 360px;
  border: 1px solid rgba(130,148,170,.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20,29,41,.98), rgba(12,17,24,.98) 58%),
    #0c1118;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 34px;
  align-items: stretch;
  padding: 42px;
}

.ops-hero-copy {
  align-self: center;
}

.ops-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.ops-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 5.8vw, 5.7rem);
  line-height: .98;
  letter-spacing: 0;
}

.ops-hero p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.08rem;
}

.ops-summary {
  display: grid;
  gap: 12px;
  align-content: center;
}

.ops-summary div,
.ops-toolbar,
.ops-card {
  border: 1px solid rgba(130,148,170,.18);
  border-radius: 8px;
  background: rgba(13,18,26,.86);
}

.ops-summary div {
  padding: 18px;
}

.ops-summary span,
.ops-card-type,
.metric-label {
  display: block;
  color: #8d9baa;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-summary strong {
  display: block;
  margin-top: 7px;
  font-size: 1.03rem;
}

.ops-toolbar {
  margin-top: 18px;
  min-height: 92px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
}

.ops-toolbar div {
  padding: 18px;
  background: rgba(255,255,255,.018);
}

.metric-value {
  display: block;
  color: var(--text);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 900;
  line-height: 1.1;
}

.metric-label {
  margin-top: 6px;
}

.ops-section {
  margin-top: 34px;
}

.ops-section-heading {
  margin-bottom: 14px;
}

.ops-section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ops-grid.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-card {
  min-height: 224px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.ops-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 3px;
  background: rgba(79,179,216,.72);
  opacity: 0;
  transition: opacity .16s ease;
}

.ops-card:hover {
  border-color: rgba(79,179,216,.55);
  background: #111a25;
  transform: translateY(-2px);
}

.ops-card:hover::after {
  opacity: 1;
}

.ops-card-primary {
  background: linear-gradient(135deg, rgba(18,40,58,.96), rgba(13,18,26,.94));
}

.ops-card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border: 1px solid rgba(79,179,216,.38);
  border-radius: 8px;
  background: #0f2232;
  color: #84d8f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .86rem;
  font-weight: 900;
}

.ops-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.18;
}

.ops-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .98rem;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 8vw, 6.6rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.35rem);
}

h3 {
  margin: 8px 0;
  line-height: 1.2;
}

.eyebrow,
.tag {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: .78rem;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.25rem;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--line);
}

.button.primary {
  background: var(--accent);
  color: #06130f;
  border-color: transparent;
}

.button.secondary {
  color: var(--text);
  background: rgba(255,255,255,.04);
}

.hero-panel,
.band,
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.hero-panel {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.hero-panel span {
  padding: 14px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
}

.hero-panel strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.split {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
}

.split p,
.band p,
.card p,
.contact p {
  color: var(--muted);
}

.copy-stack {
  display: grid;
  gap: 12px;
}

.copy-stack p {
  margin: 0;
}

.metrics {
  padding-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metrics div,
.skill-grid div,
.process-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 27, 34, .82);
  padding: 20px;
}

.metrics strong {
  display: block;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1.1;
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.band {
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.resume-band {
  background:
    linear-gradient(135deg, rgba(85, 199, 167, .12), rgba(199, 131, 255, .08)),
    var(--panel);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading p:last-child {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
}

.project-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 18px;
  min-height: 100%;
}

.card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 20px;
  align-items: center;
}

.card img,
.media-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(85, 199, 167, .16), rgba(199, 131, 255, .12)),
    #0a0d12;
}

.media-preview {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.media-preview object {
  width: 100%;
  min-height: 0;
  flex: 1;
  border: 0;
  background: #f6f7f9;
}

.media-preview span {
  min-height: 36px;
  border-top: 1px solid var(--line);
  padding: 8px 10px;
  background: rgba(10, 13, 18, .92);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.skill-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.skill-grid h3,
.process-grid h3 {
  margin-top: 0;
}

.process h2 {
  max-width: 720px;
}

.process-grid {
  margin-top: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-grid span {
  color: var(--accent-3);
  font-weight: 900;
}

.process-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline > div {
  border-left: 3px solid var(--accent);
  padding-left: 18px;
}

.contact {
  text-align: center;
}

.contact-links {
  justify-content: center;
}

.contact-links a {
  color: var(--accent);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.service-card {
  display: block;
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

code {
  color: var(--text);
  background: var(--panel-2);
  padding: 2px 5px;
  border-radius: 5px;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 16px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .split,
  .card.featured {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .metrics,
  .skill-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .homepage-wrap {
    padding-top: 8.5rem;
  }

  .homepage-widgets,
  .homepage-card-grid {
    grid-template-columns: 1fr;
  }

  .notes-header,
  .notes-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .notes-status {
    white-space: normal;
  }

  .card.featured {
    grid-column: auto;
  }

  .band,
  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .ops-shell {
    padding: 14px 14px 42px;
  }

  .ops-header {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
  }

  .ops-nav {
    overflow-x: auto;
  }

  .ops-nav a {
    min-width: 76px;
  }

  .ops-auth {
    justify-self: start;
  }

  .ops-hero {
    min-height: auto;
    padding: 26px;
    grid-template-columns: 1fr;
  }

  .ops-hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.9rem);
  }

  .ops-toolbar,
  .ops-grid,
  .ops-grid.two-column {
    grid-template-columns: 1fr;
  }

  .dashboard-shell,
  .dashboard-topbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-hero {
    padding: 24px;
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-featured {
    grid-column: auto;
  }
}
