:root {
  color-scheme: dark;
  --bg: #0b1017;
  --bg-soft: #101720;
  --surface: #121b25;
  --surface-raised: #17222d;
  --line: rgba(164, 185, 204, 0.13);
  --line-strong: rgba(164, 185, 204, 0.22);
  --text: #e7edf3;
  --muted: #91a0ad;
  --subtle: #657482;
  --accent: #70e0bc;
  --accent-blue: #83b9ff;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "DM Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.page-shell {
  overflow: hidden;
}

.section-wrap {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  width: min(1280px, calc(100% - 64px));
  height: 84px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -2px;
}

.brand-mark span {
  color: var(--accent);
}

.brand-name,
.eyebrow,
.card-kicker,
.caption-label,
.strip-inner > span,
.copyright {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.brand-name {
  color: #b7c2cc;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-left: 32px;
}

.main-nav a,
.header-contact {
  color: #aab6c1;
  font-size: 12px;
  font-weight: 600;
  transition: color 160ms ease;
}

.main-nav a:hover,
.header-contact:hover {
  color: var(--accent);
}

.header-contact {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
}

.header-contact span {
  color: var(--accent);
}

.hero {
  min-height: 570px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 48px;
  padding-block: 70px 82px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 10px;
}

.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(112, 224, 188, 0.6);
}

.hero h1 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(42px, 5.2vw, 66px);
  line-height: 1.13;
  letter-spacing: -0.065em;
  font-weight: 600;
}

.hero h1 span,
.section-heading h2 span,
.contact-inner h2 span {
  color: var(--accent);
}

.hero-intro {
  max-width: 535px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.hero-intro strong {
  color: #dce5eb;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 31px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #07140f;
}

.button-primary:hover {
  background: #8aebcc;
}

.button-quiet {
  border-color: var(--line-strong);
  color: var(--text);
}

.button-quiet:hover {
  border-color: var(--accent);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 42px;
  color: var(--subtle);
  font-family: var(--font-mono);
  font-size: 9px;
}

.meta-line {
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.meta-separator {
  color: #3d4c58;
}

.hero-visual {
  min-height: 385px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.visual-grid {
  position: absolute;
  z-index: -2;
  inset: 12px;
  opacity: 0.24;
  background-image: linear-gradient(rgba(141, 171, 195, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 171, 195, 0.11) 1px, transparent 1px);
  background-size: 35px 35px;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 76%);
}

.hero-visual::before {
  position: absolute;
  z-index: -1;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: rgba(44, 153, 135, 0.13);
  filter: blur(60px);
  content: "";
}

.orbit {
  position: absolute;
  border: 1px solid rgba(143, 180, 203, 0.19);
  border-radius: 50%;
}

.orbit-one {
  width: 260px;
  height: 260px;
}

.orbit-two {
  width: 365px;
  height: 365px;
  border-style: dashed;
  border-color: rgba(143, 180, 203, 0.13);
}

.cloud-core {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(112, 224, 188, 0.5);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(37, 71, 72, 0.9), rgba(20, 35, 44, 0.92));
  box-shadow: 0 0 55px rgba(65, 212, 172, 0.15), inset 0 1px rgba(255, 255, 255, 0.1);
}

.cloud-core svg {
  width: 55px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.orbit-node {
  position: absolute;
  min-width: 94px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(14, 21, 29, 0.94);
  color: #c4d0d9;
  font-size: 9px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.node-icon {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
}

.node-aws {
  top: 57px;
  left: 16%;
}

.node-terraform {
  top: 115px;
  right: 2%;
}

.node-docker {
  bottom: 83px;
  left: 18%;
}

.visual-caption {
  position: absolute;
  right: 3%;
  bottom: 35px;
  display: grid;
  gap: 5px;
  text-align: right;
}

.caption-label {
  color: var(--subtle);
  font-size: 8px;
}

.caption-value,
.visual-coordinate {
  color: #a5b4bf;
  font-family: var(--font-mono);
  font-size: 9px;
}

.visual-coordinate {
  position: absolute;
  color: #657985;
  font-size: 8px;
}

.coordinate-top {
  top: 22px;
  right: 14%;
}

.coordinate-bottom {
  bottom: 21px;
  left: 7%;
}

.intro-strip {
  border-block: 1px solid var(--line);
  background: #0e151d;
}

.strip-inner {
  min-height: 69px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.strip-inner > span {
  color: var(--subtle);
  white-space: nowrap;
}

.strip-inner p {
  margin: 0;
  color: #aeb9c3;
  font-family: var(--font-mono);
  font-size: 10px;
}

.strip-inner i {
  padding-inline: 8px;
  color: var(--accent);
  font-style: normal;
}

.content-section {
  padding-block: 108px;
}

.section-heading {
  max-width: 680px;
}

.section-heading .eyebrow {
  margin-bottom: 17px;
}

.section-heading h2,
.contact-inner h2 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 43px);
  line-height: 1.22;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 100px;
  margin-top: 37px;
}

.about-copy p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
}

.about-copy strong {
  color: #dbe5ed;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.about-facts {
  border-top: 1px solid var(--line);
}

.fact-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.fact-number {
  padding-top: 2px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
}

.fact-item div {
  display: grid;
  gap: 3px;
}

.fact-item strong {
  color: #dbe4eb;
  font-size: 12px;
}

.fact-item div span {
  color: var(--muted);
  font-size: 10px;
}

.skills-section {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}

.skills-heading,
.projects-heading {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.heading-aside {
  max-width: 310px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 42px;
}

.skill-card {
  min-height: 300px;
  padding: 24px 23px 20px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(22, 33, 44, 0.82), rgba(15, 23, 31, 0.7));
  transition: border-color 180ms ease, transform 180ms ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(112, 224, 188, 0.38);
}

.skill-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-symbol {
  color: var(--accent);
  font-size: 23px;
  line-height: 1;
}

.symbol-brackets {
  font-family: var(--font-mono);
  font-size: 17px;
}

.symbol-design {
  color: var(--accent-blue);
}

.card-number {
  color: #63727f;
  font-family: var(--font-mono);
  font-size: 9px;
}

.card-kicker {
  margin: 23px 0 8px;
  color: #7e919f;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.skill-card h3,
.project-main h3 {
  margin: 0;
  color: #e1e9ef;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.skill-description {
  min-height: 53px;
  margin: 9px 0 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.tag-list,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list span,
.project-tags span {
  padding: 4px 8px;
  border: 1px solid rgba(164, 185, 204, 0.14);
  border-radius: 3px;
  color: #a9bac5;
  font-family: var(--font-mono);
  font-size: 8px;
}

.skill-detail {
  margin: 15px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #72828f;
  font-size: 9px;
}

.projects-section {
  padding-bottom: 114px;
}

.project-list {
  margin-top: 42px;
  border-top: 1px solid var(--line-strong);
}

.project-card {
  display: grid;
  grid-template-columns: 62px 1fr 30px;
  gap: 20px;
  align-items: start;
  padding: 27px 5px 29px;
  border-bottom: 1px solid var(--line-strong);
  transition: padding 180ms ease;
}

.project-card:hover {
  padding-inline: 12px;
}

.project-index {
  padding-top: 4px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
}

.project-main .card-kicker {
  margin: 0 0 8px;
}

.project-main h3 {
  font-size: 18px;
}

.project-main > p:not(.card-kicker) {
  max-width: 700px;
  margin: 9px 0 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.project-arrow {
  color: #80919f;
  font-size: 18px;
  transition: color 160ms ease, transform 160ms ease;
}

.project-card:hover .project-arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

.contact-section {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 18% 55%, rgba(35, 105, 94, 0.12), transparent 38%),
    #0e151d;
}

.contact-inner {
  min-height: 330px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 70px;
  padding-block: 70px;
}

.contact-inner .eyebrow {
  margin-bottom: 17px;
}

.contact-inner h2 {
  max-width: 530px;
  font-size: clamp(32px, 4vw, 46px);
}

.contact-intro {
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.contact-cta {
  min-height: 42px;
}

.contact-links {
  border-top: 1px solid var(--line-strong);
}

.contact-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: #aab8c3;
  font-size: 10px;
  transition: color 160ms ease;
}

.contact-links a:hover {
  color: var(--accent);
}

.contact-links a span:first-child {
  color: #72828f;
}

.contact-links b {
  padding-left: 6px;
  color: var(--accent);
  font-weight: 400;
}

.site-footer {
  background: var(--bg);
}

.footer-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand .brand-mark {
  font-size: 19px;
}

.footer-inner p {
  margin: 0;
  color: #788793;
  font-size: 9px;
}

.footer-inner p span {
  padding-left: 4px;
  color: var(--accent);
}

.copyright {
  color: #667580;
  font-size: 8px;
  letter-spacing: 0.07em;
}

@media (max-width: 800px) {
  .section-wrap,
  .site-header {
    width: min(100% - 44px, 650px);
  }

  .site-header {
    height: 72px;
  }

  .main-nav {
    gap: 20px;
    margin-left: 0;
  }

  .main-nav a {
    font-size: 10px;
  }

  .header-contact {
    font-size: 10px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr 0.85fr;
    gap: 20px;
    padding-block: 75px;
  }

  .hero-visual {
    min-height: 330px;
    transform: scale(0.9);
  }

  .about-content {
    gap: 45px;
  }

  .content-section {
    padding-block: 82px;
  }

  .skill-grid {
    gap: 10px;
  }

  .skill-card {
    padding-inline: 16px;
  }

  .contact-inner {
    gap: 38px;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 68px;
  }

  .section-wrap,
  .site-header {
    width: calc(100% - 40px);
  }

  .site-header {
    height: 68px;
  }

  .brand-name {
    display: none;
  }

  .main-nav {
    gap: 15px;
  }

  .main-nav a {
    font-size: 9px;
  }

  .header-contact {
    gap: 5px;
    font-size: 9px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 62px 37px;
  }

  .hero h1 {
    max-width: 470px;
    font-size: clamp(43px, 12vw, 60px);
  }

  .hero-intro {
    max-width: 460px;
    font-size: 12px;
  }

  .hero-meta {
    flex-wrap: wrap;
    margin-top: 28px;
    font-size: 8px;
  }

  .hero-visual {
    min-height: 300px;
    margin-top: 2px;
    transform: none;
  }

  .orbit-one {
    width: 220px;
    height: 220px;
  }

  .orbit-two {
    width: 300px;
    height: 300px;
  }

  .cloud-core {
    width: 86px;
    height: 86px;
    border-radius: 24px;
  }

  .node-aws {
    left: 8%;
  }

  .node-terraform {
    right: -1%;
  }

  .node-docker {
    bottom: 54px;
    left: 9%;
  }

  .visual-caption {
    right: 1%;
    bottom: 25px;
  }

  .coordinate-top {
    right: 7%;
  }

  .strip-inner {
    min-height: 75px;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 15px;
    padding-block: 13px;
  }

  .strip-inner > span {
    font-size: 8px;
  }

  .strip-inner p {
    width: 100%;
    order: 1;
    font-size: 9px;
  }

  .strip-index {
    margin-left: auto;
  }

  .content-section {
    padding-block: 72px;
  }

  .section-heading h2 {
    font-size: clamp(30px, 8vw, 39px);
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 33px;
    margin-top: 27px;
  }

  .about-copy p {
    font-size: 12px;
  }

  .skills-heading,
  .projects-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .heading-aside {
    max-width: 400px;
  }

  .skill-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 29px;
  }

  .skill-card {
    min-height: 0;
    padding: 20px;
  }

  .skill-description {
    min-height: 0;
    max-width: 390px;
  }

  .project-list {
    margin-top: 29px;
  }

  .project-card {
    grid-template-columns: 28px 1fr 18px;
    gap: 9px;
    padding-block: 21px;
  }

  .project-card:hover {
    padding-inline: 5px;
  }

  .project-main h3 {
    font-size: 15px;
  }

  .project-main > p:not(.card-kicker) {
    font-size: 10px;
  }

  .project-tags {
    gap: 5px;
  }

  .contact-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 37px;
    padding-block: 67px;
  }

  .contact-inner h2 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .footer-inner {
    min-height: 72px;
  }

  .footer-inner p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
