:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6472;
  --paper: #f8faf9;
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(17, 24, 39, 0.12);
  --teal: #0f766e;
  --coral: #e2553f;
  --amber: #b7791f;
  --violet: #6d5bd0;
  --shadow: 0 24px 80px rgba(26, 37, 54, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 34%),
    linear-gradient(45deg, rgba(226, 85, 63, 0.09), transparent 42%),
    var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.signal-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 249, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.site-nav a,
.admin-link {
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.admin-link:hover {
  background: rgba(17, 24, 39, 0.06);
  color: var(--ink);
}

.admin-link {
  justify-self: end;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 38px;
  align-items: center;
  padding: 54px 0 64px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4.2rem, 12vw, 10.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-summary {
  max-width: 700px;
  margin: 26px 0 0;
  color: #2e3745;
  font-size: clamp(1.12rem, 2.2vw, 1.55rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-actions:empty {
  display: none;
  margin-top: 0;
}

.button,
.contact-button,
.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.button.secondary,
.tool-button.secondary {
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.hero-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.availability {
  color: #283242;
  font-size: 1rem;
  line-height: 1.5;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.stat {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 249, 0.82);
}

.stat strong {
  display: block;
  font-size: 1.45rem;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.section-band {
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 34px;
}

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

.project-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 42px rgba(26, 37, 54, 0.08);
}

.project-card[data-accent="teal"] {
  border-top: 5px solid var(--teal);
}

.project-card[data-accent="violet"] {
  border-top: 5px solid var(--violet);
}

.project-card[data-accent="amber"] {
  border-top: 5px solid var(--amber);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.pill {
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 250, 249, 0.86);
  color: #415066;
  font-size: 0.76rem;
  font-weight: 800;
}

.project-card p {
  color: var(--muted);
  line-height: 1.55;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.project-links a {
  font-weight: 800;
  color: var(--teal);
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-cloud span {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.service-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.service-list div,
.timeline-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

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

.timeline-item time {
  display: block;
  margin-bottom: 8px;
  color: var(--coral);
  font-weight: 800;
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 76px 0 92px;
  border-top: 1px solid var(--line);
}

.contact-button {
  flex: 0 0 auto;
}

.admin-body {
  background: #f4f6f5;
}

.admin-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #111827;
  color: #fff;
}

.admin-sidebar h1 {
  max-width: 100%;
  font-size: 2.6rem;
}

.admin-sidebar p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.admin-tabs {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.admin-tab {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-tab.active {
  background: #fff;
  color: #111827;
}

.admin-main {
  min-width: 0;
  padding: 28px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #3b4656;
  font-size: 0.82rem;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.editor-list {
  display: grid;
  gap: 14px;
}

.editor-card,
.agent-card,
.preview-frame {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.editor-card-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.json-output {
  min-height: 260px;
  white-space: pre;
}

.agent-response {
  min-height: 140px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  white-space: pre-wrap;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .split-section,
  .admin-layout {
    grid-template-columns: 1fr;
  }

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

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

  .admin-sidebar {
    position: static;
    height: auto;
  }
}

@media (max-width: 620px) {
  .section-shell,
  .site-header {
    width: min(100% - 22px, 1180px);
  }

  .site-header {
    margin-top: 10px;
    gap: 8px;
  }

  .admin-link,
  .site-nav a {
    padding: 9px 10px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: clamp(3.25rem, 19vw, 5.6rem);
  }

  .hero-summary {
    font-size: 1.05rem;
  }

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

  .contact-section {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-button {
    width: 100%;
  }

  .admin-main,
  .admin-sidebar {
    padding: 18px;
  }
}


