:root {
  --navy: #0a192f;
  --navy-light: #112240;
  --navy-soft: #172a45;
  --slate: #8892b0;
  --slate-light: #a8b2d1;
  --lightest: #ccd6f6;
  --teal: #64ffda;
  --font-sans: "Inter", Arial, sans-serif;
  --font-mono: "Fira Code", monospace;
  --content: 1000px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--navy);
  color: var(--slate);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.site-shell {
  overflow: hidden;
}
.content-width {
  width: min(var(--content), calc(100% - 100px));
  margin-inline: auto;
}
.topbar {
  height: 90px;
  padding: 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(10, 25, 47, 0.87);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s;
}
.topbar.scrolled {
  box-shadow: 0 10px 28px rgba(2, 12, 27, 0.22);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lightest);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-family: var(--font-mono);
  display: grid;
  place-items: center;
  font-size: 18px;
  border-radius: 5px;
}
.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.7px;
}
.brand-name span {
  color: var(--teal);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 29px;
  font: 12px var(--font-mono);
  color: var(--lightest);
}
.main-nav > a {
  transition: color 0.2s;
}
.main-nav > a:hover,
.main-nav > a.active {
  color: var(--teal);
}
.main-nav > a > span {
  color: var(--teal);
  margin-right: 5px;
}
.main-nav .resume-link {
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: 9px 14px;
  border-radius: 4px;
  margin-left: 4px;
}
.resume-link span {
  margin-left: 6px;
}
.menu-toggle {
  display: none;
}
.side-rail {
  position: fixed;
  left: 40px;
  bottom: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  z-index: 4;
}
.social-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.social-icon {
  width: 30px;
  height: 30px;
  display: block;
  color: var(--slate-light);
  transition:
    transform 0.2s,
    color 0.2s;
}
.social-icon:hover {
  color: var(--teal);
  transform: translateY(-3px);
}
.social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.rail-line {
  height: 90px;
  width: 1px;
  background: var(--slate);
  margin-top: 22px;
  opacity: 0.7;
}
.hero {
  min-height: 780px;
  padding-top: 206px;
  position: relative;
}
.eyebrow,
.section-number,
.project-kind,
.hero-note,
.job-dates,
.contact-footnote {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
}
.hero h1 {
  color: var(--lightest);
  font-size: clamp(64px, 9vw, 88px);
  line-height: 1.05;
  letter-spacing: -5px;
  margin: 12px 0 4px;
  font-weight: 700;
}
.hero-subtitle {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.12;
  letter-spacing: -3px;
  color: var(--slate);
  margin: 0;
  max-width: 790px;
}
.hero-copy {
  font-size: 16px;
  max-width: 540px;
  margin: 22px 0 31px;
  color: var(--slate);
}
.button {
  border: 1px solid var(--teal);
  color: var(--teal);
  font: 13px var(--font-mono);
  padding: 15px 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 17px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  background: rgba(100, 255, 218, 0.1);
  transform: translateY(-2px);
}
.button span {
  font-size: 16px;
}
.hero-note {
  position: absolute;
  bottom: 68px;
  left: 0;
  color: var(--slate);
  font-size: 11px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  margin-right: 9px;
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}
.hero-index {
  position: absolute;
  right: 0;
  bottom: 68px;
  font: 12px var(--font-mono);
  color: var(--teal);
}
.hero-index span {
  color: var(--slate);
}
.section {
  padding-top: 62px;
  padding-bottom: 80px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 37px;
}
.section-heading h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  color: var(--lightest);
  margin: 0;
  white-space: nowrap;
}
.section-number {
  font-size: 14px;
}
.heading-rule {
  height: 1px;
  background: var(--navy-soft);
  width: min(280px, 35vw);
  margin-left: 10px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr;
  gap: 64px;
  align-items: start;
}
.about-copy p {
  margin: 0 0 16px;
}
.about-copy strong {
  color: var(--teal);
  font-weight: 500;
}
.tech-stack {
  margin-top: 32px;
}
.tech-stack > h3 {
  color: var(--lightest);
  font-size: 19px;
  letter-spacing: -0.4px;
  margin: 0 0 16px;
}
.tech-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}
.tech-group {
  border: 1px solid rgba(136, 146, 176, 0.24);
  border-radius: 7px;
  background: linear-gradient(
    145deg,
    rgba(17, 34, 64, 0.78),
    rgba(12, 27, 48, 0.62)
  );
  padding: 15px;
}
.tech-group h4 {
  margin: 0 0 12px;
  color: var(--teal);
  font: 11px var(--font-mono);
  letter-spacing: 0.2px;
}
.tech-items {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
}
.tech-items li {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 5px;
  border: 1px solid rgba(136, 146, 176, 0.17);
  border-radius: 5px;
  background: rgba(10, 25, 47, 0.72);
  color: var(--slate-light);
  font: 10px/1.25 var(--font-mono);
  text-align: center;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.tech-items li:hover {
  border-color: rgba(100, 255, 218, 0.5);
  transform: translateY(-2px);
}
.tech-items img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.portrait-wrap {
  width: 280px;
  max-width: 100%;
  margin: 6px auto 0;
  position: relative;
}
.portrait {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  border-radius: 7px;
  overflow: hidden;
  background: linear-gradient(145deg, #193952, #214c5c 50%, #17354e);
  box-shadow: 0 16px 35px rgba(2, 12, 27, 0.32);
}
.portrait-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 72% 17%,
      rgba(100, 255, 218, 0.35),
      transparent 30%
    ),
    linear-gradient(145deg, #254f62, #17344d 72%);
}
.portrait-sun {
  position: absolute;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  right: 28px;
  top: 29px;
  background: linear-gradient(145deg, #89f4d7, #55a6a1);
  opacity: 0.65;
}
.portrait-arch {
  position: absolute;
  width: 225px;
  height: 230px;
  border-radius: 120px 120px 0 0;
  border: 1px solid rgba(204, 214, 246, 0.32);
  left: 28px;
  bottom: -36px;
  background: linear-gradient(
    145deg,
    rgba(10, 25, 47, 0.1),
    rgba(10, 25, 47, 0.8)
  );
}
.portrait-orbit {
  position: absolute;
  width: 225px;
  height: 90px;
  border: 1px solid rgba(100, 255, 218, 0.48);
  border-radius: 50%;
  transform: rotate(-33deg);
  top: 103px;
  left: 5px;
}
.orbit-two {
  transform: rotate(50deg);
  border-color: rgba(204, 214, 246, 0.3);
}
.portrait-initial {
  position: absolute;
  font-size: 119px;
  letter-spacing: -14px;
  font-weight: 600;
  color: #c2e9dd;
  bottom: 4px;
  left: 84px;
  line-height: 1;
  text-shadow: 0 8px 22px rgba(10, 25, 47, 0.4);
}
.portrait-caption {
  position: absolute;
  right: 14px;
  bottom: 13px;
  color: rgba(204, 214, 246, 0.72);
  font: 8px/1.5 var(--font-mono);
  letter-spacing: 1px;
}
.portrait-accent {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--teal);
  border-radius: 7px;
  right: -14px;
  bottom: -14px;
  transition: transform 0.25s;
}
.portrait-wrap:hover .portrait-accent {
  transform: translate(4px, 4px);
}
.portrait-glow {
  position: absolute;
  inset: -24px;
  background: radial-gradient(
    ellipse,
    rgba(100, 255, 218, 0.13),
    transparent 65%
  );
}
.experience-section {
  padding-top: 60px;
}
.experience-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  min-height: 225px;
}
.tabs {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--navy-soft);
}
.tab {
  border: 0;
  background: none;
  color: var(--slate);
  font: 12px var(--font-mono);
  padding: 12px 17px;
  text-align: left;
  cursor: pointer;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition:
    color 0.2s,
    background 0.2s;
}
.tab:hover,
.tab.active {
  color: var(--teal);
  background: rgba(100, 255, 218, 0.04);
  border-left-color: var(--teal);
}
.job-panel h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--lightest);
  margin: 0 0 4px;
}
.job-panel h3 span {
  color: var(--teal);
}
.job-dates {
  font-size: 11px;
  color: var(--slate);
  margin: 0 0 18px;
}
.job-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}
.job-bullets li {
  position: relative;
  padding-left: 23px;
  margin: 0 0 11px;
  max-width: 660px;
}
.job-bullets li:before {
  position: absolute;
  left: 0;
  content: "▹";
  color: var(--teal);
}
.work-section {
  padding-top: 74px;
}
.section-intro {
  margin: -25px 0 35px;
  font-size: 14px;
}
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  display: flex;
  align-items: stretch;
  position: relative;
  aspect-ratio: 1 / 1;
  min-width: 0;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(136, 146, 176, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, #11243b, #0c1b30 75%);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}
.project-card:nth-child(2) {
  background: linear-gradient(145deg, #15343d, #0c1b30 75%);
}
.project-card:nth-child(3) {
  background: linear-gradient(145deg, #282747, #0c1b30 75%);
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(100, 255, 218, 0.48);
  box-shadow: 0 16px 36px rgba(2, 12, 27, 0.2);
}
.project-visual {
  height: 280px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 5px;
  overflow: hidden;
  background: #11243b;
}
.visual-notes {
  background: linear-gradient(140deg, #133643, #21505a);
}
.browser-frame {
  width: 79%;
  height: 77%;
  background: #f1efe6;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(2, 12, 27, 0.3);
  overflow: hidden;
  transform: rotate(-3deg);
  position: relative;
  z-index: 1;
}
.browser-top {
  height: 29px;
  background: #e4e4da;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 5px;
  color: #62736f;
  font: 7px var(--font-mono);
}
.browser-top i {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #b2b8ad;
}
.browser-top span {
  margin-left: 13px;
}
.notes-ui {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  height: calc(100% - 29px);
  color: #34514c;
}
.notes-sidebar {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 16px 12px;
  font-size: 8px;
  background: #e8e8dc;
}
.notes-sidebar b {
  font-family: var(--font-mono);
  font-size: 8px;
  margin-bottom: 7px;
}
.notes-paper {
  padding: 18px 17px;
}
.note-paper {
  padding: 18px 17px;
}
.note-paper small {
  font: 6px var(--font-mono);
  color: #81958a;
  letter-spacing: 0.7px;
}
.note-paper h4 {
  font: 600 19px/1.14 var(--font-sans);
  letter-spacing: -0.7px;
  margin: 10px 0;
  color: #284841;
}
.paper-lines {
  height: 30px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 9px,
    #cad6cc 10px
  );
  opacity: 0.7;
}
.visual-orbit {
  position: absolute;
  width: 280px;
  height: 180px;
  border: 1px solid rgba(100, 255, 218, 0.24);
  border-radius: 50%;
  transform: rotate(36deg);
  right: -38px;
  bottom: -90px;
}
.project-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.project-card.reverse .project-info {
  margin: 0;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-kind {
  font-size: 10px;
}
.project-open {
  color: var(--teal);
  font-size: 16px;
  line-height: 1;
}
.project-links {
  display: flex;
  gap: 13px;
  font-size: 17px;
  color: var(--lightest);
}
.project-links a:hover {
  color: var(--teal);
}
.project-info h3 {
  font-size: 21px;
  color: var(--lightest);
  margin: 12px 0 20px;
  letter-spacing: -0.5px;
}
.project-info > p {
  background: #112240;
  padding: 19px 21px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(2, 12, 27, 0.2);
  font-size: 13px;
  margin: 0 0 13px;
  color: var(--slate-light);
}
.project-tech {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  font: 10px var(--font-mono);
  color: var(--slate);
}
.project-tech li {
  padding: 6px 8px;
  border: 1px solid rgba(136, 146, 176, 0.2);
  border-radius: 4px;
}
.visual-orbit {
  pointer-events: none;
}
.visual-orbit .orbit-card {
  display: none;
}
.visual-orbit {
  isolation: isolate;
}
.visual-orbit:before {
  content: "";
  position: absolute;
  inset: 30px 55px;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(100, 255, 218, 0.22),
    transparent 53%
  );
  filter: blur(3px);
}
.visual-orbit:not(.visual-notes) {
  background: linear-gradient(140deg, #182c4c, #252847);
}
.orbit-card {
  display: block !important;
  position: relative;
  z-index: 2;
  width: 56%;
  height: 82%;
  border: 1px solid rgba(204, 214, 246, 0.16);
  border-radius: 9px;
  background: linear-gradient(150deg, #172a45, #101c35);
  padding: 15px 18px;
  color: var(--lightest);
  box-shadow: 0 20px 40px rgba(2, 12, 27, 0.4);
  transform: rotate(4deg);
}
.orbit-header,
.orbit-footer {
  display: flex;
  justify-content: space-between;
  font: 10px var(--font-mono);
  color: var(--slate-light);
}
.orbit-header span:first-child {
  font-weight: 600;
  color: var(--lightest);
  font-size: 13px;
}
.orbit-ring {
  height: 91px;
  width: 91px;
  border: 7px solid #263d59;
  border-right-color: var(--teal);
  border-top-color: var(--teal);
  border-radius: 50%;
  margin: 13px auto 8px;
  display: grid;
  place-items: center;
  transform: rotate(25deg);
  position: relative;
}
.orbit-ring b {
  font-size: 17px;
  transform: rotate(-25deg);
  font-weight: 500;
  color: var(--lightest);
}
.orbit-footer {
  font-size: 7px;
}
.orbit-footer span + span {
  color: var(--teal);
}
.orbit-bars {
  height: 22px;
  display: flex;
  align-items: end;
  gap: 7px;
  margin-top: 9px;
}
.orbit-bars i {
  width: 11%;
  border-radius: 3px 3px 0 0;
  background: rgba(100, 255, 218, 0.65);
}
.orbit-bars i:nth-child(1) {
  height: 30%;
}
.orbit-bars i:nth-child(2) {
  height: 52%;
}
.orbit-bars i:nth-child(3) {
  height: 45%;
}
.orbit-bars i:nth-child(4) {
  height: 75%;
}
.orbit-bars i:nth-child(5) {
  height: 56%;
}
.orbit-bars i:nth-child(6) {
  height: 91%;
}
.orbit-bars i:nth-child(7) {
  height: 75%;
}
.visual-star {
  position: absolute;
  color: var(--teal);
  font-size: 24px;
}
.star-one {
  top: 34px;
  right: 54px;
}
.star-two {
  bottom: 42px;
  left: 46px;
  color: #f2bc84;
  font-size: 19px;
}
.visual-canvas {
  background: #ebe3d5;
}
.canvas-window {
  width: 78%;
  height: 78%;
  background: #f7f5ee;
  box-shadow: 0 17px 33px rgba(25, 32, 41, 0.2);
  border-radius: 5px;
  overflow: hidden;
  transform: rotate(2deg);
  position: relative;
  z-index: 1;
}
.canvas-toolbar,
.canvas-footer {
  height: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 11px;
  color: #65706d;
  font: 7px var(--font-mono);
}
.canvas-art {
  height: calc(100% - 50px);
  position: relative;
  overflow: hidden;
  background: #dce4d5;
}
.canvas-shape {
  position: absolute;
  border-radius: 50%;
}
.shape-a {
  width: 135px;
  height: 135px;
  background: #f1ad7e;
  top: 5px;
  left: 23%;
  mix-blend-mode: multiply;
}
.shape-b {
  width: 110px;
  height: 110px;
  background: #74b8aa;
  bottom: -13px;
  left: 17%;
  mix-blend-mode: multiply;
}
.shape-c {
  width: 100px;
  height: 100px;
  background: #818bc2;
  right: 15%;
  bottom: 4px;
  mix-blend-mode: multiply;
}
.canvas-label {
  position: absolute;
  z-index: 2;
  left: 39%;
  top: 34%;
  font: 600 17px/1.05 var(--font-sans);
  letter-spacing: -0.8px;
  color: #24433d;
  transform: rotate(-8deg);
}
.canvas-footer {
  height: 25px;
}
.canvas-spark {
  position: absolute;
  right: 42px;
  top: 37px;
  color: #31594e;
  font-size: 20px;
}
.more-work {
  padding-top: 20px;
  padding-bottom: 110px;
  text-align: center;
}
.more-work p {
  font-size: 20px;
  color: var(--lightest);
  margin: 0 0 10px;
  font-weight: 500;
  letter-spacing: -0.4px;
}
.text-link {
  color: var(--teal);
  font: 11px var(--font-mono);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
}
.text-link:hover {
  border-color: var(--teal);
}
.text-link span {
  margin-left: 5px;
}
.contact-section {
  text-align: center;
  max-width: 600px;
  padding-top: 55px;
  padding-bottom: 85px;
}
.contact-section .section-number {
  font-size: 12px;
}
.contact-section h2 {
  font-size: clamp(44px, 8vw, 66px);
  line-height: 1.04;
  color: var(--lightest);
  letter-spacing: -3px;
  margin: 19px 0;
}
.contact-section h2 em {
  font-style: normal;
  color: var(--teal);
}
.contact-section > p:not(.section-number) {
  max-width: 470px;
  margin: 0 auto 27px;
}
.contact-footnote {
  margin-top: 93px;
  color: var(--slate);
  font-size: 10px;
}
.contact-footnote span {
  color: var(--teal);
  margin-left: 5px;
}
.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.65s ease forwards;
}
.hero .reveal:nth-child(1) {
  animation-delay: 0.08s;
}
.hero .reveal:nth-child(2) {
  animation-delay: 0.17s;
}
.hero .reveal:nth-child(3) {
  animation-delay: 0.26s;
}
.hero .reveal:nth-child(4) {
  animation-delay: 0.35s;
}
.hero .reveal:nth-child(5) {
  animation-delay: 0.44s;
}
@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 900px) {
  .side-rail {
    left: 23px;
  }
  .content-width {
    width: min(var(--content), calc(100% - 90px));
  }
  .topbar {
    padding: 0 30px;
  }
  .main-nav {
    gap: 17px;
  }
  .project-card,
  .project-card.reverse {
    grid-template-columns: 1fr;
  }
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-visual {
    height: 245px;
  }
  .project-info {
    margin-left: -18px;
  }
  .project-card.reverse .project-info {
    margin-right: -18px;
  }
}
@media (max-width: 680px) {
  html {
    scroll-padding-top: 75px;
  }
  .topbar {
    height: 76px;
    padding: 0 23px;
  }
  .brand-mark {
    width: 31px;
    height: 31px;
  }
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--teal);
    border-radius: 5px;
    background: transparent;
  }
  .menu-toggle span {
    width: 18px;
    height: 1px;
    background: var(--teal);
    transition: transform 0.2s;
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(78vw, 340px);
    height: 100vh;
    padding: 100px 35px 35px;
    background: #112240;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: -15px 0 50px rgba(2, 12, 27, 0.3);
    transform: translateX(110%);
    transition: transform 0.25s;
  }
  .main-nav.open {
    transform: translateX(0);
  }
  .main-nav > a {
    padding: 17px 0;
    text-align: center;
  }
  .main-nav .resume-link {
    margin: 22px 0 0;
  }
  .side-rail {
    display: none;
  }
  .content-width {
    width: calc(100% - 46px);
  }
  .hero {
    min-height: 740px;
    padding-top: 176px;
  }
  .hero h1 {
    letter-spacing: -3px;
  }
  .hero-subtitle {
    letter-spacing: -2px;
  }
  .hero-copy {
    font-size: 15px;
  }
  .hero-note {
    bottom: 42px;
    font-size: 9px;
  }
  .hero-index {
    bottom: 42px;
    font-size: 10px;
  }
  .section {
    padding-top: 55px;
    padding-bottom: 55px;
  }
  .section-heading {
    gap: 8px;
    margin-bottom: 28px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .section-number {
    font-size: 12px;
  }
  .heading-rule {
    margin-left: 3px;
    width: 100%;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .portrait-wrap {
    width: 235px;
    grid-row: 1;
    margin-bottom: 4px;
  }
  .experience-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .tabs {
    flex-direction: row;
    border-left: 0;
    border-bottom: 1px solid var(--navy-soft);
  }
  .tab {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
    margin: 0 0 -1px;
    padding: 10px 14px;
  }
  .tab.active,
  .tab:hover {
    border-left: 0;
    border-bottom-color: var(--teal);
  }
  .job-panel h3 {
    font-size: 17px;
  }
  .work-section {
    padding-top: 55px;
  }
  .section-intro {
    margin-top: -17px;
  }
  .projects {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .project-info,
  .project-card.reverse .project-info {
    margin: 0;
    padding: 0;
    position: relative;
  }
  .project-card {
    padding: 23px;
  }
  .project-info h3 {
    font-size: 19px;
  }
  .project-kind {
    font-size: 9px;
  }
  .project-tech {
    font-size: 9px;
    gap: 10px;
  }
  .more-work {
    padding-top: 32px;
    padding-bottom: 55px;
  }
  .more-work p {
    font-size: 18px;
  }
  .contact-section {
    padding-top: 30px;
    padding-bottom: 65px;
  }
  .contact-section h2 {
    letter-spacing: -2px;
  }
  .contact-footnote {
    margin-top: 70px;
  }
}

/* Editorial portfolio direction: warm paper, ink, and vermilion. */
:root {
  --navy: #f5f1e8;
  --navy-light: #ebe5d9;
  --navy-soft: #d9d0c1;
  --slate: #5f625e;
  --slate-light: #424642;
  --lightest: #202622;
  --teal: #d84b32;
  --font-sans: "DM Sans", Arial, sans-serif;
  --font-mono: "DM Mono", monospace;
  --content: 1080px;
}
body {
  background-color: var(--navy);
  background-image: radial-gradient(#b8ad9b 0.55px, transparent 0.55px);
  background-size: 8px 8px;
  color: var(--slate);
}
.site-shell {
  overflow: clip;
}
.topbar {
  height: 76px;
  padding-inline: max(28px, calc((100vw - 1280px) / 2));
  background: rgba(245, 241, 232, 0.93);
  border-bottom: 1px solid var(--navy-soft);
  backdrop-filter: blur(14px);
}
.topbar.scrolled {
  box-shadow: 0 5px 20px rgba(42, 35, 23, 0.08);
}
.brand {
  color: var(--lightest);
  gap: 10px;
}
.brand-mark {
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
  font: 600 15px var(--font-sans);
}
.brand-name {
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-name span {
  color: var(--teal);
}
.main-nav {
  gap: clamp(14px, 2.4vw, 34px);
  color: var(--lightest);
  font-size: 11px;
}
.main-nav > a > span {
  color: var(--teal);
}
.side-rail {
  left: 25px;
}
.social-list {
  gap: 15px;
}
.social-icon {
  color: var(--slate);
}
.rail-line {
  background: var(--navy-soft);
}
.hero {
  min-height: 770px;
  padding-top: 190px;
  border-bottom: 1px solid var(--navy-soft);
}
.hero::before {
  content: "PORTFOLIO / 2026";
  position: absolute;
  right: 0;
  top: 160px;
  color: var(--slate);
  font: 10px var(--font-mono);
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}
.eyebrow,
.section-number,
.project-kind,
.hero-note,
.job-dates,
.contact-footnote {
  color: var(--teal);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}
.hero h1 {
  max-width: 790px;
  font-size: clamp(58px, 9.5vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.075em;
  margin: 20px 0 17px;
  font-weight: 600;
}
.hero-subtitle {
  display: inline-block;
  font-size: clamp(22px, 3.5vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.045em;
  color: var(--slate);
  margin-right: 12px;
}
.hero-subtitle + .hero-subtitle::before {
  content: "/";
  margin-right: 12px;
  color: var(--navy-soft);
}
.hero-copy {
  max-width: 465px;
  margin: 27px 0 30px;
  font-size: 15px;
}
.button {
  background: var(--teal);
  border: 1px solid var(--teal);
  color: var(--navy);
  border-radius: 0;
  font: 500 11px var(--font-mono);
  padding: 15px 19px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.button:hover {
  background: var(--lightest);
  border-color: var(--lightest);
  color: var(--navy);
}
.hero-note {
  color: var(--slate);
  bottom: 45px;
  font-size: 10px;
}
.status-dot {
  background: var(--teal);
  box-shadow: none;
}
.hero-index {
  color: var(--lightest);
  bottom: 45px;
}
.section {
  padding-top: 92px;
  padding-bottom: 95px;
}
.section-heading {
  gap: 14px;
  margin-bottom: 44px;
}
.section-heading h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.05em;
}
.section-number {
  font-size: 11px;
}
.heading-rule {
  background: var(--navy-soft);
}
.about-grid {
  grid-template-columns: 1.25fr 0.75fr;
  gap: 85px;
}
.about-copy p {
  max-width: 590px;
}
.about-copy strong {
  color: var(--teal);
}
.tech-stack > h3 {
  font-size: 16px;
  font-weight: 500;
}
.tech-group {
  border: 0;
  border-top: 1px solid var(--navy-soft);
  border-radius: 0;
  background: transparent;
  padding: 15px 0 5px;
}
.tech-group h4 {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.tech-items li {
  border: 1px solid var(--navy-soft);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.27);
  color: var(--lightest);
}
.portrait-wrap {
  width: 300px;
  margin-top: 34px;
}
.portrait {
  border-radius: 0;
  box-shadow: 12px 12px 0 var(--teal);
  background: #d5c9b6;
}
.portrait-art {
  background:
    radial-gradient(circle at 72% 23%, #e26b4b 0 18%, transparent 18.5%),
    linear-gradient(145deg, #ded4c3, #baa88e);
}
.portrait-sun {
  display: none;
}
.portrait-arch {
  border-radius: 150px 150px 0 0;
  border-color: rgba(32, 38, 34, 0.34);
  background: linear-gradient(145deg, transparent, rgba(32, 38, 34, 0.35));
}
.portrait-orbit {
  border-color: rgba(32, 38, 34, 0.36);
}
.orbit-two {
  border-color: rgba(32, 38, 34, 0.2);
}
.portrait-initial {
  color: #28312d;
  font-family: Georgia, serif;
  font-weight: 400;
}
.portrait-caption {
  color: #28312d;
}
.portrait-accent,
.portrait-glow {
  display: none;
}
.experience-layout {
  grid-template-columns: 205px 1fr;
  gap: 44px;
}
.tabs {
  border-color: var(--navy-soft);
}
.tab {
  color: var(--slate);
  border-radius: 0;
}
.tab:hover,
.tab.active {
  color: var(--teal);
  background: rgba(216, 75, 50, 0.06);
  border-color: var(--teal);
}
.job-panel h3 {
  color: var(--lightest);
  font-weight: 500;
}
.job-panel h3 span {
  color: var(--teal);
}
.job-bullets li:before {
  color: var(--teal);
  content: "—";
}
.section-intro {
  margin-top: -28px;
}
.projects {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.project-card,
.project-card:nth-child(2),
.project-card:nth-child(3) {
  aspect-ratio: auto;
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--navy-soft);
  border-radius: 0;
  background: rgba(245, 241, 232, 0.82);
  box-shadow: 5px 5px 0 rgba(32, 38, 34, 0.08);
}
.project-card:hover {
  transform: translate(-3px, -3px);
  border-color: var(--teal);
  box-shadow: 8px 8px 0 rgba(216, 75, 50, 0.19);
}
.project-kind {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.project-open {
  color: var(--teal);
}
.project-info h3 {
  color: var(--lightest);
  font-size: 24px;
  letter-spacing: -0.05em;
  margin: 26px 0 32px;
}
.project-tech {
  color: var(--slate);
}
.project-tech li {
  border: 0;
  border-bottom: 1px solid var(--navy-soft);
  border-radius: 0;
  padding: 4px 0;
}
.more-work {
  padding-bottom: 110px;
}
.more-work p {
  color: var(--lightest);
  font-size: 17px;
}
.text-link {
  color: var(--teal);
}
.contact-section {
  max-width: 740px;
  border-top: 1px solid var(--navy-soft);
}
.contact-section h2 {
  color: var(--lightest);
  letter-spacing: -0.065em;
  font-weight: 500;
}
.contact-section h2 em {
  color: var(--teal);
}
.contact-footnote {
  color: var(--slate);
}
.menu-toggle {
  border-color: var(--teal);
  border-radius: 0;
}
.menu-toggle span {
  background: var(--teal);
}
@media (max-width: 900px) {
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .topbar {
    height: 70px;
    padding-inline: 20px;
  }
  .main-nav {
    background: var(--navy);
    border-left: 1px solid var(--navy-soft);
  }
  .hero {
    min-height: 700px;
    padding-top: 158px;
  }
  .hero::before {
    top: 120px;
    right: 4px;
    font-size: 8px;
  }
  .hero h1 {
    letter-spacing: -0.07em;
  }
  .hero-subtitle {
    display: block;
    margin: 2px 0;
  }
  .hero-subtitle + .hero-subtitle::before {
    margin-right: 9px;
  }
  .section {
    padding-top: 65px;
    padding-bottom: 65px;
  }
  .about-grid {
    gap: 35px;
  }
  .portrait-wrap {
    grid-row: 1;
    width: 220px;
  }
  .experience-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .projects {
    grid-template-columns: 1fr;
  }
  .project-card,
  .project-card:nth-child(2),
  .project-card:nth-child(3) {
    min-height: 215px;
    padding: 23px;
  }
  .project-info h3 {
    margin: 22px 0 27px;
  }
  .contact-section {
    padding-top: 50px;
  }
}
@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;
  }
}

/* Personal name and role headline sizing */
.brand-name {
  font-size: 14px;
  letter-spacing: -0.45px;
}
.hero h1 {
  font-size: clamp(46px, 7vw, 70px);
  letter-spacing: -3.5px;
}
.hero-subtitle {
  font-size: clamp(20px, 4vw, 30px);
  letter-spacing: -1.5px;
}
@media (max-width: 680px) {
  .hero h1 {
    font-size: clamp(37px, 9vw, 56px);
    letter-spacing: -2.5px;
  }
  .hero-subtitle {
    font-size: clamp(25px, 6vw, 34px);
    letter-spacing: -1px;
  }
  .brand-name {
    font-size: 12px;
  }
}

/* Keep the editorial headline scale after legacy responsive rules. */
.hero h1 {
  font-size: clamp(58px, 9.5vw, 112px);
  letter-spacing: -0.075em;
}
.hero-subtitle {
  font-size: clamp(22px, 3.5vw, 34px);
  letter-spacing: -0.045em;
}
@media (max-width: 680px) {
  .hero h1 {
    font-size: clamp(48px, 12vw, 72px);
    letter-spacing: -0.07em;
  }
  .hero-subtitle {
    font-size: 24px;
    letter-spacing: -0.045em;
  }
}

/* Dark editorial palette */
:root {
  --navy: #171a17;
  --navy-light: #202520;
  --navy-soft: #343a34;
  --slate: #a2a69d;
  --slate-light: #c0c3b9;
  --lightest: #f1eee4;
  --teal: #c49a2c;
}
body {
  background-color: var(--navy);
  background-image: radial-gradient(
    rgba(214, 205, 187, 0.12) 0.55px,
    transparent 0.55px
  );
}
.topbar {
  background: rgba(23, 26, 23, 0.93);
}
.brand-mark {
  color: var(--navy);
}
.hero::before {
  color: var(--slate);
}
.button {
  color: #171a17;
}
.button:hover {
  background: var(--lightest);
  border-color: var(--lightest);
  color: var(--navy);
}
.tech-items li {
  background: rgba(255, 255, 255, 0.025);
}
.portrait {
  box-shadow: 12px 12px 0 var(--teal);
}
.project-card,
.project-card:nth-child(2),
.project-card:nth-child(3) {
  background: #202520;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.18);
}
.project-card:hover {
  box-shadow: 8px 8px 0 rgba(237, 104, 75, 0.2);
}
.tab:hover,
.tab.active {
  background: rgba(196, 154, 44, 0.1);
}
.main-nav {
  color: var(--lightest);
}
.portrait-art {
  background:
    radial-gradient(circle at 72% 23%, #c49a2c 0 18%, transparent 18.5%),
    linear-gradient(145deg, #51472d, #28291f);
}
.portrait-arch {
  border-color: rgba(241, 221, 164, 0.34);
}
.portrait-orbit {
  border-color: rgba(196, 154, 44, 0.55);
}
.orbit-two {
  border-color: rgba(241, 221, 164, 0.28);
}
.portrait-initial {
  color: #e6d7ad;
}
.portrait-caption {
  color: rgba(241, 238, 228, 0.76);
}
.portrait {
  box-shadow: 12px 12px 0 #8c6d20;
}
.project-tech {
  gap: 9px;
}
.project-tech li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--navy-soft);
  background: rgba(255, 255, 255, 0.025);
  color: var(--slate-light);
  font: 10px var(--font-mono);
}
.project-tech img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.side-rail {
  left: 30px;
}
.social-list {
  gap: 25px;
}
.social-icon {
  width: 38px;
  height: 38px;
  color: var(--lightest);
  padding: 2px;
}
.social-icon:hover {
  color: var(--teal);
  transform: translateY(-3px) scale(1.08);
}
.mobile-socials {
  display: none;
}
.rail-line {
  margin-top: 25px;
}
@media (max-width: 680px) {
  .main-nav {
    background: #202520;
  }
}

/* Small-screen layout polish */
@media (max-width: 680px) {
  html {
    scroll-padding-top: 66px;
  }
  body {
    font-size: 14px;
    line-height: 1.75;
  }
  .topbar {
    height: 66px;
    padding-inline: 17px;
  }
  .brand {
    gap: 8px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .brand-name {
    font-size: 11px;
    letter-spacing: 0.015em;
  }
  .menu-toggle {
    width: 40px;
    height: 40px;
  }
  .main-nav {
    width: min(82vw, 330px);
    padding: 88px 30px 30px;
    border-left: 1px solid var(--navy-soft);
  }
  .main-nav > a {
    padding: 15px 0;
    font-size: 12px;
  }
  .content-width {
    width: calc(100% - 40px);
  }
  .hero {
    min-height: auto;
    padding-top: 140px;
    padding-bottom: 126px;
  }
  .hero::before {
    top: 105px;
    right: 0;
    font-size: 8px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .hero h1 {
    margin: 17px 0 14px;
    max-width: 100%;
  }
  .hero-subtitle {
    font-size: 21px;
  }
  .hero-copy {
    margin: 22px 0 25px;
    font-size: 14px;
  }
  .button {
    min-height: 48px;
    padding: 13px 16px;
    font-size: 10px;
  }
  .mobile-socials {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 15px;
  }
  .mobile-socials a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--lightest);
    border: 1px solid var(--navy-soft);
    background: #202520;
    transition:
      color 0.2s,
      border-color 0.2s,
      transform 0.2s;
  }
  .mobile-socials a:hover {
    color: var(--teal);
    border-color: var(--teal);
    transform: translateY(-2px);
  }
  .mobile-socials svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
  }
  .hero-note {
    bottom: 25px;
    max-width: 70%;
    font-size: 9px;
  }
  .hero-index {
    bottom: 27px;
    font-size: 10px;
  }
  .section {
    padding-top: 57px;
    padding-bottom: 60px;
  }
  .section-heading {
    gap: 9px;
    margin-bottom: 27px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .heading-rule {
    min-width: 20px;
  }
  .about-grid {
    gap: 29px;
  }
  .portrait-wrap {
    width: min(220px, 72vw);
  }
  .tech-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tech-items li {
    min-height: 76px;
    padding: 8px 3px;
    font-size: 9px;
  }
  .experience-layout {
    gap: 18px;
  }
  .tabs {
    max-width: 100%;
  }
  .tab {
    padding-inline: 12px;
    font-size: 10px;
  }
  .job-panel h3 {
    line-height: 1.5;
  }
  .job-bullets li {
    padding-left: 19px;
    margin-bottom: 12px;
  }
  .section-intro {
    margin: -13px 0 24px;
    font-size: 13px;
  }
  .projects {
    gap: 12px;
  }
  .project-card,
  .project-card:nth-child(2),
  .project-card:nth-child(3) {
    min-height: 205px;
    padding: 20px;
  }
  .project-info h3 {
    font-size: 21px;
    line-height: 1.25;
    margin: 22px 0 24px;
  }
  .project-tech {
    gap: 7px;
  }
  .project-tech li {
    gap: 6px;
    padding: 5px 7px;
    font-size: 9px;
  }
  .project-tech img {
    width: 19px;
    height: 19px;
  }
  .more-work {
    padding: 20px 0 62px;
  }
  .contact-section h2 {
    font-size: clamp(42px, 12vw, 58px);
  }
  .contact-footnote {
    margin-top: 56px;
  }
}
@media (max-width: 370px) {
  .content-width {
    width: calc(100% - 32px);
  }
  .hero h1 {
    font-size: 45px;
  }
  .hero-subtitle {
    font-size: 19px;
  }
  .project-tech {
    gap: 5px;
  }
  .project-tech li {
    gap: 5px;
    padding-inline: 5px;
    font-size: 8px;
  }
  .project-tech img {
    width: 17px;
    height: 17px;
  }
}

/* Prevent the About content and skill cards from squeezing on narrow screens. */
@media (max-width: 680px) {
  .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 28px;
  }
  .about-copy,
  .tech-stack,
  .tech-groups,
  .tech-group {
    width: 100%;
    min-width: 0;
  }
  .about-copy p {
    max-width: none;
    overflow-wrap: anywhere;
  }
  .tech-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .tech-group {
    border: 1px solid var(--navy-soft);
    background: #202520;
    padding: 16px;
  }
  .tech-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .tech-items li {
    min-width: 0;
    min-height: 72px;
    overflow-wrap: anywhere;
  }
}
