/*
YOUR PORTFOLIO STYLES
EDIT: Change the design tokens below to quickly customize the colors and spacing.
*/
:root {
  color-scheme: dark;
  --bg: #080d18;
  --surface: #0e1625;
  --surface-2: #111c2d;
  --line: #1e2b3e;
  --text: #edf3fb;
  --muted: #a2aec0;
  --dim: #68778c;
  --cyan: #62e6d2;
  --blue: #73a9ff;
  --purple: #b7a2ff;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1160px;
}

/* Establish consistent sizing and a small set of accessible global defaults. */
* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

/* Shared page width, keyboard helpers, and screen-reader-only content. */
.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  padding: 10px 14px;
  background: var(--cyan);
  color: #061018;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.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;
}

/* Sticky brand and navigation shared by all three pages. */
.site-header {
  height: 78px;
  border-bottom: 1px solid rgba(156, 178, 203, .1);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 13, 24, .88);
  backdrop-filter: blur(18px);
}

.nav-wrap,
.primary-nav,
.brand {
  display: flex;
  align-items: center;
}

.nav-wrap {
  height: 100%;
  justify-content: space-between;
}

.brand {
  gap: 11px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.brand-mark img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 34px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.brand-name {
  font-size: 15px;
}

.brand-dot {
  color: var(--cyan);
}

.primary-nav {
  gap: 34px;
  color: #b5c0d0;
  font-size: 13px;
}

.primary-nav a {
  transition: color .2s;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--text);
}

.primary-nav .nav-contact {
  color: var(--cyan);
  padding: 9px 13px;
  border: 1px solid rgba(98, 230, 210, .25);
  border-radius: 7px;
}

.nav-contact span {
  padding-left: 5px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
}

/* Home page introduction, actions, and portrait/code-card composition. */
.hero {
  min-height: 0;
  padding: 34px 0 32px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 28px;
}

.eyebrow {
  font: 500 10px var(--mono);
  letter-spacing: .15em;
  color: var(--cyan);
  margin: 0 0 22px;
}

.status-pulse,
.online i,
.signal {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 11px rgba(98, 230, 210, .75);
  vertical-align: middle;
}

.status-pulse {
  margin-right: 8px;
}

.hero h1 {
  font-size: clamp(42px, 5.5vw, 62px);
  line-height: 1.06;
  letter-spacing: -.062em;
  margin: 0 0 23px;
  font-weight: 650;
}

.gradient-text {
  background: linear-gradient(105deg, var(--cyan), var(--blue) 58%, var(--purple));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.muted-heading {
  color: #8493a8;
}

.hero-intro {
  max-width: 515px;
  font-size: 16px;
  color: #aab6c7;
  margin: 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 17px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
  transition: transform .2s, background .2s;
}

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

.button-primary {
  background: var(--cyan);
  color: #07131a;
}

.button-primary:hover {
  background: #8bf2e3;
}

.button-quiet {
  color: #d7e1ef;
  border: 1px solid #28384e;
}

.hero-visual {
  height: 455px;
  position: relative;
  isolation: isolate;
}

.hero-visual:before {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  background: rgba(33, 108, 143, .22);
  filter: blur(90px);
  border-radius: 50%;
  z-index: -1;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(97, 192, 201, .15);
  border-radius: 50%;
  transform: rotate(-22deg);
}

.orbit-one {
  width: 390px;
  height: 200px;
}

.orbit-two {
  width: 335px;
  height: 280px;
  transform: rotate(45deg);
  border-color: rgba(151, 130, 229, .16);
}

.core-card {
  width: min(390px, 88%);
  min-height: 244px;
  padding: 0 21px;
  border: 1px solid #293c52;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(19, 32, 49, .97), rgba(9, 16, 29, .96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .38), 0 0 60px rgba(72, 177, 185, .06);
  transform: rotate(-2deg);
}

.core-top {
  height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #243349;
  gap: 10px;
}

.window-dots {
  display: flex;
  gap: 4px;
}

.window-dots i {
  width: 6px;
  height: 6px;
  background: #36485c;
  border-radius: 50%;
}

.window-dots i:first-child {
  background: #ed7b80;
}

.window-dots i:nth-child(2) {
  background: #ebc16e;
}

.window-dots i:nth-child(3) {
  background: #65c99e;
}

.mono-label {
  font: 10px var(--mono);
  color: #94a3b7;
}

.online {
  font: 8px var(--mono);
  color: #8ddcc9;
  margin-left: auto;
}

.online i {
  width: 5px;
  height: 5px;
  margin-right: 4px;
}

.code-lines {
  padding: 20px 0 14px;
  color: #c4d2e3;
  font: 12px/1.85 var(--mono);
}

.code-lines p {
  margin: 0;
}

.line-no {
  display: inline-block;
  width: 29px;
  color: #52627a;
}

.code-key {
  color: #bf9cff;
}

.code-var {
  color: #78c9ee;
}

.code-string {
  color: #91dbbd;
}

.cursor {
  color: var(--cyan);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.core-footer {
  height: 37px;
  border-top: 1px solid #243349;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7e8da2;
  font: 8px var(--mono);
  letter-spacing: .08em;
}

.signal {
  width: 5px;
  height: 5px;
  margin-right: 5px;
}

.float-tag {
  position: absolute;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid #2b3b50;
  background: #101b2a;
  border-radius: 7px;
  box-shadow: 0 9px 26px #050a12;
  color: #c8d5e4;
  font: 9px var(--mono);
  letter-spacing: .08em;
}

.float-tag span {
  font-size: 14px;
  color: var(--cyan);
}

.tag-data {
  top: 68px;
  right: 13px;
}

.tag-people {
  bottom: 67px;
  left: 8px;
}

.tag-systems {
  bottom: 37px;
  right: 30px;
}

/* Shared section headings and text links. */
.section {
  padding-top: 100px;
  padding-bottom: 100px;
}

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

.section-heading .eyebrow {
  margin-bottom: 14px;
}

.section-heading h2,
.contact-inner h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -.05em;
}

.text-link {
  font-size: 20px;
  color: #c6d4e4;
  padding-bottom: 7px;
}

.text-link span {
  color: var(--cyan);
  margin-left: 8px;
}

.projects-section {
  background: linear-gradient(180deg, #0b111d, #090f1a);
  border-block: 1px solid rgba(130, 158, 185, .09);
  padding: 96px 0;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.13fr .87fr;
  gap: 18px;
}

/* Home page featured project cards. */
.project-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #0d1523;
}

.project-art {
  height: 228px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.project-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.project-info {
  padding: 20px;
}

.project-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.project-type {
  font: 9px var(--mono);
  letter-spacing: .1em;
  color: var(--cyan);
  margin: 0 0 5px;
}

.project-info h3 {
  font-size: 17px;
  margin: 0;
  letter-spacing: -.02em;
}

.project-info>p {
  font-size: 11px;
  color: #94a3b5;
  line-height: 1.7;
  margin: 12px 0 15px;
  max-width: 570px;
}

.circle-link {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid #314258;
  border-radius: 50%;
  color: var(--cyan);
  font-size: 13px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  padding: 5px 8px;
  border: 1px solid #27374a;
  border-radius: 4px;
  color: #a6b5c7;
  font: 9px var(--mono);
  background: rgba(23, 37, 54, .55);
}

.skills-section {
  padding-top: 100px;
  padding-bottom: 105px;
}

.skills-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
}

.skills-note {
  color: #aab6c6;
  max-width: 300px;
  font-size: 14px;
  margin: 5px 0;
}

.skills-note span {
  display: block;
  color: #708097;
  font-size: 11px;
  margin-top: 14px;
}

.skills-groups {
  display: grid;
  gap: 21px;
}

.skill-group {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.skill-group h3 {
  font: 10px var(--mono);
  letter-spacing: .1em;
  color: #b5c2d1;
  margin: 0 0 12px;
}

.skill-group h3 span {
  color: var(--cyan);
  margin-right: 8px;
  font-size: 14px;
}

/* Contact call-to-action and the shared site footer. */
.contact-band {
  padding: 76px 0;
  background: radial-gradient(ellipse at 16% 50%, rgba(43, 115, 128, .16), transparent 45%), #0d1624;
  border-block: 1px solid #1c2b3b;
}

.contact-inner {
  display: flex;
  justify-content: space-between;
  gap: 38px;
  align-items: center;
}

.contact-inner .eyebrow {
  margin-bottom: 16px;
}

.contact-cta {
  width: 330px;
}

.contact-cta>p {
  font-size: 12px;
  color: #a4b1c1;
  margin: 0 0 16px;
}

.contact-cta .button {
  font-family: var(--mono);
  font-size: 11px;
}

.social-links {
  display: flex;
  gap: 18px;
  margin-top: 19px;
  color: #8797ab;
  font: 15px var(--mono);
}

.social-links a:hover {
  color: var(--cyan);
}

.site-footer {
  padding: 20px 0;
  border-top: 1px solid rgba(140, 168, 194, .1);
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-inner .brand-mark {
  width: 27px;
  height: 27px;
  font-size: 9px;
}

.footer-inner .brand-name {
  font-size: 12px;
}

.footer-inner p {
  margin: 0;
  color: #718095;
  font: 9px var(--mono);
}

.footer-inner p span {
  color: var(--cyan);
}

/* Interior pages */
.page-hero {
  padding: 78px 0 52px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 78% 0%, rgba(40, 119, 135, .13), transparent 40%);
}

.page-hero h1 {
  font-size: clamp(42px, 5.5vw, 62px);
  letter-spacing: -.06em;
  line-height: 1.05;
  margin: 0 0 18px;
}

.page-hero p:not(.eyebrow) {
  max-width: 640px;
  color: #aab6c6;
  font-size: 15px;
}

/* Shared content cards and detailed project listings. */
.page-content {
  padding: 56px 0 100px;
}

.content-card {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.content-card p {
  font-size: 13px;
  color: #a4b1c2;
  line-height: 1.8;
}

.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.project-filters,
.project-card-tags,
.project-card-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.project-filter {
  padding: 8px 13px;
  border: 1px solid #26384c;
  border-radius: 999px;
  background: transparent;
  color: #9eacc0;
  font-size: 12px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.project-filter:hover,
.project-filter.is-active {
  border-color: rgba(98, 230, 210, .45);
  background: rgba(98, 230, 210, .1);
  color: var(--cyan);
}

.project-search-wrap {
  position: relative;
  display: block;
  width: min(100%, 260px);
}

.project-search {
  width: 100%;
  padding: 10px 38px 10px 13px;
  border: 1px solid #26384c;
  border-radius: 7px;
  background: #0d1523;
  color: var(--text);
  font: 12px var(--sans);
}

.project-search::placeholder {
  color: #738198;
}

.project-search:focus-visible,
.project-filter:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.project-search-icon {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--cyan);
  font-size: 19px;
  pointer-events: none;
  transform: translateY(-54%);
}

.project-results {
  margin: 0 0 16px;
  color: #8290a3;
  font: 10px var(--mono);
  letter-spacing: .04em;
}

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

.portfolio-project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, #101a2a, #0c1421);
  transition: border-color .2s ease, transform .2s ease;
}

.portfolio-project-card:hover {
  border-color: rgba(98, 230, 210, .34);
  transform: translateY(-3px);
}

.portfolio-project-card[hidden] {
  display: none;
}

.project-card-image {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: #101b29;
}

.coursewise-image {
  background: #01664a;
}

.project-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 14px;
}

.project-card-index,
.placeholder-caption {
  position: absolute;
  bottom: 12px;
  left: 13px;
  padding: 5px 7px;
  border: 1px solid rgba(98, 230, 210, .25);
  border-radius: 4px;
  background: rgba(8, 13, 24, .78);
  color: #a9bdcf;
  font: 8px var(--mono);
  letter-spacing: .1em;
}

.portfolio-project-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 19px;
}

.project-card-category {
  margin: 0 0 6px;
  color: var(--cyan);
  font: 9px var(--mono);
  letter-spacing: .1em;
}

.portfolio-project-info h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.025em;
}

.project-card-summary {
  margin: 10px 0 15px;
  color: #a3b0c2;
  font-size: 12px;
  line-height: 1.75;
}

.project-card-tags {
  gap: 6px;
  margin-top: auto;
}

.project-card-tags span {
  padding: 4px 7px;
  border: 1px solid #26384c;
  border-radius: 4px;
  background: rgba(23, 37, 54, .55);
  color: #a6b5c7;
  font: 9px var(--mono);
}

.project-card-links {
  width: 100%;
  gap: 8px 16px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.project-card-links a {
  color: #c6d4e4;
  font-size: 11px;
}

.project-card-links span span {
  color: var(--cyan);
  margin-left: 3px;
}

.project-card-placeholder {
  border-style: dashed;
  background: rgba(14, 22, 37, .56);
}

.placeholder-image {
  color: #8494aa;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(98, 230, 210, .13), transparent 55%),
    linear-gradient(145deg, #111d2d, #0b1421 72%);
}

.placeholder-mark {
  color: rgba(115, 169, 255, .42);
  font: 500 clamp(52px, 8vw, 90px) var(--mono);
  letter-spacing: -.08em;
}

.project-empty-state {
  margin: 36px 0;
  color: #aab6c6;
  text-align: center;
}

@media (max-width:900px) {
  /* Reflow larger layouts for tablet-sized screens. */
  .hero {
    padding-top: 30px;
    padding-bottom: 28px;
    grid-template-columns: 1fr 0.82fr;
    gap: 0;
  }

  .hero h1 {
    font-size: clamp(43px, 6vw, 60px);
  }

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

  .skills-layout {
    gap: 35px;
  }

}

@media (max-width:680px) {
  /* Stack navigation and page content on narrow screens. */
  .container {
    width: min(var(--max), calc(100% - 36px));
  }

  .site-header {
    height: 68px;
  }

  .menu-toggle {
    display: grid;
    gap: 5px;
    padding: 10px;
  }

  .menu-toggle span:not(.sr-only) {
    width: 21px;
    height: 1px;
    background: #d8e4f0;
    display: block;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 67px;
    left: 0;
    right: 0;
    padding: 18px 22px 22px;
    background: #0b1220;
    border-bottom: 1px solid var(--line);
    align-items: stretch;
    gap: 0;
    flex-direction: column;
  }

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

  .primary-nav a {
    padding: 12px 4px;
  }

  .primary-nav .nav-contact {
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 25px;
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(43px, 11vw, 62px);
  }

  .hero-intro {
    font-size: 14px;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    margin-bottom: 25px;
  }

  .section-heading h2,
  .contact-inner h2 {
    font-size: 34px;
  }

  .text-link {
    padding-bottom: 0;
  }

  .projects-section {
    padding: 72px 0;
  }

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

  .project-art {
    height: 205px;
  }

  .skills-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .skills-note {
    max-width: none;
    font-size: 13px;
  }

  .contact-band {
    padding: 58px 0;
  }

  .contact-inner {
    align-items: start;
    flex-direction: column;
  }

  .contact-cta {
    width: 100%;
  }

  .social-links {
    gap: 15px;
    flex-wrap: wrap;
  }

  .footer-inner {
    gap: 10px;
    flex-wrap: wrap;
  }

  .footer-inner p:first-of-type {
    display: none;
  }

  .page-hero {
    padding: 59px 0 38px;
  }

  .page-content {
    padding: 35px 0 72px;
  }

  .project-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .project-search-wrap {
    width: min(100%, 360px);
  }

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

@media (max-width: 680px) {
  .portfolio-project-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Respect operating-system requests to reduce animation. */
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.hero-visual .orbit {
  z-index: 0;
}

/* Home page hero composition with the portrait, code panel, and skill tags. */
.hero-visual .intro-photo {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: min(76%, 370px);
  height: 360px;
  margin: 0;
  border: 1px solid #274052;
  border-radius: 10px;
  overflow: hidden;
  background: #101b29;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.hero-visual .intro-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 23%;
}

.hero-visual .core-card {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 40px;
  width: min(290px, 68%);
  min-height: 0;
  padding: 0 16px;
  transform: rotate(-1deg);
}

.hero-visual .core-top {
  height: 36px;
}

.hero-visual .code-lines {
  padding: 10px 0 8px;
  font-size: 9px;
  line-height: 1.6;
}

.hero-visual .line-no {
  width: 25px;
}

.hero-visual .core-footer {
  height: 28px;
  font-size: 6px;
}

.hero-visual .orbit-one {
  width: 95%;
  height: 64%;
  top: 10%;
  left: 3%;
}

.hero-visual .orbit-two {
  width: 84%;
  height: 70%;
  top: 12%;
  left: 9%;
}

.hero-visual .float-tag {
  z-index: 4;
  display: flex;
  padding: 7px 9px;
  font-size: 8px;
  background: rgba(16, 27, 42, .96);
}

.hero-visual .tag-data {
  top: 22px;
  right: 0;
}

.hero-visual .tag-people {
  bottom: 2%;
  left: 2%;
}

.hero-visual .tag-systems {
  top: 44%;
  right: 0;
  bottom: auto;
}

@media (max-width: 900px) {
  .hero-visual {
    height: 405px;
    margin: 0;
  }

  .hero-visual .intro-photo {
    width: min(76%, 320px);
    height: 320px;
  }

  .hero-visual .core-card {
    bottom: 34px;
    width: min(270px, 74%);
  }
}

@media (max-width: 680px) {
  .hero-visual {
    height: 420px;
    margin: 8px 0 0;
  }

  .hero-visual .intro-photo {
    left: 50%;
    width: min(74%, 290px);
    height: 300px;
    transform: translateX(-50%);
  }

  .hero-visual .core-card {
    right: 0;
    bottom: 45px;
    width: min(250px, 78%);
  }

  .hero-visual .tag-data {
    top: 8px;
    right: 0;
  }

  .hero-visual .tag-systems {
    top: 37%;
    right: 0;
  }

  .hero-visual .tag-people {
    bottom: 2%;
    left: 0;
  }

  .hero-visual .orbit-one,
  .hero-visual .orbit-two {
    width: 100%;
    height: 65%;
    left: 0;
    top: 8%;
  }
}

@media (max-width: 380px) {
  .hero-visual {
    height: 395px;
  }

  .hero-visual .intro-photo {
    width: min(74%, 260px);
    height: 275px;
  }

  .hero-visual .core-card {
    bottom: 40px;
  }
}

/* FINAL HERO LAYOUT: uniquely named selectors make this layout easy to find
   and maintain. This tighter override keeps the portrait first and makes
   the code card and all three surrounding skill tags clearly visible. */
.hero-visual-feature {
  height: 390px;
}

.hero-visual-feature .intro-photo {
  width: min(70%, 340px);
  height: 320px;
}

.hero-visual-feature .core-card {
  z-index: 5;
  right: 0;
  bottom: 36px;
  width: min(245px, 62%);
  min-height: 0;
  padding: 0 13px;
  transform: rotate(-1deg);
}

.hero-visual-feature .core-top {
  height: 34px;
}

.hero-visual-feature .code-lines {
  padding: 8px 0 7px;
  font-size: 9px;
  line-height: 1.55;
}

.hero-visual-feature .core-footer {
  height: 26px;
  font-size: 7px;
}

.hero-visual-feature .float-tag {
  z-index: 7;
  padding: 7px 10px;
  border-color: rgba(98, 230, 210, .38);
  background: #101b2a;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .42), 0 0 16px rgba(98, 230, 210, .08);
  font-size: 8px;
}

.hero-visual-feature .tag-data {
  top: 6%;
  right: 2%;
}

.hero-visual-feature .tag-people {
  bottom: 2%;
  left: -8px;
}

.hero-visual-feature .tag-systems {
  top: 45%;
  right: -8px;
  bottom: auto;
}

@media (max-width: 900px) {
  .hero-visual-feature {
    height: 355px;
  }

  .hero-visual-feature .intro-photo {
    width: min(70%, 300px);
    height: 290px;
  }

  .hero-visual-feature .core-card {
    width: min(230px, 64%);
    bottom: 30px;
  }

  .hero-visual-feature .tag-systems {
    right: 0;
  }
}

@media (max-width: 680px) {
  .hero-visual-feature {
    height: 390px;
    margin-top: 8px;
  }

  .hero-visual-feature .intro-photo {
    left: 50%;
    width: min(74%, 280px);
    height: 285px;
    transform: translateX(-50%);
  }

  .hero-visual-feature .core-card {
    right: 0;
    bottom: 38px;
    width: min(230px, 70%);
  }

  .hero-visual-feature .tag-data {
    top: 3%;
    right: 0;
  }

  .hero-visual-feature .tag-people {
    bottom: 1%;
    left: 0;
  }

  .hero-visual-feature .tag-systems {
    top: 42%;
    right: 0;
  }
}

@media (max-width: 380px) {
  .hero-visual-feature {
    height: 365px;
  }

  .hero-visual-feature .intro-photo {
    width: min(74%, 260px);
    height: 265px;
  }

  .hero-visual-feature .core-card {
    bottom: 34px;
  }
}

.coursewise-art {
  background: #01664a;
}

.coursewise-art > img {
  padding: 16px;
}

.scriptle-art {
  background: #1e1e1e;
}

/* About page: personal introduction and centered photo carousel. */
.about-page-hero {
  padding: 62px 0 56px;
  background: var(--bg);
}

.about-resume-section {
  padding-block: 12px 30px;
}

.about-resume-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 4vw, 34px);
  border: 1px solid rgba(98, 230, 210, .2);
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 0 50%, rgba(40, 119, 135, .13), transparent 45%),
    var(--surface);
}

.about-resume-copy .eyebrow {
  margin: 0 0 4px;
  color: var(--cyan);
}

.about-resume-copy > p:last-child {
  margin: 0;
  color: #aab6c6;
  font-size: 13px;
}

.about-resume-button {
  flex: 0 0 auto;
}

.about-hero-layout {
  display: grid;
  grid-template-columns: minmax(260px, .68fr) minmax(0, 1.32fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.about-hero-copy h1 {
  margin: 24px 0 20px;
  font-size: clamp(42px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -.065em;
}

.about-hero-copy .eyebrow {
  margin-bottom: 0;
}

.about-accent-line {
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 22px;
  background: var(--cyan);
}

.about-lede {
  max-width: 34ch;
  color: #aab6c6;
  font-size: 15px;
  line-height: 1.8;
}

/* Neighboring slides stay visible as previews while the active slide is centered. */
.about-photo-carousel {
  width: 100%;
  min-width: 0;
}

.about-photo-track {
  position: relative;
  overflow: hidden;
  border-left: 1px solid rgba(98, 230, 210, .34);
  border-right: 1px solid rgba(98, 230, 210, .34);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
  touch-action: pan-y;
  cursor: grab;
}

.about-photo-track:active {
  cursor: grabbing;
}

.about-photo-rail {
  display: flex;
  width: 100%;
  gap: 14px;
  will-change: transform;
  transition: transform .48s cubic-bezier(.22, .68, 0, 1);
}

.about-photo-slide {
  position: relative;
  flex: 0 0 82%;
  height: 390px;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(111, 211, 211, .38);
  border-radius: 10px;
  background: #101b29;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.about-photo-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.about-photo-slide figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 42px 18px 14px;
  background: linear-gradient(transparent, rgba(5, 10, 18, .82));
  color: #f0f4fa;
  font-size: 12px;
}

/* Arrow controls sit over the photo edges, matching the selected mockup. */
.photo-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(98, 230, 210, .7);
  border-radius: 50%;
  background: rgba(8, 18, 29, .88);
  color: var(--text);
  font: inherit;
  font-size: 22px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.photo-arrow:hover {
  background: var(--cyan);
  color: #07131a;
  transform: translateY(-50%) scale(1.04);
}

.photo-arrow-prev {
  left: 7%;
}

.photo-arrow-next {
  right: 7%;
}

/* Centered direct slide selectors let visitors choose any photo at a glance. */
.about-photo-meta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 2px 0;
}

.photo-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.photo-pagination button {
  width: 38px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.photo-pagination button::before {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: #34465a;
  content: "";
  transition: background .2s ease, box-shadow .2s ease;
}

.photo-pagination button[aria-current="true"]::before,
.photo-pagination button:hover::before {
  background: var(--cyan);
}

.photo-pagination button[aria-current="true"]::before {
  box-shadow: 0 0 12px rgba(98, 230, 210, .35);
}

/* Story section pairs the personal narrative with the portfolio's display style. */
.about-story-section {
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

.about-section-heading h2,
.about-personal-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.05em;
}

.about-section-heading .eyebrow,
.about-personal-heading .eyebrow {
  margin-bottom: 16px;
}

.about-story-copy p,
.about-personal-copy p {
  margin: 0 0 18px;
  color: #aab6c6;
  font-size: 14px;
  line-height: 1.9;
}

.about-story-copy .about-direction {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(98, 230, 210, .18);
  border-radius: 8px;
  background: rgba(17, 28, 45, .68);
  color: #d7e3ee;
}

.about-direction .signal {
  flex: 0 0 6px;
  margin-top: 8px;
}

/* Three work and project cards form a single row on wide screens. */
.about-experience-section {
  padding-top: 72px;
}

.about-experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.about-experience-card {
  min-width: 0;
  min-height: 265px;
  padding: 25px;
  background: linear-gradient(145deg, rgba(17, 28, 45, .96), rgba(12, 20, 33, .96));
}

.about-experience-card .eyebrow {
  margin-bottom: 24px;
}

.about-experience-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -.025em;
}

.about-experience-card p {
  font-size: 12px;
  line-height: 1.8;
}

.about-experience-card .experience-card-subtitle {
  margin: 0 0 12px;
  color: #d0d9e5;
}

.about-experience-card .experience-card-note {
  margin-top: 18px;
  color: var(--dim);
  font-size: 10px;
  font-style: italic;
}

.experience-placeholder-card {
  border-style: dashed;
  background: rgba(14, 22, 37, .56);
}

.photo-arrow:focus-visible,
.photo-pagination button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* Personal interests get a distinct close to the page, separate from career details. */
.about-personal-section {
  padding-top: 28px;
}

.about-personal-card {
  display: grid;
  grid-template-columns: minmax(230px, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: center;
  padding: clamp(25px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 10% 100%, rgba(40, 119, 135, .13), transparent 45%),
    var(--surface);
}

.about-interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.about-interest-list span {
  padding: 6px 10px;
  border: 1px solid #26384c;
  border-radius: 5px;
  background: rgba(8, 13, 24, .55);
  color: #c2cedd;
}

@media (max-width: 900px) {
  .about-hero-layout {
    grid-template-columns: minmax(230px, .75fr) minmax(0, 1.25fr);
    gap: 28px;
  }

  .about-hero-copy h1 {
    font-size: clamp(36px, 5vw, 48px);
  }

  .about-photo-slide {
    height: 330px;
  }

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

  .experience-placeholder-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .about-page-hero {
    padding: 40px 0 36px;
  }

  .about-resume-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .about-resume-button {
    justify-content: center;
    width: 100%;
  }

  .about-hero-layout,
  .about-story-section,
  .about-personal-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-hero-copy h1 {
    margin-top: 18px;
    font-size: clamp(39px, 11vw, 55px);
  }

  .about-lede {
    max-width: 42ch;
  }

  .about-photo-carousel {
    margin: 0 -8px;
  }

  .about-photo-slide {
    flex-basis: 84%;
    height: 290px;
  }

  .photo-arrow {
    width: 40px;
    height: 40px;
  }

  .photo-arrow-prev {
    left: 5%;
  }

  .photo-arrow-next {
    right: 5%;
  }

  .about-photo-meta {
    gap: 9px;
  }

  .photo-pagination {
    gap: 4px;
  }

  .photo-pagination button {
    width: 27px;
  }

  .about-story-section {
    padding-top: 55px;
    padding-bottom: 55px;
  }

  .about-experience-grid {
    grid-template-columns: 1fr;
  }

  .experience-placeholder-card {
    grid-column: auto;
  }

  .about-experience-card {
    min-height: 0;
  }

  .about-personal-section {
    padding-top: 10px;
  }
}

