:root {
  --bg: #0c1110;
  --bg-alt: #121916;
  --surface: #17201c;
  --text: #f3f6f3;
  --text-dim: #aab5af;
  --accent: #65dfa9;
  --accent-dark: #163a2b;
  --warm: #f1b85b;
  --blue: #72a8ff;
  --border: #28342f;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

.container {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 4px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 17, 16, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: 0;
}

.logo::after {
  color: var(--accent);
  content: ".";
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

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

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.35rem;
}

.hero {
  min-height: calc(82svh - 64px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  padding-top: 88px;
  padding-bottom: 56px;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 72px;
  align-items: center;
}

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

.hero-eyebrow,
.section-kicker,
.project-type,
.interest-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(101, 223, 169, 0.1);
}

.hero h1 {
  margin-top: 12px;
  font-size: clamp(3rem, 8vw, 6.2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.hero-subtitle {
  max-width: 730px;
  margin-top: 24px;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-role {
  margin-top: 14px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 650;
}

.build-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #101714;
  box-shadow: 18px 18px 0 rgba(101, 223, 169, 0.045);
}

.panel-bar,
.panel-footer {
  display: flex;
  justify-content: space-between;
  color: #7f8d86;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.67rem;
}

.panel-bar {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.panel-status {
  color: var(--accent);
}

.panel-body {
  padding: 24px;
}

.panel-label {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.workflow-list {
  margin-top: 18px;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.workflow-list span {
  color: var(--warm);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.workflow-list strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.panel-footer {
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #07130e;
}

.btn-primary:hover {
  background: #83ebbd;
}

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

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
  border-top: 1px solid var(--border);
}

.hero-facts > div {
  padding: 22px 24px 0 0;
}

.hero-facts > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.hero-facts dt,
.profile-list dt {
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hero-facts dd {
  margin-top: 4px;
  font-weight: 650;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  margin-top: 6px;
  margin-bottom: 36px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.15;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}

.section-heading .section-title {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 440px;
  color: var(--text-dim);
  font-size: 0.93rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 72px;
  align-items: start;
}

.about-copy {
  color: var(--text-dim);
  font-size: 1.05rem;
}

.about-copy p + p {
  margin-top: 18px;
}

.profile-list {
  border-top: 1px solid var(--border);
}

.profile-list > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.profile-list dd {
  margin-top: 4px;
  color: var(--text);
  font-size: 0.94rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 36px;
}

.skill-tag,
.project-tags li {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.skill-tag {
  padding: 7px 13px;
}

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

.project-card {
  min-height: 510px;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.project-card:nth-child(2) .project-type,
.project-card:nth-child(2) .visual-code {
  color: var(--warm);
}

.project-card:nth-child(3) .project-type,
.project-card:nth-child(3) .visual-code {
  color: var(--blue);
}

.project-visual {
  position: relative;
  height: 180px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #111815;
}

.project-visual::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  opacity: 0.24;
}

.visual-code {
  position: absolute;
  top: 11px;
  left: 12px;
  z-index: 2;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.63rem;
}

.phone-frame {
  position: absolute;
  right: 24px;
  bottom: -24px;
  width: 116px;
  height: 170px;
  padding: 22px 13px;
  border: 2px solid #cfe5da;
  border-radius: 18px 18px 0 0;
  background: #17201c;
  box-shadow: -22px 18px 0 rgba(101, 223, 169, 0.12);
}

.phone-frame::before {
  position: absolute;
  top: 8px;
  left: 43px;
  width: 27px;
  height: 3px;
  border-radius: 2px;
  background: #53635b;
  content: "";
}

.phone-title {
  display: block;
  margin-bottom: 11px;
  font-size: 0.65rem;
  font-weight: 700;
}

.phone-frame i {
  display: block;
  height: 19px;
  margin-top: 6px;
  border: 1px solid #35443d;
  border-radius: 3px;
}

.phone-frame b {
  display: block;
  width: 100%;
  height: 20px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--accent);
}

.dashboard-frame {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 80%;
  height: 116px;
  padding: 16px 14px 12px 46px;
  border: 1px solid #5e6b64;
  border-radius: 4px;
  background: #17201c;
}

.dashboard-frame i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 34px;
  border-right: 1px solid #35443d;
  background: rgba(241, 184, 91, 0.08);
}

.dashboard-frame b {
  display: inline-block;
  width: 27%;
  height: 29px;
  margin-right: 4%;
  border: 1px solid #47564e;
  border-radius: 3px;
}

.dashboard-frame em {
  display: block;
  width: 92%;
  height: 5px;
  margin-top: 13px;
  background: #4c5b53;
}

.dashboard-frame em:last-child {
  width: 66%;
  background: var(--warm);
}

.chart-frame {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 78%;
  height: 118px;
  display: flex;
  align-items: end;
  gap: 9px;
  padding: 18px 18px 16px;
  border-left: 1px solid #5e6b64;
  border-bottom: 1px solid #5e6b64;
}

.chart-frame i {
  position: relative;
  z-index: 1;
  flex: 1;
  height: 30%;
  background: #476e92;
}

.chart-frame i:nth-child(2) { height: 48%; }
.chart-frame i:nth-child(3) { height: 38%; }
.chart-frame i:nth-child(4) { height: 72%; }
.chart-frame i:nth-child(5) { height: 92%; background: var(--blue); }

.chart-frame b {
  position: absolute;
  right: 12px;
  top: 42px;
  width: 85%;
  height: 2px;
  background: var(--warm);
  transform: rotate(-19deg);
  transform-origin: right;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 12px 0;
}

.project-meta > span {
  color: #7f8d86;
  font-size: 0.68rem;
}

.project-card h3 {
  margin: 15px 12px 0;
  font-size: 1.3rem;
  line-height: 1.3;
}

.project-description {
  margin-right: 12px;
  margin-left: 12px;
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.94rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding: 24px 12px 10px;
  list-style: none;
}

.project-tags li {
  padding: 5px 9px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.focus-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 30px 34px 30px 0;
  border-bottom: 1px solid var(--border);
}

.focus-item:nth-child(even) {
  padding-right: 0;
  padding-left: 34px;
  border-left: 1px solid var(--border);
}

.focus-number {
  color: var(--warm);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}

.focus-item h3 {
  font-size: 1.08rem;
}

.focus-item p {
  margin-top: 7px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.interest-strip {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.interest-strip > p:last-child {
  color: var(--text-dim);
}

.contact-section {
  padding: 82px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 90px;
  align-items: end;
}

.contact-layout h2 {
  max-width: 670px;
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
}

.contact-action p {
  margin-bottom: 24px;
  color: var(--text-dim);
  font-size: 0.94rem;
}

.social-links {
  display: grid;
  gap: 10px;
}

.social-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  gap: 13px;
  align-items: center;
  min-height: 62px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
  font-size: 0.86rem;
  font-weight: 650;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.social-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--accent-dark);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.instagram-icon {
  background: #3a2435;
  color: #f0a1d4;
}

.linkedin-icon {
  background: #173148;
  color: #7fc4ff;
  font-size: 0.9rem;
  font-weight: 750;
}

.x-icon {
  background: #202525;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 750;
}

.mail-icon {
  background: #3c3020;
  color: var(--warm);
  font-size: 1rem;
  font-weight: 750;
}

.social-link small {
  display: block;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 500;
}

.social-link > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.social-arrow {
  color: var(--text-dim);
}

.footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

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

.footer-links {
  display: flex;
  gap: 20px;
}

@media (max-width: 860px) {
  .hero-main {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .build-panel {
    max-width: 520px;
  }

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

  .project-card {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 36px, var(--max-width));
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 18px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 72px;
    padding-bottom: 44px;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 5.2rem);
  }

  .section-heading,
  .contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-layout {
    gap: 36px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .hero-facts > div {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }

  .hero-facts > div + div {
    padding-left: 0;
    border-left: 0;
  }

  .section {
    padding: 72px 0;
  }

  .about-layout,
  .focus-grid,
  .interest-strip {
    grid-template-columns: 1fr;
  }

  .about-layout {
    gap: 38px;
  }

  .focus-item,
  .focus-item:nth-child(even) {
    padding: 24px 0;
    border-left: 0;
  }

  .interest-strip {
    gap: 8px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .hero-actions .btn {
    width: 100%;
  }

  .project-card {
    min-height: 0;
  }

  .project-visual {
    height: 164px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
