:root {
  --bg: #071112;
  --panel: #0d1a1c;
  --panel-2: #112324;
  --text: #f4fbf9;
  --muted: #abc0bd;
  --line: rgba(189, 255, 240, 0.16);
  --cyan: #5de7ff;
  --green: #28f0a6;
  --amber: #f5b84b;
  --ink: #071112;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  font-family: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(40, 240, 166, 0.58);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(7, 17, 18, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.hero-actions,
.role-strip,
.project-meta,
.tags,
.contact-methods a,
.social-row,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark,
.skill-icon,
.social-icon,
.placeholder-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(93, 231, 255, 0.4);
  background: linear-gradient(135deg, rgba(93, 231, 255, 0.18), rgba(40, 240, 166, 0.16));
  color: var(--green);
  font-size: 13px;
  border-radius: 8px;
}

.main-nav {
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.contact-methods a:hover,
.contact-methods a:focus-visible {
  color: var(--green);
}

.header-cta,
.button {
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.header-cta {
  padding: 10px 15px;
  background: rgba(93, 231, 255, 0.1);
  color: var(--cyan);
  border-color: rgba(93, 231, 255, 0.28);
  font-size: 14px;
}

.button {
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
}

.button:hover,
.header-cta:hover,
.button:focus-visible,
.header-cta:focus-visible {
  transform: translateY(-2px);
}

.button:focus-visible,
.header-cta:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 5px rgba(40, 240, 166, 0.14), 0 16px 38px rgba(40, 240, 166, 0.18);
}

.header-cta:hover,
.header-cta:focus-visible {
  background: rgba(40, 240, 166, 0.18);
  border-color: var(--green);
  color: var(--green);
}

.primary {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: var(--ink);
}

.primary:hover,
.primary:focus-visible {
  background: linear-gradient(135deg, #b8ff33, var(--green));
  box-shadow: 0 0 0 5px rgba(184, 255, 51, 0.16), 0 18px 42px rgba(40, 240, 166, 0.26);
}

.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.secondary:hover,
.secondary:focus-visible {
  background: rgba(93, 231, 255, 0.12);
  border-color: rgba(93, 231, 255, 0.52);
  color: var(--cyan);
  box-shadow: 0 0 0 5px rgba(93, 231, 255, 0.12), 0 16px 34px rgba(93, 231, 255, 0.16);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  background: url("assets/blockchain-hero.png") center / cover no-repeat;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 17, 18, 0.96) 0%, rgba(7, 17, 18, 0.78) 42%, rgba(7, 17, 18, 0.38) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 17, 18, 0) 26%);
}

.hero-inner,
.section-inner {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92vh;
  padding-top: 88px;
  padding-bottom: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  width: min(760px, 100%);
  margin-bottom: 22px;
  font-size: clamp(42px, 7.5vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.2;
}

.hero-copy {
  width: min(720px, 100%);
  color: #d6e4e2;
  font-size: 18px;
  line-height: 1.75;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(760px, 100%);
  gap: 12px;
  margin-top: 38px;
}

.hero-stats div,
.skill-card,
.project-card,
.practice-list div,
.research-grid article,
.contact-form {
  border: 1px solid var(--line);
  background: rgba(13, 26, 28, 0.74);
  box-shadow: var(--shadow);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hero-stats div:hover,
.skill-card:hover,
.project-card:hover,
.practice-list div:hover,
.research-grid article:hover,
.contact-form:focus-within {
  background: rgba(13, 31, 30, 0.9);
  border-color: rgba(40, 240, 166, 0.7);
  box-shadow: 0 0 0 1px rgba(40, 240, 166, 0.18), 0 26px 70px rgba(40, 240, 166, 0.12);
  transform: translateY(-3px);
}

.hero-stats div {
  padding: 18px;
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 24px;
}

.hero-stats span,
.split-heading p,
.skill-card p,
.project-card p,
.security-layout p,
.practice-list span,
.research-grid p,
.education-items span,
.contact-copy p,
.form-status {
  color: var(--muted);
}

.intro-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #091617;
}

.role-strip {
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 18px 0;
}

.role-strip span,
.tags span {
  border: 1px solid rgba(93, 231, 255, 0.2);
  background: rgba(93, 231, 255, 0.07);
  color: #dffaf5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.role-strip span:hover,
.tags span:hover {
  background: rgba(184, 255, 51, 0.14);
  border-color: #b8ff33;
  color: #efffd2;
  box-shadow: 0 0 0 4px rgba(184, 255, 51, 0.08);
}

.role-strip span {
  padding: 9px 12px;
}

.section {
  padding: 88px 0;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.split-heading p,
.security-layout p,
.contact-copy p {
  line-height: 1.75;
}

.skill-grid,
.project-grid,
.research-grid {
  display: grid;
  gap: 16px;
}

.skill-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-card,
.project-card,
.research-grid article {
  border-radius: 8px;
}

.skill-card {
  min-height: 238px;
  padding: 24px;
}

.skill-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(40, 240, 166, 0.1);
  border: 1px solid rgba(40, 240, 166, 0.28);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.highlight-card {
  background: linear-gradient(135deg, rgba(40, 240, 166, 0.16), rgba(93, 231, 255, 0.1));
}

.project-section {
  background:
    linear-gradient(180deg, rgba(93, 231, 255, 0.04), rgba(7, 17, 18, 0)),
    #081315;
}

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

.project-card {
  padding: 28px;
}

.project-card.featured {
  background:
    linear-gradient(135deg, rgba(40, 240, 166, 0.16), rgba(93, 231, 255, 0.08)),
    rgba(13, 26, 28, 0.86);
}

.project-card:last-child:nth-child(odd) {
  grid-column: span 2;
}

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

.project-meta span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card p + p {
  margin-top: 14px;
}

.tags {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tags span {
  padding: 7px 10px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.project-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(40, 240, 166, 0.28);
  border-radius: 8px;
  background: rgba(40, 240, 166, 0.08);
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.project-link.icon-link {
  justify-content: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
}

.project-link.icon-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.project-link::after {
  content: "->";
  margin-left: 8px;
  transition: transform 180ms ease;
}

.project-link.icon-link::after {
  content: none;
}

.project-link:hover,
.project-link:focus-visible {
  color: #b8ff33;
}

.project-link:hover::after,
.project-link:focus-visible::after {
  transform: translateX(4px);
}

.security-section {
  background: #0b1718;
}

.security-layout,
.contact-layout,
.education-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: start;
}

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

.practice-list div {
  min-height: 144px;
  padding: 22px;
  border-radius: 8px;
}

.practice-list strong,
.education-items strong {
  display: block;
  margin-bottom: 8px;
}

.research-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.research-grid article {
  padding: 26px;
}

.education-band {
  background: linear-gradient(135deg, rgba(40, 240, 166, 0.1), rgba(93, 231, 255, 0.05));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.education-items {
  display: grid;
  gap: 14px;
}

.education-items p {
  margin: 0;
  padding: 20px;
  border-left: 3px solid var(--green);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 8px 8px 0;
}

.contact-section {
  padding-bottom: 64px;
}

.contact-methods {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
}

.contact-methods a {
  gap: 10px;
  color: #d8f7f1;
}

.placeholder-icon,
.social-icon {
  border-radius: 8px;
  border: 1px solid rgba(93, 231, 255, 0.24);
  background: rgba(93, 231, 255, 0.08);
  color: var(--cyan);
  font-weight: 900;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.placeholder-icon {
  width: 34px;
  height: 34px;
}

.social-row {
  gap: 10px;
  margin-top: 26px;
}

.social-icon {
  width: 44px;
  height: 44px;
  font-size: 13px;
}

.social-row a:hover .social-icon {
  border-color: var(--green);
  color: var(--green);
}

.contact-methods a:hover .placeholder-icon,
.contact-methods a:focus-visible .placeholder-icon,
.social-row a:hover .social-icon,
.social-row a:focus-visible .social-icon {
  background: rgba(40, 240, 166, 0.14);
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 0 5px rgba(40, 240, 166, 0.1);
  transform: translateY(-1px);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border-radius: 8px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #d8f7f1;
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(216, 247, 241, 0.48);
}

.contact-form select option {
  color: #0f172a;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  background: rgba(40, 240, 166, 0.07);
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(40, 240, 166, 0.13);
}

.form-status {
  min-height: 22px;
  margin: 0;
  font-size: 14px;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: 760px;
  }

  .hero-stats,
  .skill-grid,
  .project-grid,
  .research-grid,
  .practice-list,
  .split-heading,
  .security-layout,
  .contact-layout,
  .education-layout,
  .project-card.featured {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .project-card.featured h3,
  .project-card.featured p,
  .project-card.featured .project-meta,
  .project-card.featured ul,
  .project-card.featured .tags {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-cta {
    padding: 9px 12px;
  }

  .hero-inner,
  .section-inner {
    width: min(100% - 28px, 1140px);
  }

  .hero-inner {
    min-height: 720px;
    padding-top: 64px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-copy {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
