/* Main portfolio: shared color language with the CabinWise case study. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body.portfolio {
  height: auto;
  background: #faf9f6;
  color: #283b4d;
  font-size: 18px;
  font-weight: 450;
  line-height: 1.7;
}
.portfolio * {
  box-sizing: border-box;
}
.portfolio a {
  color: #416c98;
  text-underline-offset: 5px;
}
.portfolio a:hover {
  color: #283b4d;
}
.portfolio :focus-visible {
  outline: 2px solid #416c98;
  outline-offset: 5px;
}
.portfolio h1,
.portfolio h2,
.portfolio h3 {
  letter-spacing: -0.045em;
  line-height: 1.12;
  font-weight: 600;
}
.portfolio h2 {
  font-size: clamp(35px, 4vw, 54px);
  color: #283b4d;
  margin: 0;
}
.portfolio h3 {
  font-size: 25px;
  color: #283b4d;
}
.portfolio p {
  margin-bottom: 1.2rem;
}
.portfolio main,
.site-footer {
  max-width: 1200px;
  margin: auto;
  padding: 0 32px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #faf9f6f2;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #d8e0e7;
}
.site-nav {
  max-width: 1200px;
  margin: auto;
  padding: 19px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.site-brand {
  font-size: 26px;
  font-weight: 700;
  color: #283b4d !important;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.brand-dot {
  color: #416c98;
}
.brand-name {
  font-size: 15px;
  font-weight: 500;
  margin-left: 20px;
  color: #405367;
}
.site-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-links a {
  color: #405367;
  text-decoration: none;
  font-size: 15px;
}
#menu-toggle {
  display: none;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2001;
  padding: 12px;
  background: #edf3f9;
}
.skip-link:focus {
  top: 10px;
}
.eyebrow {
  font:
    500 14px/1.6 ui-monospace,
    monospace;
  letter-spacing: 0.15em;
  color: #405367;
  text-transform: uppercase;
  margin-bottom: 24px !important;
}
.intro {
  padding: 76px 0 30px;
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 48px 70px;
  align-items: center;
}
.intro h1 {
  font-size: clamp(68px, 8.5vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  margin: 26px 0;
}
.intro h1 span {
  color: #416c98;
}
.intro-description {
  font-size: 20px;
  color: #405367;
  max-width: 450px;
  line-height: 1.65;
}
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 32px;
}
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 13px 20px;
  border-radius: 5px;
  background: #416c98;
  color: #111b2a !important;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}
.primary-action:hover {
  background: #416c98;
}
.text-action {
  font-size: 17px;
  text-decoration: none;
}
.portrait-frame {
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid #d8e0e7;
  background: #ffffff;
}
.portrait-frame img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: 50% 65%;
  filter: saturate(0.55);
}
.portrait-frame:after {
  content: '';
  position: absolute;
  inset: 60% 0 0;
  background: linear-gradient(transparent, #080d15ed);
  pointer-events: none;
}
.portrait-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 1;
  font-size: 13px;
  color: #f0f4f9;
}
.latest-work {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #d8e0e7;
  text-decoration: none;
}
.latest-work small {
  display: block;
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 0.1em;
  color: #405367;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.latest-work strong {
  font-size: 19px;
  font-weight: 500;
  color: #283b4d;
}
.intro-foot {
  grid-column: 1/-1;
  border-top: 1px solid #d8e0e7;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #405367;
}
.site-section {
  padding: 78px 0;
  border-bottom: 1px solid #d8e0e7;
  scroll-margin-top: 20px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 38px;
}
.section-heading > p {
  color: #405367;
  font-size: 17px;
  margin: 0;
}
.portfolio .cw-feature {
  margin: 0 0 28px;
  padding: 38px;
  border-color: #d8e0e7;
  gap: 38px;
}
.portfolio .cw-feature h2 {
  font-size: 50px;
}
.portfolio .cw-feature .cw-feature-lead {
  font-size: 22px;
}
.portfolio .cw-model-stage {
  height: 290px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.project-card {
  background: #ffffff;
  border: 1px solid #d8e0e7;
  border-radius: 9px;
  padding: 28px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.project-index {
  color: #405367;
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 0.12em;
}
.project-card .section-title {
  text-align: left;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 22px;
  color: #283b4d;
}
.project-card .pic,
.project-card .snakegame {
  width: 100%;
  max-height: 245px;
  object-fit: contain;
  background: #070b12;
  border: 1px solid #d8e0e7;
  border-radius: 6px;
  margin: 0 0 24px;
}
.project-card .proj-p {
  padding: 0;
  font-size: 17px;
  color: #405367;
  margin: 20px 0;
}
.project-card .link,
.project-card .snakelink {
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  margin: 14px 0 0;
  display: inline-block;
}
.project-card .link + .link {
  margin-left: 16px;
}
.project-card .link p {
  margin: 0;
}
.project-card:last-child {
  grid-column: 1/-1;
}
.project-card:last-child .proj-p {
  max-width: 780px;
}
.experience-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr;
  gap: 60px;
}
.resume-summary {
  color: #405367;
  font-size: 17px;
}
.resume-summary em {
  font-style: normal;
}
.resume-summary h3 {
  font-size: 19px;
  margin-bottom: 20px;
}
.resume-summary p:empty {
  display: none;
}
.portfolio .skills {
  padding: 28px 0 0;
  background: none;
  border: 0;
}
.portfolio .skills h3 {
  text-align: left;
  font-size: 18px;
  margin-bottom: 20px;
}
.portfolio .skills ul {
  gap: 7px;
}
.portfolio .skills li {
  border-radius: 4px;
  background: #eef3f7;
  font-size: 13px;
  padding: 4px 9px;
}
.experience-card {
  border-left: 1px solid #d8e0e7;
  padding: 0 0 40px 30px;
  position: relative;
}
.experience-card:before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #416c98;
  position: absolute;
  left: -5px;
  top: 8px;
}
.experience-card h3 {
  text-align: left;
  color: #283b4d;
  font-size: 24px;
  margin-bottom: 12px;
}
.experience-date {
  font:
    14px/1.6 ui-monospace,
    monospace;
  color: #405367;
}
.experience-card p,
.experience-card ul {
  font-size: 17px;
  color: #405367;
}
.experience-card em {
  font-style: normal;
  color: #283b4d;
}
.experience-card li {
  margin-bottom: 10px;
  padding-left: 4px;
}
.experience-card ul {
  padding-left: 18px;
}
.experience-card a {
  font-size: 15px;
}
.experience-card:last-child {
  padding-bottom: 4px;
}
.education-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  border-top: 1px solid #d8e0e7;
  margin-top: 40px;
  padding-top: 36px;
}
.portfolio .education {
  padding: 0;
  background: none;
  border: 0;
}
.education h3,
.Activities-Honors h3 {
  text-align: left;
  font-size: 21px;
}
.education p,
.Activities-Honors p {
  color: #405367;
  font-size: 15px;
}
.portfolio .Activities-Honors {
  text-align: left;
}
.hobby-button {
  background: transparent;
  border: 1px solid #d8e0e7;
  color: #416c98;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 14px;
}
.about-content .container4 {
  padding: 0;
}
.about-content .container4 > p {
  max-width: 870px;
  font-size: 17px;
  line-height: 1.9;
  color: #405367;
}
.about-content .row {
  margin-top: 36px;
}
.about-content .row .row {
  margin-top: 12px;
}
.about-content .img-fluid {
  max-height: 280px;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
  object-position: 50% 65%;
}
.about-content h3 {
  font-size: 25px;
}
.about-content ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
  color: #405367;
}
.about-content li {
  margin: 10px 0;
}
.about-content .section-title {
  margin-top: 32px;
  font-size: 18px;
  text-align: left;
}
.portfolio .socials {
  text-align: left;
  padding: 0;
}
.portfolio .socials img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-right: 18px;
}
.site-footer {
  padding-top: 48px;
  padding-bottom: 32px;
}
.footer-contact {
  font-size: clamp(30px, 5vw, 56px);
  letter-spacing: -0.04em;
  text-decoration: none;
}
.site-footer > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  font-size: 14px;
  color: #405367;
}
@media (max-width: 800px) {
  .intro {
    gap: 32px;
    grid-template-columns: 1fr 0.7fr;
  }
  .portrait-frame img {
    height: 310px;
  }
  .intro h1 {
    font-size: 72px;
  }
  .intro-description {
    font-size: 17px;
  }
  .brand-name {
    display: none;
  }
  .site-links {
    gap: 20px;
  }
  .experience-layout {
    gap: 32px;
    grid-template-columns: 1fr;
  }
  .experience-layout aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .portfolio .skills {
    padding: 0;
  }
  .section-heading > p {
    display: none;
  }
  .portfolio .cw-feature {
    padding: 28px;
  }
  .education-grid {
    gap: 24px;
  }
}
@media (max-width: 600px) {
  .portfolio main,
  .site-footer {
    padding-inline: 22px;
  }
  .site-nav {
    padding: 14px 22px;
  }
  .intro {
    grid-template-columns: 1fr;
    padding-top: 44px;
    gap: 32px;
  }
  .intro h1 {
    font-size: clamp(60px, 19vw, 76px);
  }
  .intro-aside {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    align-items: center;
  }
  .portrait-frame img {
    height: 115px;
  }
  .portrait-label {
    display: none;
  }
  .latest-work {
    padding: 16px 0;
  }
  .intro-foot {
    font-size: 13px;
  }
  .site-section {
    padding: 52px 0;
  }
  .section-heading {
    align-items: start;
    gap: 20px;
  }
  .project-grid,
  .education-grid,
  .experience-layout aside {
    grid-template-columns: 1fr;
  }
  .project-card {
    padding: 22px;
  }
  .portfolio .cw-feature {
    padding: 22px;
  }
  .portfolio .cw-feature h2 {
    font-size: 42px;
  }
  .portfolio .cw-model-stage {
    height: 260px;
  }
  .section-heading .hobby-button {
    max-width: 145px;
    font-size: 13px;
  }
  .site-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 67px;
    background: #ffffff;
    padding: 24px;
    border-bottom: 1px solid #d8e0e7;
  }
  .site-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
  .site-links .cmdk-trigger {
    align-self: start;
  }
  #menu-toggle {
    display: block;
    background: none;
    border: 1px solid #d8e0e7;
    border-radius: 5px;
    color: #416c98;
    padding: 7px 10px;
    font-size: 14px;
  }
  .portfolio .about-content .row {
    gap: 20px;
  }
  .portfolio .about-content .row .row {
    gap: 0;
  }
  .experience-card {
    padding-left: 23px;
  }
  .project-card .link + .link {
    margin-left: 0;
    margin-right: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .portfolio * {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .site-header,
  .intro,
  #projects,
  #about,
  .site-footer,
  .skip-link {
    display: none !important;
  }
  .portfolio main {
    max-width: none;
    padding: 0;
  }
  #resume {
    padding: 0;
    border: 0;
  }
  .experience-layout {
    grid-template-columns: 1fr;
  }
  .experience-card {
    break-inside: avoid;
  }
  .portfolio h2,
  .portfolio h3,
  .portfolio p,
  .portfolio li {
    color: #111 !important;
  }
}

/* A quieter, warmer presentation */
.portfolio h1,
.portfolio h2,
.portfolio h3 {
  letter-spacing: -0.025em;
}
.intro h1 {
  font-size: clamp(56px, 6.4vw, 82px);
  line-height: 1.07;
  letter-spacing: -0.04em;
}
.portfolio h2 {
  font-size: clamp(30px, 3vw, 40px);
}
.eyebrow {
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 12px !important;
}
.intro {
  padding-top: 64px;
}
.intro-description {
  font-size: 19px;
}
.portrait-frame img {
  filter: none;
}
.portrait-frame {
  border-radius: 18px;
}
.primary-action {
  background: #dce9f5;
  color: #2e5175 !important;
  border-radius: 9px;
}
.primary-action:hover {
  background: #ccdfef;
}
.site-links .cmdk-trigger {
  color: #405367;
  border-color: #ccd6df;
  background: #edf1f4;
}
.latest-work small {
  font-family: inherit;
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
}
.project-card {
  border-radius: 14px;
  box-shadow: 0 3px 14px #24384c04;
}
.project-card .section-title {
  font-size: 24px;
}
.portfolio .cw-feature {
  border-radius: 16px;
}
.portfolio .cw-feature h2 {
  font-size: 42px;
}
.portfolio .skills li {
  border: 1px solid #d1deea;
  color: #456684;
  background: #eef4f9;
  border-radius: 6px;
}
.experience-card:before {
  background: #91b1ce;
}
.experience-card em {
  color: #344d63;
}
.footer-contact {
  font-size: clamp(28px, 4vw, 42px);
}
.portfolio .cmdk-input {
  color: #e9edf2;
}
.portfolio .cmdk-list li {
  color: #c7cdd6;
}
.portfolio .bball-modal h3 {
  color: #e9edf2;
}
@media (max-width: 600px) {
  .intro h1 {
    font-size: clamp(52px, 17vw, 68px);
  }
  .intro-description {
    font-size: 17px;
  }
  .portfolio .cw-feature h2 {
    font-size: 36px;
  }
}
.role-history {
  margin: 20px 0 28px;
}
.role-history p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  margin-bottom: 12px;
}
.role-history strong {
  font-weight: 600;
  color: #344d63;
}
.role-history span {
  color: #405367;
  font-size: 14px;
}
.earlier-roles {
  border-top: 1px solid #d8e0e7;
  padding-top: 18px;
  margin-top: 24px;
  color: #405367;
  font-size: 15px;
}
.earlier-roles summary {
  cursor: pointer;
  padding-bottom: 16px;
  color: #416c98;
}
.experience-source {
  font-size: 15px;
  margin-top: 20px;
}
