@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Gloock:ital@0;1&display=swap");

:root {
  --ink: #182126;
  --muted: #617078;
  --cream: #f3f4f1;
  --white: #fafbf8;
  --lilac: #dce7ed;
  --purple: #176b87;
  --blush: #e3e9ec;
  --sage: #dce5df;
  --yellow: #d3e5ec;
  --blue: #b9d0db;
  --line: rgba(24, 33, 38, 0.14);
  --serif: "Gloock", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
}

.logo {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

.logo span {
  color: var(--purple);
}

.wordmark {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.05em;
}

nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}

nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 3rem;
  padding: 9rem max(5vw, calc((100vw - 1260px) / 2)) 6rem;
  background: var(--lilac);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(24, 33, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 33, 38, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent 0%, black 55%, black 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 2.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 {
  max-width: 790px;
  font-size: clamp(4rem, 7vw, 7.4rem);
}

h2 {
  font-size: clamp(3.3rem, 6vw, 6.3rem);
}

h1 em,
h2 em {
  color: var(--purple);
  font-weight: 400;
}

.hero-intro {
  max-width: 510px;
  margin: 2rem 0 2.25rem;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  min-height: 54px;
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.button-primary {
  background: var(--ink);
  color: white;
}

.button-primary:hover {
  box-shadow: 0 12px 30px rgba(39, 37, 39, 0.2);
}

.text-link {
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.text-link span {
  display: inline-block;
  margin-left: 0.45rem;
  transition: transform 0.2s;
}

.text-link:hover span {
  transform: translateX(4px);
}

.hero-art {
  position: relative;
  min-height: 550px;
}

.tech-orbit {
  position: absolute;
  width: min(37vw, 520px);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(24, 33, 38, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.tech-orbit::before,
.tech-orbit::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--purple);
  border-radius: 50%;
  background: var(--lilac);
}

.tech-orbit::before {
  left: 4%;
  top: 31%;
}

.tech-orbit::after {
  right: 6%;
  bottom: 23%;
}

.browser-window {
  position: absolute;
  z-index: 2;
  width: 78%;
  height: 61%;
  left: 9%;
  top: 18%;
  overflow: hidden;
  border: 1px solid rgba(24, 33, 38, 0.18);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(31, 56, 69, 0.16);
  transform: rotate(-2deg);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: #eef2f2;
}

.window-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #91a0a7;
}

.window-bar i {
  margin-left: auto;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 0.58rem;
  font-style: normal;
}

.browser-body {
  display: grid;
  grid-template-columns: 19% 81%;
  height: calc(100% - 42px);
}

.browser-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1rem;
  background: var(--ink);
}

.browser-sidebar span {
  height: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
}

.browser-sidebar span:first-child {
  background: var(--blue);
}

.browser-content {
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.code-line {
  width: 76%;
  height: 7px;
  margin-bottom: 0.7rem;
  border-radius: 10px;
  background: #c9d2d4;
}

.code-line-short {
  width: 24%;
  background: var(--purple);
}

.code-line-medium {
  width: 57%;
}

.code-title {
  width: 68%;
  height: 34px;
  margin: 1.2rem 0;
  border-radius: 4px;
  background: var(--ink);
}

.status-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.status-row > div {
  min-height: 72px;
  padding: 0.8rem;
  border: 1px solid var(--line);
  background: #f2f5f4;
}

.status-row b {
  display: block;
  width: 15px;
  height: 15px;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--purple);
}

.status-row span {
  display: block;
  width: 70%;
  height: 5px;
  border-radius: 10px;
  background: #b7c2c5;
}

.server-card {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 10%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  min-width: 225px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(24, 33, 38, 0.2);
  background: var(--ink);
  color: white;
  box-shadow: 0 18px 45px rgba(24, 33, 38, 0.18);
}

.server-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #69c79b;
  box-shadow: 0 0 0 5px rgba(105, 199, 155, 0.13);
}

.server-card div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.server-card b,
.server-card small,
.server-card i {
  font-size: 0.58rem;
  font-style: normal;
  letter-spacing: 0.11em;
}

.server-card small {
  color: #9eacb1;
}

.server-card i {
  color: #8cd6b1;
}

.code-tag {
  position: absolute;
  z-index: 3;
  left: 1%;
  top: 10%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--ink);
  background: var(--yellow);
  font-family: Consolas, monospace;
  font-size: 0.7rem;
  transform: rotate(-5deg);
}

.art-orbit {
  position: absolute;
  width: min(36vw, 515px);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(39, 37, 39, 0.25);
  border-radius: 50%;
  transform: translate(-48%, -50%);
}

.art-orbit::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  right: 9%;
  bottom: 22%;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: -355px -190px 0 var(--ink);
}

.art-card {
  position: absolute;
  border: 1px solid rgba(39, 37, 39, 0.18);
  border-radius: 11px;
  box-shadow: 0 30px 80px rgba(60, 47, 91, 0.15);
}

.art-card-back {
  width: 52%;
  height: 39%;
  top: 12%;
  left: 3%;
  padding: 2rem;
  background: var(--blush);
  transform: rotate(-9deg);
}

.art-dot {
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: var(--purple);
}

.art-line {
  display: block;
  height: 7px;
  width: 80%;
  margin: 0 0 0.65rem;
  border-radius: 10px;
  background: rgba(39, 37, 39, 0.16);
}

.art-line.short {
  width: 35%;
  background: var(--ink);
}

.art-line.medium {
  width: 58%;
}

.art-card-front {
  width: 63%;
  height: 52%;
  right: 0;
  bottom: 11%;
  padding: 1.5rem;
  background: var(--white);
  transform: rotate(5deg);
}

.mini-nav {
  display: flex;
  gap: 5px;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.mini-nav span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blush);
}

.mini-nav span:nth-child(2) {
  background: var(--yellow);
}

.mini-nav span:nth-child(3) {
  background: var(--sage);
}

.mini-title {
  width: 56%;
  height: 13%;
  margin: 1.4rem 0;
  border-radius: 100px;
  background: var(--ink);
}

.mini-layout {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 1rem;
  height: 54%;
}

.mini-layout > div:first-child {
  border-radius: 8px;
  background: var(--yellow);
}

.mini-layout > div:last-child {
  display: grid;
  gap: 0.5rem;
}

.mini-layout span {
  border-radius: 7px;
  background: var(--blue);
}

.mini-layout span:nth-child(2) {
  background: var(--blush);
}

.mini-layout span:nth-child(3) {
  background: var(--sage);
}

.art-pill {
  position: absolute;
  z-index: 3;
  right: 4%;
  top: 12%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 100px;
  background: var(--yellow);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(8deg);
}

.art-pill span {
  margin: 0 0.3rem;
  color: var(--purple);
}

.spark {
  position: absolute;
  font-size: 2.2rem;
  color: var(--purple);
}

.spark-one {
  left: 3%;
  bottom: 12%;
}

.spark-two {
  right: 15%;
  bottom: 1%;
  font-size: 1.2rem;
  color: var(--ink);
}

.hero-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.45;
}

.hero-decoration-one {
  width: 240px;
  height: 240px;
  right: -80px;
  top: -80px;
  background: var(--blush);
}

.hero-decoration-two {
  width: 150px;
  height: 150px;
  left: -60px;
  bottom: 14%;
  background: var(--blue);
}

.scroll-cue {
  position: absolute;
  left: 5vw;
  bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue i {
  font-style: normal;
  font-size: 1rem;
  animation: bob 1.5s infinite;
}

.section {
  padding: 9rem max(5vw, calc((100vw - 1260px) / 2));
}

.section-label span {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid currentColor;
  border-radius: 50%;
  letter-spacing: 0;
}

.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(4rem, 8vw, 9rem);
}

.about-visual {
  position: relative;
  max-width: 520px;
  padding: 1.5rem 0 2rem 1.5rem;
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 0 1.5rem 0 0;
  background: var(--sage);
}

.terminal {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(24, 33, 38, 0.2);
  background: #152027;
  color: #e8efec;
  box-shadow: 0 25px 55px rgba(24, 33, 38, 0.16);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #202c33;
}

.terminal-top > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #617078;
}

.terminal-top small {
  margin-left: auto;
  color: #9dabb0;
  font-family: Consolas, monospace;
}

.terminal-body {
  min-height: 430px;
  padding: clamp(1.5rem, 4vw, 3rem);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.75;
}

.terminal-body p {
  margin: 0 0 0.9rem;
}

.terminal-body i {
  color: #72c49e;
  font-style: normal;
}

.terminal-output {
  padding-left: 1.25rem;
  color: #aebbc0;
}

.terminal-ready {
  color: #8fd4b3;
}

.terminal-ready span {
  animation: blink 0.9s steps(2) infinite;
}

.visual-label {
  position: absolute;
  z-index: 2;
  right: -1.5rem;
  bottom: 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--ink);
  background: var(--yellow);
  font-size: 0.64rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.about-copy h2 {
  margin-bottom: 2.4rem;
}

.about-copy .lead {
  max-width: 620px;
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.45;
}

.about-copy > p:not(.lead) {
  max-width: 650px;
  color: var(--muted);
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3.3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.about-facts div {
  display: flex;
  flex-direction: column;
}

.about-facts strong {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
}

.about-facts span {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skills {
  background: var(--blush);
}

.skills-heading,
.work-heading {
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  align-items: end;
  gap: 4rem;
  margin-bottom: 5rem;
}

.skills-heading p,
.work-heading p {
  max-width: 450px;
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.skill-card {
  position: relative;
  min-height: 430px;
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s, transform 0.25s;
}

.skill-card:hover {
  z-index: 1;
  background: rgba(255, 253, 249, 0.5);
  transform: translateY(-6px);
}

.skill-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4rem;
  border-radius: 4px;
  background: var(--white);
  font-family: Consolas, monospace;
  font-size: 0.92rem;
}

.skill-number {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.skill-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
}

.skill-card p {
  min-height: 68px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.service-list {
  display: grid;
  gap: 0.65rem;
  margin: 2rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  background: var(--purple);
}

.progress {
  height: 4px;
  margin-top: 2rem;
  overflow: hidden;
  background: rgba(39, 37, 39, 0.12);
}

.progress span {
  display: block;
  width: var(--progress);
  height: 100%;
  background: var(--purple);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .progress span {
  width: 0;
}

.js .skill-card.visible .progress span {
  width: var(--progress);
}

.skill-card small {
  display: block;
  margin-top: 0.45rem;
  text-align: right;
  font-size: 0.65rem;
}

.tool-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tool-strip i {
  color: var(--purple);
  font-style: normal;
}

.work {
  background: var(--cream);
}

.project-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1.5rem;
}

.project {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: var(--lilac);
}

.project-visual {
  position: absolute;
  inset: 0;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-web {
  background: #cbdbe2;
}

.project-backend {
  background: #21313a;
}

.project-hosting {
  background: #dfe6e3;
}

.project-api {
  background: #aebfc8;
}

.website-visual {
  display: grid;
  place-items: center;
  padding: 9%;
}

.site-frame {
  width: 100%;
  height: 82%;
  overflow: hidden;
  border: 1px solid rgba(24, 33, 38, 0.2);
  background: var(--white);
  box-shadow: 0 25px 55px rgba(24, 33, 38, 0.15);
  transform: rotate(-2deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8%;
  height: 9%;
  padding: 0 6%;
  border-bottom: 1px solid var(--line);
  font-size: 0.55rem;
}

.site-nav b {
  margin-right: auto;
}

.site-nav span {
  width: 11%;
  height: 3px;
  background: #bcc7ca;
}

.site-hero-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 53%;
  padding: 8%;
  background: #edf2f1;
}

.site-hero-block small {
  color: var(--purple);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
}

.site-hero-block strong {
  margin: 0.8rem 0 1.4rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
}

.site-hero-block i {
  width: 31%;
  height: 22px;
  background: var(--purple);
}

.site-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4%;
  height: 38%;
  padding: 7%;
}

.site-cards span {
  border: 1px solid var(--line);
  background: #e2e9e8;
}

.site-cards span:nth-child(2) {
  background: var(--yellow);
}

.dashboard-visual {
  display: grid;
  grid-template-columns: 16% 84%;
  padding: 8%;
}

.dash-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem 0.7rem;
  background: #152027;
}

.dash-sidebar b {
  margin-bottom: 1rem;
  color: white;
  font-size: 0.7rem;
}

.dash-sidebar span {
  width: 20px;
  height: 4px;
  background: #53636b;
}

.dash-main {
  padding: 1.5rem;
  background: #edf1ef;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-head strong {
  font-size: 0.85rem;
}

.dash-head i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 1.4rem 0;
}

.dash-stats span {
  height: 62px;
  border: 1px solid var(--line);
  background: white;
}

.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 5%;
  height: 135px;
  padding: 1.3rem;
  background: white;
}

.dash-chart i {
  width: 12%;
  height: 40%;
  background: var(--blue);
}

.dash-chart i:nth-child(2) { height: 67%; }
.dash-chart i:nth-child(3) { height: 53%; }
.dash-chart i:nth-child(4) { height: 82%; background: var(--purple); }
.dash-chart i:nth-child(5) { height: 70%; }
.dash-chart i:nth-child(6) { height: 91%; }

.hosting-visual {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 8%;
  padding: 10%;
}

.hosting-ring {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 12px solid #b9c9c4;
  border-top-color: var(--purple);
  border-radius: 50%;
  transform: rotate(-20deg);
}

.hosting-ring strong,
.hosting-ring span {
  transform: rotate(20deg);
}

.hosting-ring strong {
  align-self: end;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  font-weight: 400;
}

.hosting-ring strong small {
  font-size: 0.5em;
}

.hosting-ring span {
  align-self: start;
  font-size: 0.5rem;
  letter-spacing: 0.15em;
}

.server-stack {
  display: grid;
  gap: 0.7rem;
}

.server-stack > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.server-stack i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #42a777;
}

.server-stack span {
  height: 5px;
  border-radius: 10px;
  background: #c6d0cd;
}

.server-stack b {
  color: var(--muted);
  font-size: 0.48rem;
}

.api-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 10%;
}

.api-node,
.api-center {
  display: grid;
  place-items: center;
  height: 92px;
  border: 1px solid rgba(24, 33, 38, 0.2);
  background: var(--white);
  font-family: Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
}

.api-node {
  width: 30%;
}

.api-center {
  z-index: 1;
  width: 86px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
}

.api-visual > span {
  width: 9%;
  height: 2px;
  background: var(--purple);
}

.api-status {
  position: absolute;
  bottom: 19%;
  padding: 0.45rem 0.7rem;
  background: #d9eee4;
  color: #287553;
  font-size: 0.5rem;
  font-style: normal;
  letter-spacing: 0.12em;
}

.project-tall {
  grid-row: span 2;
  min-height: 885px;
}

.project-wide {
  min-height: 430px;
}

.project img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s;
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.2rem;
  color: white;
  background: linear-gradient(180deg, transparent 35%, rgba(27, 24, 29, 0.86));
  opacity: 0;
  transition: opacity 0.35s;
}

.project-overlay span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(12px);
  transition: transform 0.35s;
}

.project-overlay h3 {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  overflow-wrap: anywhere;
  transform: translateY(12px);
  transition: transform 0.35s 0.03s;
}

.project-overlay p {
  max-width: 360px;
  margin: 0.8rem 0 0;
  font-size: 0.82rem;
  transform: translateY(12px);
  transition: transform 0.35s 0.06s;
}

.project-overlay i {
  position: absolute;
  right: 2rem;
  top: 2rem;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-style: normal;
}

.project:hover img,
.project:focus-visible img {
  transform: scale(1.045);
  filter: saturate(0.9);
}

.project:hover .project-visual,
.project:focus-visible .project-visual {
  transform: scale(1.035);
}

.project:hover .project-overlay,
.project:focus-visible .project-overlay {
  opacity: 1;
}

.project:hover .project-overlay span,
.project:hover .project-overlay h3,
.project:hover .project-overlay p,
.project:focus-visible .project-overlay span,
.project:focus-visible .project-overlay h3,
.project:focus-visible .project-overlay p {
  transform: translateY(0);
}

.education {
  background: var(--sage);
}

.education-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 8rem;
}

.education-heading {
  position: sticky;
  top: 4rem;
  align-self: start;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  padding: 2.2rem 1rem 2.2rem 2.7rem;
  border-bottom: 1px solid var(--line);
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 2.55rem;
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.timeline-item:first-child .timeline-marker {
  background: var(--purple);
  box-shadow: inset 0 0 0 3px var(--sage);
}

.timeline-item span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 0.5rem 0 0.1rem;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
}

.timeline-item p {
  margin: 0;
  font-weight: 600;
}

.timeline-item small {
  display: block;
  max-width: 580px;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(4rem, 9vw, 10rem);
  background: var(--lilac);
}

.contact-intro > p {
  max-width: 430px;
  margin: 2rem 0;
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.contact-links a {
  padding-bottom: 0.1rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.86rem;
  font-weight: 600;
}

.contact-links span {
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

.contact-links a:hover span {
  transform: translate(3px, -3px);
}

.contact-form {
  align-self: end;
  padding: clamp(2rem, 4vw, 4rem);
  background: var(--white);
  box-shadow: 0 28px 70px rgba(31, 56, 69, 0.12);
}

.contact-form label {
  display: block;
  margin-bottom: 1.7rem;
}

.contact-form label > span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--purple);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #a39da3;
}

.button-dark {
  width: 100%;
  margin-top: 0.4rem;
  background: var(--ink);
  color: white;
}

.button-dark:hover {
  background: var(--purple);
}

.button-dark:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  min-height: 1.3rem;
  margin: 0.7rem 0 0;
  color: var(--purple);
  font-size: 0.76rem;
  text-align: center;
}

.form-status-success {
  color: #287553;
}

.form-status-error {
  color: #a23b3b;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 5vw;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-light {
  color: white;
  font-size: 1.7rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 10rem;
  }

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

  .hero-art {
    width: min(700px, 90vw);
    min-height: 500px;
    justify-self: center;
  }

  .art-orbit {
    width: 440px;
  }

  .tech-orbit {
    width: 460px;
  }

  .scroll-cue {
    display: none;
  }

  .about-grid,
  .education-grid,
  .contact {
    gap: 4rem;
  }

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

  .skill-card {
    min-height: 330px;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 76px;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: block;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    background: transparent;
  }

  .menu-toggle span:not(.sr-only) {
    display: none;
  }

  .menu-toggle::before,
  .menu-toggle::after {
    content: "";
    position: absolute;
    left: 10px;
    width: 22px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.2s, top 0.2s;
  }

  .menu-toggle::before {
    top: 16px;
  }

  .menu-toggle::after {
    top: 24px;
  }

  .menu-toggle[aria-expanded="true"]::before,
  .menu-toggle[aria-expanded="true"]::after {
    top: 20px;
  }

  .menu-toggle[aria-expanded="true"]::before {
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"]::after {
    transform: rotate(-45deg);
  }

  .js nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--lilac);
    font-family: var(--serif);
    font-size: 2rem;
    transform: translateY(-100%);
    transition: transform 0.35s;
  }

  .js nav.open {
    transform: translateY(0);
  }

  .hero {
    padding: 8.5rem 1.4rem 5rem;
  }

  h1 {
    font-size: clamp(3rem, 12.8vw, 4.4rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(3rem, 13vw, 4.6rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.4rem;
  }

  .hero-art {
    width: 100%;
    min-height: 380px;
  }

  .art-orbit {
    width: 330px;
  }

  .art-card-back {
    left: 0;
  }

  .art-card-front {
    right: 0;
  }

  .art-pill {
    top: 7%;
    right: 0;
  }

  .tech-orbit {
    width: 330px;
  }

  .browser-window {
    width: 92%;
    height: 63%;
    left: 2%;
    top: 19%;
  }

  .browser-content {
    padding: 1.2rem;
  }

  .code-title {
    height: 24px;
  }

  .status-row {
    margin-top: 1.3rem;
  }

  .status-row > div {
    min-height: 55px;
    padding: 0.6rem;
  }

  .server-card {
    right: -2%;
    bottom: 3%;
    min-width: 195px;
  }

  .code-tag {
    left: 0;
    top: 9%;
  }

  .section {
    padding: 6.5rem 1.4rem;
  }

  .about-grid,
  .skills-heading,
  .work-heading,
  .education-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 4rem;
  }

  .about-visual {
    margin-right: 1rem;
    padding-left: 1rem;
  }

  .terminal-body {
    min-height: 360px;
    font-size: 0.78rem;
  }

  .visual-label {
    right: -1rem;
  }

  .about-facts {
    gap: 0.5rem;
  }

  .about-facts strong {
    font-size: 2rem;
  }

  .skills-heading,
  .work-heading {
    gap: 1.5rem;
    margin-bottom: 3.5rem;
  }

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

  .project,
  .project-tall,
  .project-wide {
    min-height: 520px;
    grid-row: auto;
  }

  .project-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 48%, rgba(18, 28, 33, 0.92));
  }

  .project-overlay span,
  .project-overlay h3,
  .project-overlay p {
    transform: translateY(0);
  }

  .education-grid {
    gap: 3rem;
  }

  .education-heading {
    position: static;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }
}

@media (max-width: 520px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    min-height: auto;
  }

  .skill-icon {
    margin-bottom: 2.5rem;
  }

  .about-facts span {
    font-size: 0.58rem;
  }

  .project,
  .project-tall,
  .project-wide {
    min-height: 430px;
  }

  .hosting-visual {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .hosting-ring {
    width: 145px;
    justify-self: center;
  }

  .server-stack {
    width: 100%;
  }

  .api-node {
    width: 32%;
    font-size: 0.48rem;
  }

  .api-center {
    width: 68px;
    height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
