*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html{
  scroll-behavior: smooth;
}

body{
  min-height: 100vh;
  background: #ffffff;
  color: #000000;
  font-family: "Courier New", Courier, monospace;
  line-height: 1.45;
}

a, button{
  color: inherit;
}

a{
  text-underline-offset: 4px;
}

button{
  font-family: inherit;
}

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

.page{
  width: min(1080px, calc(100% - 34px));
  margin: 0 auto;
  padding: 56px 0 36px;
}

.hero{
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(290px, 0.95fr) minmax(360px, 1.05fr);
  gap: 48px;
  align-items: center;
  padding: 10px 0 34px;
}

.eyebrow{
  font-size: 12px;
  margin-bottom: 34px;
  color: #555555;
}

h1{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 18px;
}

.bio-line{
  font-size: 15px;
  margin-bottom: 8px;
}

.links{
  margin-top: 34px;
}

.links h2{
  font-size: 18px;
  margin-bottom: 10px;
}

.links a, .links span{
  font-size: 15px;
  margin-right: 12px;
}

.location-line{
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: #767d89;
}

.ascii-panel{
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-me-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #000000;
  background: transparent;
  color: #000000;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  padding: 6px 12px;
  margin: 2px 0 10px;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.about-me-btn:hover{
  background: #000000;
  color: #ffffff;
}

.who-am-i-page{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #ffffff;
  overflow-y: auto;
  padding: 40px min(80px, 6%) 60px;
}

.who-am-i-page.active{
  display: block;
}

#asciiBg{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.who-am-i-page > *{
  position: relative;
  z-index: 1;
}

.back-arrow-btn{
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  margin-bottom: 18px;
  color: #5b5f76;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.back-arrow-btn svg{
  width: 26px;
  height: 26px;
}

.back-arrow-btn:hover{
  color: #000000;
}

.who-am-i-title{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  text-align: center;
  letter-spacing: -2px;
  margin-bottom: 40px;
}

.who-am-i-top{
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(320px, 1.15fr);
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.who-am-i-photos{
  width: 100%;
}

.who-am-i-photo{
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.who-am-i-intro p, .who-am-i-body p{
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.who-am-i-body{
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .who-am-i-top{
    grid-template-columns: 1fr;
  }
}

.ascii-panel pre{
  width: max-content;
  max-width: none;
  white-space: pre;
  font-family: "Courier New", "Lucida Console", monospace;
  font-size: 1.55px;
  line-height: 1.55px;
  letter-spacing: 0;
  color: #000000;
  background: transparent;
  transform: scale(1.1);
  transform-origin: center;
}

.ascii-panel pre::after{
  content: "";
  display: inline-block;
  width: 5px;
  height: 8px;
  margin-left: 4px;
  background: #000000;
  animation: blink 0.8s steps(2, start) infinite;
}

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

.hero-name-line{
  display: block;
}

.hero-name-line.typing-active::after{
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 4px;
  background: currentColor;
  vertical-align: -0.05em;
  animation: blink 0.8s steps(2, start) infinite;
}

.tabs{
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1.2fr auto 1fr;
  align-items: center;
  gap: 18px;
  border-top: 1px solid #000000;
  margin-top: 6px;
  margin-bottom: 30px;
  padding-top: 14px;
}

.tab{
  border: 0;
  background: transparent;
  padding: 0 0 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  text-transform: lowercase;
}

.tab.active{
  border-bottom-color: #000000;
}

.tab-panel, .mini-panel, .portfolio-panel{
  display: none;
  margin-bottom: 60px;
}

.active-panel, .active-mini-panel{
  display: block;
}

.section-title{
  margin-bottom: 22px;
}

.section-title h2, .section-heading, .contact h2, .project-group-title, .project-card h3{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

.section-title h2, .contact h2{
  font-size: 24px;
  margin-bottom: 6px;
}

.section-title p{
  color: #444444;
  font-size: 14px;
}

.embedded-section{
  margin-bottom: 54px;
}

.about-embed > .section-heading{
  display: none;
}

.about-grid{
  display: grid;
  grid-template-columns: minmax(270px, 0.9fr) minmax(330px, 1.1fr);
  gap: 28px;
  align-items: center;
  border: 1px solid #000000;
  padding: 22px;
}

.about-copy p, .item-desc, .project-card p, .contact p, .certificate-card p, .project-group-note, .filter-preview-card span{
  color: #333333;
  font-size: 14px;
}

.ascii-wrap{
  height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ascii-photo{
  width: max-content;
  white-space: pre;
  font-family: "Courier New", monospace;
  font-size: 0.88px;
  line-height: 0.88px;
  color: #000000;
}

.ascii-photo::after{
  content: "";
  display: inline-block;
  width: 4px;
  height: 6px;
  margin-left: 2px;
  background: #000000;
  animation: blink 0.8s steps(2, start) infinite;
}

.experience-block{
  margin-bottom: 34px;
}

.experience-label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555555;
  margin-bottom: 12px;
}

.list{
  display: grid;
  gap: 0;
  border-top: 1px solid #000000;
}

.list-item{
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid #000000;
}

.item-top{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.item-title{
  font-size: 16px;
}

.role-date, .tag, .tech-bubble, .certificate-date{
  font-size: 12px;
  color: #444444;
}

.certificate-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 12px;
}

.certificate-card{
  border: 1px solid #000000;
  padding: 14px;
}

.portfolio-switch{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.portfolio-switch button, .mini-tab, .project-link, .contact-links a{
  border: 1px solid #000000;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.portfolio-switch button:hover, .portfolio-switch button.active, .mini-tab:hover, .mini-tab.active, .project-link:hover, .contact-links a:hover{
  background: #000000;
  color: #ffffff;
  text-decoration: none;
}

.project-group{
  margin-bottom: 58px;
}

.project-group-header{
  border-bottom: 1px solid #000000;
  padding-bottom: 14px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.project-group-title{
  font-size: clamp(22px, 3vw, 32px);
}

.project-group-note{
  max-width: 520px;
  text-align: right;
}

.project-list{
  display: grid;
}

.project-card{
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(320px, 0.9fr);
  gap: 30px;
  align-items: center;
  border-bottom: 1px solid #000000;
  padding: 34px 0;
}

.blog-highlight .project-card, .blog-card{
  border: 1px solid #000000;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.9fr);
  gap: 24px;
}

.project-card h3, .blog-card h3{
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.15;
  margin-bottom: 12px;
}

.project-links, .tech-row{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tech-bubble, .tag{
  border: 1px solid #000000;
  border-radius: 999px;
  padding: 3px 9px;
  background: #ffffff;
}

.slideshow{
  position: relative;
  min-height: 360px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #ffffff;
}

.slide{
  display: none;
  width: 100%;
}

.slide.active-slide{
  display: block;
}

.slide img{
  width: 100%;
  height: 360px;
  object-fit: contain;
}

.slide-number{
  position: absolute;
  top: 10px;
  left: 10px;
  border: 1px solid #000000;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  z-index: 2;
}

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

.filter-preview{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.code-card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.code-card{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #f1f1f3;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.code-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

.code-card-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  transform: scale(1.02);
}

.code-card-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.85));
}

.code-card-ascii{
  position: absolute;
  inset: 0;
  margin: 0;
  box-sizing: border-box;
  border-radius: inherit;
  background: transparent;
  opacity: 0;
  transition: opacity 0.35s ease;
  font-family: "Courier New", "Lucida Console", monospace;
  font-size: 10px;
  line-height: 1.25;
  color: #8b8b92;
  white-space: pre-wrap;
  word-break: break-all;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
}

.code-card:hover .code-card-ascii{
  opacity: 1;
}

.code-card-content{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.code-card-title{
  font-family: var(--clean-heading-font);
  font-size: 17px;
  font-weight: 600;
  color: #16161a;
}

.code-card-desc{
  font-size: 13px;
  line-height: 1.45;
  color: #8b8b92;
  flex-grow: 1;
}

.code-card-footer{
  display: flex;
  gap: 12px;
}

.code-card-footer-link{
  font-size: 12px;
  color: #16161a;
  text-decoration: none;
  text-underline-offset: 3px;
}

.code-card-footer-link:hover{
  text-decoration: underline;
}

.filter-preview-card{
  border: 1px solid #000000;
  min-height: 160px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery{
  columns: 3;
  column-gap: 12px;
}

.gallery-item{
  break-inside: avoid;
  display: block;
  margin-bottom: 12px;
  border: 1px solid #000000;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.gallery-item img{
  width: 100%;
}

.gallery-item::after{
  content: attr(data-caption);
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(255,255,255,0.9);
  color: #000000;
  padding: 12px;
  font-size: 12px;
  opacity: 0;
  transition: 0.2s ease;
}

.gallery-item:hover::after{
  opacity: 1;
}

.pdf-item{
  position: relative;
  padding: 0;
  color: #000000;
  text-decoration: none;
  display: block;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pdf-cover{
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.pdf-info{
  position: absolute;
  inset: 0;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.25s ease;
}

.pdf-title{
  color: #000000;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.pdf-badge{
  width: fit-content;
  border: 1px solid #000000;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.code-item{
  cursor: default;
}

.code-item .pdf-info{
  gap: 6px;
}

.code-item .project-links{
  margin-top: 2px;
}

.code-placeholder{
  min-height: 220px;
  background: linear-gradient(135deg, #f0f0f3, #fbfbfc);
}


.uxui-error{
  min-height: 18px;
  color: #8d0000;
  font-size: 13px;
}

.uxui-gallery{
  display: none;
}

.contact{
  border: 1px solid #000000;
  padding: 18px;
  margin-top: 34px;
  margin-bottom: 34px;
}

.contact-links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

footer{
  text-align: center;
  display: grid;
  gap: 6px;
  font-size: 14px;
  padding-top: 8px;
}

@media (max-width: 900px) {
  .hero, .about-grid, .project-card, .blog-highlight .project-card, .blog-card{
    grid-template-columns: 1fr;
  }

  .ascii-panel{
    height: 380px;
    justify-content: flex-start;
  }

  .ascii-panel pre{
    font-size: 1.05px;
    line-height: 1.05px;
  }

  .tabs{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .project-group-note{
    text-align: left;
  }

  .certificate-grid, .filter-preview{
    grid-template-columns: 1fr;
  }

  .gallery{
    columns: 2;
  }
}

@media (max-width: 560px) {
  .page{
    width: min(94%, 1080px);
    padding-top: 30px;
  }

  h1{
    letter-spacing: -2px;
  }

  .bio-line{
    font-size: 13px;
  }

  .links a, .links span{
    display: inline-block;
    margin-bottom: 8px;
  }

  .ascii-panel{
    height: 280px;
  }

  .ascii-panel pre{
    font-size: 0.72px;
    line-height: 0.72px;
  }

  .ascii-wrap{
    height: 230px;
    justify-content: flex-start;
  }

  .ascii-photo{
    font-size: 0.56px;
    line-height: 0.56px;
  }

  .slideshow{
    min-height: 240px;
  }

  .slide img{
    height: 240px;
  }

  .gallery{
    columns: 1;
  }
}


/* requested update: smaller projects that fill the space */
#projects .project-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

#projects .project-card{
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #000000;
  padding: 14px;
  min-height: 0;
}

#projects .project-card.filter-project-card{
  grid-column: 1 / -1;
}

#projects .slideshow{
  min-height: 190px;
  width: 100%;
  border: 1px solid #000000;
}

#projects .slide img{
  height: 190px;
  object-fit: contain;
}

#projects .project-card h3{
  font-size: clamp(18px, 2vw, 24px);
  margin-bottom: 8px;
}

#projects .project-card p{
  font-size: 12.5px;
  line-height: 1.45;
  margin-bottom: 8px;
}

#projects .project-links, #projects .tech-row{
  margin-top: 9px;
  gap: 6px;
}

#projects .tech-bubble, #projects .project-link{
  font-size: 11px;
  padding: 3px 8px;
}

#projects .project-group{
  margin-bottom: 34px;
}

#projects .project-group-header{
  margin-bottom: 18px;
}

#uxuiGallery{
  display: block;
}

.contact{
  display: none;
}

@media (max-width: 900px) {
  #projects .project-list{
    grid-template-columns: 1fr;
  }

  #projects .project-card.filter-project-card{
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  #projects .slideshow{
    min-height: 165px;
  }

  #projects .slide img{
    height: 165px;
  }
}


/* requested font update: thin, clean lowercase heading style */
:root{
  --clean-heading-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* main section/tab headings like the screenshot */
.section-title h2, .section-heading, .project-group-title, .contact h2, #projects .project-card h3, .blog-card h3, .item-title, .certificate-card strong{
  font-family: var(--clean-heading-font) !important;
  font-weight: 300 !important;
  letter-spacing: -1.4px !important;
  text-transform: lowercase;
}

/* make the bigger headings feel like “currently” in the screenshot */
.section-title h2, .section-heading, .project-group-title, .contact h2{
  font-size: clamp(34px, 5vw, 52px) !important;
  line-height: 1.05 !important;
  margin-bottom: 18px !important;
}

/* project/card titles stay readable but use the same clean font */
#projects .project-card h3, .blog-card h3, .item-title{
  font-size: clamp(22px, 2.6vw, 32px) !important;
  line-height: 1.12 !important;
}

/* tabs/navigation also cleaned up */
.tab, .mini-tab, .portfolio-switch button, .links h2{
  font-family: var(--clean-heading-font) !important;
  font-weight: 300 !important;
  letter-spacing: -0.5px !important;
  text-transform: lowercase;
}

/* hero name keeps the portfolio personality but becomes cleaner */
h1{
  font-family: var(--clean-heading-font) !important;
  font-weight: 300 !important;
  letter-spacing: -2px !important;
  text-transform: lowercase;
}

/* slightly softer overall text to match the screenshot style */
body{
  font-family: "Courier New", Courier, monospace;
}

.bio-line, .links a, .links span, .about-copy p, .item-desc, .project-card p, .certificate-card p{
  color: #222222;
}


/* macOS themed shell while keeping the existing portfolio layout/style */
:root{
  --mac-bg-1: #f5f5f7;
  --mac-bg-2: #eceef3;
  --mac-window: rgba(255, 255, 255, 0.78);
  --mac-border: rgba(0, 0, 0, 0.12);
  --mac-shadow: 0 28px 80px rgba(0, 0, 0, 0.16);
  --mac-blue: #007aff;
  --mac-text: #1d1d1f;
  --mac-muted: #6e6e73;
}

html{
  background:
    radial-gradient(circle at 15% 20%, rgba(0,122,255,0.16), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(175,82,222,0.14), transparent 28%),
    linear-gradient(135deg, var(--mac-bg-1), var(--mac-bg-2));
}

body{
  background:
    radial-gradient(circle at 20% 12%, rgba(255,255,255,0.9), transparent 24%),
    linear-gradient(135deg, #f8f8fb 0%, #eef1f7 100%) !important;
  color: var(--mac-text);
  min-height: 100vh;
}

.mac-desktop{
  width: min(1240px, calc(100% - 28px));
  margin: 24px auto;
  padding: 18px;
}

.mac-window{
  border: 1px solid var(--mac-border);
  border-radius: 22px;
  background: var(--mac-window);
  box-shadow: var(--mac-shadow);
  overflow: hidden;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.mac-titlebar{
  min-height: 48px;
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(246,247,250,0.72));
  position: sticky;
  top: 0;
  z-index: 50;
}

.mac-controls{
  display: flex;
  align-items: center;
  gap: 8px;
}

.mac-dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.12);
}

.mac-dot.red{
  background: #ff5f57;
}

.mac-dot.yellow{
  background: #ffbd2e;
}

.mac-dot.green{
  background: #28c840;
}

.mac-address{
  justify-self: center;
  width: min(460px, 100%);
  height: 30px;
  border-radius: 9px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #71717a;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.mac-actions{
  justify-self: end;
  display: flex;
  gap: 12px;
  color: #8a8a8e;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.mac-content{
  background: rgba(255,255,255,0.62);
}

.page{
  width: min(1080px, calc(100% - 34px));
  padding-top: 46px;
}

/* Apple-like typography without losing your clean thin heading style */
body, .bio-line, .links a, .links span, .about-copy p, .item-desc, .project-card p, .certificate-card p, .project-group-note{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif !important;
}

h1, .section-title h2, .section-heading, .project-group-title, .contact h2, #projects .project-card h3, .blog-card h3, .item-title, .certificate-card strong, .tab, .mini-tab, .portfolio-switch button, .links h2{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 300 !important;
}

/* Keep the ASCII as terminal-style monospace */
.ascii-panel pre, .ascii-photo, pre, .slide-number, .tech-bubble, .tag, .project-link, .role-date, .experience-label, .certificate-date{
  font-family: "SF Mono", "Menlo", "Monaco", "Courier New", monospace !important;
}

/* Turn main hero into a macOS card */
.hero{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.56);
  box-shadow: 0 14px 40px rgba(0,0,0,0.06);
  padding: 34px;
  min-height: 520px;
}

.ascii-panel{
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65), rgba(250,250,252,0.76));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

/* macOS segmented-control style tabs */
.tabs{
  border-top: 0;
  background: rgba(255,255,255,0.56);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 8px;
  margin-top: 24px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.05);
}

.tabs span{
  display: none;
}

.tab{
  border: 0 !important;
  border-radius: 12px;
  padding: 10px 14px !important;
  color: #5f6368;
  transition: 0.18s ease;
}

.tab.active, .tab:hover{
  background: rgba(0,122,255,0.10);
  color: var(--mac-blue);
  box-shadow: inset 0 0 0 1px rgba(0,122,255,0.12);
}

/* Mac/Finder-like cards */
#projects .project-card, .blog-card, .certificate-card, .text-list article, .photo-grid div, .contact, .filter-preview-card, .gallery-item, .pdf-item, .about-grid{
  border-color: rgba(0,0,0,0.10) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.58) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.055);
  overflow: hidden;
}

#projects .project-card{
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#projects .project-card:hover, .gallery-item:hover, .pdf-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.76) !important;
}

.project-group-header{
  border-bottom-color: rgba(0,0,0,0.10);
}

.project-group-title::before, .section-title h2::before, .section-heading::before{
  content: "⌘ ";
  color: var(--mac-blue);
  font-weight: 400;
}

#projects .slideshow{
  border-color: rgba(0,0,0,0.08) !important;
  border-radius: 12px;
  background: rgba(250,250,252,0.82);
}

.slide-number{
  border: 1px solid rgba(0,0,0,0.08);
  color: #6e6e73;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project-link, .tech-bubble, .tag, .portfolio-switch button, .mini-tab, .contact-links a{
  border-color: rgba(0,0,0,0.12) !important;
  background: rgba(255,255,255,0.72) !important;
  color: #4b5563 !important;
}

.project-link:hover, .portfolio-switch button:hover, .portfolio-switch button.active, .mini-tab:hover, .mini-tab.active, .contact-links a:hover{
  background: var(--mac-blue) !important;
  color: white !important;
  border-color: var(--mac-blue) !important;
}

.list{
  border-top-color: rgba(0,0,0,0.10);
}

.list-item{
  border-bottom-color: rgba(0,0,0,0.10);
}

.certificate-grid{
  gap: 14px;
}

footer{
  color: #6e6e73;
}

@media (max-width: 900px) {
  .mac-desktop{
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .mac-window{
    border-radius: 0;
    min-height: 100vh;
  }

  .mac-titlebar{
    grid-template-columns: 86px 1fr 60px;
  }

  .mac-address{
    font-size: 12px;
  }

  .hero{
    padding: 22px;
  }

  .tabs{
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .tab{
    flex: 0 0 auto;
  }
}

@media (max-width: 560px) {
  .mac-titlebar{
    grid-template-columns: 70px 1fr 32px;
    padding-inline: 10px;
  }

  .mac-actions span:first-child{
    display: none;
  }

  .mac-address{
    justify-content: flex-start;
    padding: 0 10px;
  }

  .hero{
    padding: 18px;
  }
}


/* calmer macOS version: less overwhelming, more whitespace, fewer effects */
html, body{
  background: #f7f7f8 !important;
}

.mac-desktop{
  width: min(1120px, calc(100% - 40px)) !important;
  margin: 34px auto !important;
  padding: 0 !important;
}

.mac-window{
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 45px rgba(0,0,0,0.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.mac-titlebar{
  min-height: 42px !important;
  padding: 8px 14px !important;
  background: #fbfbfc !important;
  border-bottom: 1px solid #eeeeef !important;
  position: static !important;
}

.mac-address{
  background: #f2f2f4 !important;
  border: 0 !important;
  box-shadow: none !important;
  height: 26px !important;
  width: min(320px, 100%) !important;
  color: #8a8f98 !important;
}

.mac-actions{
  display: none !important;
}

.mac-dot{
  width: 10px !important;
  height: 10px !important;
  opacity: 0.75 !important;
}

.page{
  padding-top: 36px !important;
  padding-bottom: 46px !important;
}

/* remove loud mac symbols before headings */
.project-group-title::before, .section-title h2::before, .section-heading::before{
  content: "" !important;
}

/* hero becomes simple again */
.hero{
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 14px 0 24px !important;
  min-height: 520px !important;
  gap: 34px !important;
}

/* softer ascii, no heavy framed card */
.ascii-panel{
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0.68 !important;
}

/* tabs stay mac-ish but quieter */
.tabs{
  background: #f6f6f7 !important;
  border: 1px solid #eeeeef !important;
  border-radius: 14px !important;
  padding: 6px !important;
  box-shadow: none !important;
  gap: 6px !important;
}

.tab{
  border-radius: 10px !important;
  padding: 8px 11px !important;
  color: #777d87 !important;
  font-size: 14px !important;
}

.tab.active, .tab:hover{
  background: #ffffff !important;
  color: #202124 !important;
  box-shadow: 0 1px 5px rgba(0,0,0,0.06) !important;
}

/* calmer cards: less glass, less shadow */
#projects .project-card, .blog-card, .certificate-card, .text-list article, .photo-grid div, .contact, .filter-preview-card, .gallery-item, .pdf-item, .about-grid{
  border-color: #eeeeef !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

#projects .project-card:hover, .gallery-item:hover, .pdf-item:hover{
  transform: none !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.055) !important;
}

/* projects: still full space but smaller and easier to scan */
#projects .project-list{
  gap: 14px !important;
}

#projects .project-card{
  padding: 12px !important;
  gap: 10px !important;
}

#projects .slideshow{
  min-height: 150px !important;
  border: 1px solid #eeeeef !important;
  border-radius: 10px !important;
  background: #fafafa !important;
}

#projects .slide img{
  height: 150px !important;
}

#projects .project-card h3{
  font-size: clamp(19px, 2vw, 25px) !important;
}

#projects .project-card p{
  font-size: 12.5px !important;
  line-height: 1.42 !important;
}

.project-link, .tech-bubble, .tag, .portfolio-switch button, .mini-tab, .contact-links a{
  background: #f8f8f9 !important;
  color: #555b65 !important;
  border-color: #e9e9eb !important;
}

.project-link:hover, .portfolio-switch button:hover, .portfolio-switch button.active, .mini-tab:hover, .mini-tab.active, .contact-links a:hover{
  background: #202124 !important;
  color: #ffffff !important;
  border-color: #202124 !important;
}

/* softer dividers */
.project-group-header, .list, .list-item{
  border-color: #eeeeef !important;
}

.section-title h2, .section-heading, .project-group-title, .contact h2{
  font-size: clamp(32px, 4.4vw, 46px) !important;
}

body, .bio-line, .links a, .links span, .about-copy p, .item-desc, .project-card p, .certificate-card p, .project-group-note{
  color: #2d2f34 !important;
}

.item-desc, .project-card p, .about-copy p, .certificate-card p, .project-group-note{
  color: #606672 !important;
}

@media (max-width: 900px) {
  .mac-desktop{
    width: 100% !important;
    margin: 0 !important;
  }

  .mac-window{
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .mac-titlebar{
    position: sticky !important;
    top: 0 !important;
  }

  .hero{
    gap: 18px !important;
  }
}

@media (max-width: 560px) {
  #projects .slideshow{
    min-height: 130px !important;
  }

  #projects .slide img{
    height: 130px !important;
  }
}


/* About + experience updated to be straightforward, readable, and informational */
#about .section-title h2, #about .resume-list-section h3, #education .section-title h2, #education .resume-list-section h3{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 300 !important;
  letter-spacing: -1.8px !important;
  text-transform: lowercase;
}

#about .section-title h2, #education .section-title h2{
  font-size: clamp(40px, 5vw, 58px) !important;
  margin-bottom: 8px !important;
}

#about .section-title p, #education .section-title p{
  font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace !important;
  color: #687386 !important;
  font-size: 14px !important;
}

.about-straight-block{
  display: grid;
  gap: 10px;
  margin: 16px 0 46px;
  max-width: 850px;
}

.about-straight-block p{
  font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace !important;
  color: #526074 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.resume-list-section{
  margin: 42px 0 0;
}

#about .resume-list-section h3, #education .resume-list-section h3{
  font-size: clamp(34px, 4.5vw, 50px) !important;
  line-height: 1.05 !important;
  margin-bottom: 24px !important;
  color: #202124 !important;
}

.resume-list{
  display: grid;
  gap: 22px;
}

.resume-row{
  display: grid;
  grid-template-columns: 44px 1fr 180px;
  gap: 16px 28px;
  align-items: start;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.resume-logo{
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #f2f3f6;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 2px;
}

.resume-row:has(> .resume-row-main:first-child){
  grid-template-columns: 1fr 180px;
}

.resume-row h4{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  letter-spacing: -0.4px !important;
  color: #1f2328 !important;
  margin: 0 0 5px !important;
}

.resume-row h4::after{
  content: "↗";
  color: #8a929d;
  font-size: 14px;
  margin-left: 4px;
}

.resume-row p{
  font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace !important;
  color: #526074 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

.resume-note{
  color: #9aa3b2 !important;
  font-size: 12px !important;
  margin-top: 5px !important;
}

.resume-extras{
  list-style: none;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  display: grid;
  gap: 6px;
}

.resume-extras li{
  font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace !important;
  color: #687386 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  padding-left: 14px;
  position: relative;
}

.resume-extras li::before{
  content: "–";
  position: absolute;
  left: 0;
  color: #aab2bf;
}

.resume-stats{
  font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace !important;
  color: #6b7686 !important;
  font-size: 13px !important;
  margin: 6px 0 0 !important;
}

.resume-date{
  font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace !important;
  color: #aab2bf !important;
  text-align: right;
  font-size: 13px;
  white-space: normal;
  padding-top: 2px;
}

/* Hide role descriptions/stats until the row is hovered (currently/previously only, not university/education) */
#about .resume-row-main p{
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0 !important;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

#about .resume-row:hover .resume-row-main p, #about .resume-row:focus-within .resume-row-main p{
  max-height: 300px;
  opacity: 1;
}

#about .resume-row:hover .resume-row-main p.resume-stats, #about .resume-row:focus-within .resume-row-main p.resume-stats{
  margin-top: 6px !important;
}

.certificate-simple-list{
  display: grid;
  gap: 11px;
}

.cert-row{
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 20px;
  align-items: baseline;
}

.cert-row span:first-child{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600;
  color: #1f2328;
  letter-spacing: -0.2px;
}

.cert-row span:last-child{
  font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace !important;
  color: #aab2bf;
  text-align: right;
  font-size: 12px;
}

/* remove old embedded/card feel inside about */
#about .embedded-section, #about .about-grid, #about .list, #about .list-item, #about .certificate-grid, #about .certificate-card{
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* keep the about panel width comfortable for reading, aligned like every other tab */
#about .about-straight-block, #about .resume-list-section, #education .resume-list-section{
  max-width: 760px;
}

@media (max-width: 760px) {
  .resume-row, .cert-row{
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .resume-date, .cert-row span:last-child{
    text-align: left;
  }

  .resume-list{
    gap: 26px;
  }
}


/* Projects simplified: no In Progress / Completed sections, small cards with status labels */
#projects .section-title{
  margin-bottom: 18px !important;
}

#projects .section-title h2{
  font-size: clamp(38px, 5vw, 54px) !important;
  margin-bottom: 6px !important;
}

.project-simple-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px !important;
}

/* override older project card layout */
#projects .project-simple-grid .project-card{
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-height: 0 !important;
  padding: 10px !important;
  border: 1px solid #eeeeef !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

#projects .project-simple-grid .project-card:hover{
  transform: none !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.055) !important;
}

#projects .project-simple-grid .slideshow{
  min-height: 108px !important;
  height: 108px !important;
  border: 1px solid #f0f0f1 !important;
  border-radius: 9px !important;
  background: #fafafa !important;
  margin-bottom: 10px !important;
}

#projects .project-simple-grid .slide img{
  height: 108px !important;
  width: 100% !important;
  object-fit: contain !important;
}

#projects .project-simple-grid .slide-number{
  font-size: 10px !important;
  padding: 2px 6px !important;
  top: 6px !important;
  left: 6px !important;
}

/* card copy */
#projects .project-simple-grid .project-card > div:last-child{
  display: block !important;
}

.status-pill{
  display: inline-flex;
  width: fit-content;
  border: 1px solid #e7e8eb;
  background: #f7f7f8;
  color: #717783;
  border-radius: 999px;
  padding: 2px 7px;
  font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace !important;
  font-size: 10px;
  line-height: 1.35;
  margin-bottom: 8px;
}

#projects .project-simple-grid .project-card h3{
  font-size: 18px !important;
  line-height: 1.12 !important;
  letter-spacing: -0.6px !important;
  margin: 0 0 7px !important;
}

/* Make project descriptions shorter visually, without deleting content */
#projects .project-simple-grid .project-card p{
  font-size: 12px !important;
  line-height: 1.38 !important;
  color: #626a76 !important;
  margin-bottom: 8px !important;
}

#projects .project-simple-grid .project-card p:nth-of-type(n/**/+2){
  display: none !important;
}

/* if there are multiple long paragraphs, show only the first by default */
#projects .project-simple-grid .project-card p:first-of-type{
  display: -webkit-box !important;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#projects .project-simple-grid .project-links, #projects .project-simple-grid .tech-row{
  margin-top: 8px !important;
  gap: 5px !important;
}

#projects .project-simple-grid .tech-row{
  max-height: 27px;
  overflow: hidden;
}

#projects .project-simple-grid .tech-bubble, #projects .project-simple-grid .project-link{
  font-size: 10px !important;
  padding: 2px 6px !important;
  border-radius: 999px !important;
}

/* full-width special filter card should also become normal */
#projects .project-simple-grid .filter-project-card{
  grid-column: auto !important;
}

#projects .project-simple-grid .filter-preview{
  display: none !important;
}

/* remove leftover project group styles from showing if any browser caches weirdly */
#projects .project-group, #projects .project-group-header, #projects .project-list{
  display: contents;
}

@media (max-width: 960px) {
  .project-simple-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  #projects .project-simple-grid .slideshow, #projects .project-simple-grid .slide img{
    height: 145px !important;
    min-height: 145px !important;
  }
}


/* fixed full-page cleanup */
html, body{
  background: #ffffff !important;
  min-height: 100vh;
}

/* remove the large macOS outer card/frame completely */
.mac-desktop, .mac-window, .mac-content, .mac-titlebar, .mac-controls, .mac-address, .mac-actions{
  display: contents !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.mac-titlebar, .mac-controls, .mac-address, .mac-actions{
  display: none !important;
}

.page{
  display: block !important;
  width: min(1120px, calc(100% - 42px)) !important;
  margin: 0 auto !important;
  padding: 48px 0 54px !important;
}

main.page{
  visibility: visible !important;
  opacity: 1 !important;
}

/* no bottom footer/back to top */
footer{
  display: none !important;
}

/* no big hero box */
.hero{
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 0 28px !important;
}

/* page-style navigation instead of a boxed control */
.tabs{
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #e7e7e8 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 14px 0 0 !important;
  margin-top: 18px !important;
}

.tab.active, .tab:hover{
  background: transparent !important;
  color: #111111 !important;
  box-shadow: none !important;
  text-decoration: underline;
  text-underline-offset: 8px;
}

/* creative works: remove hover text and gradient */
.gallery-item::after, .gallery-item:hover::after{
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  background: none !important;
}

.gallery-item:hover, .pdf-item:hover{
  transform: none !important;
  box-shadow: none !important;
  background: #ffffff !important;
}

.gallery-item img, .gallery-item:hover img{
  transition: none !important;
  transform: none !important;
  filter: none !important;
}

/* keep the lighter card style */
#projects .project-simple-grid .project-card, #projects .project-card, .blog-card, .certificate-card, .text-list article, .photo-grid div, .contact, .filter-preview-card, .gallery-item, .pdf-item, .about-grid{
  box-shadow: none !important;
}

.ascii-panel{
  background: transparent !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  .page{
    width: min(94%, 1120px) !important;
    padding-top: 32px !important;
  }
}


/* UX/UI now lives inside Creative Works */
#creative .creative-subtitle{
  margin-top: 8px;
  margin-bottom: 14px;
}

#creative .creative-subtitle h2{
  font-size: clamp(26px, 3.8vw, 38px) !important;
  margin-bottom: 4px !important;
}

#mini-uxui .uxui-gallery, #mini-uxui #uxuiGallery{
  display: block !important;
}

/* make the creative section tabs feel balanced */
#creative .portfolio-switch, #creative .mini-switch{
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}


/* Alan Turing quote section */
.turing-quote{
  position: relative;
  margin: 26px 0 32px;
  padding: 28px 48px 30px;
  border-top: 1px solid #e7e7e8;
  border-bottom: 1px solid #e7e7e8;
  text-align: center;
  background: #0b0b0d;
  color: #f5f5f5;
}

.turing-quote blockquote{
  border: 0 !important;
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 880px;
  color: #f5f5f5 !important;
  font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace !important;
  font-size: clamp(17px, 2.2vw, 26px) !important;
  line-height: 1.5 !important;
  font-style: italic;
  font-weight: 700;
}

.turing-quote cite{
  display: block;
  margin-top: 20px;
  color: #fbff3b;
  font-style: normal;
  font-weight: 700;
}

.quote-mark{
  position: absolute;
  color: #fbff3b;
  font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace;
  font-size: 54px;
  line-height: 1;
  font-weight: 800;
}

.quote-mark.left{
  left: 20px;
  top: 20px;
}

.quote-mark.right{
  right: 20px;
  bottom: 12px;
}

.project-note{
  margin-top: 6px;
  color: #767d89 !important;
  font-size: 13px !important;
}

#projects .project-simple-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

#projects .project-simple-grid .project-card{
  padding: 12px !important;
  border-radius: 14px !important;
  background: #fbfbfc !important;
  border-color: #ececef !important;
}

#projects .project-simple-grid .slideshow{
  height: 96px !important;
  min-height: 96px !important;
  margin-bottom: 11px !important;
  background: #ffffff !important;
}

#projects .project-simple-grid .slide img{
  height: 96px !important;
}

#projects .project-simple-grid .project-card h3{
  font-size: 17px !important;
  margin-bottom: 8px !important;
}

#projects .project-simple-grid .project-card p:first-of-type{
  -webkit-line-clamp: 3 !important;
}

#projects .project-simple-grid .project-card p{
  font-size: 11.5px !important;
  line-height: 1.36 !important;
}

/* hide long stacks of tech bubbles until hover to reduce visual clutter */
#projects .project-simple-grid .tech-row{
  max-height: 23px !important;
  opacity: 0.72;
}

#projects .project-simple-grid .project-card:hover .tech-row{
  max-height: none !important;
  opacity: 1;
}

.project-actions{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 7px 0 8px;
}

.project-actions a, .project-actions span{
  display: inline-flex;
  align-items: center;
  border: 1px solid #dfe2e7;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.2;
  text-decoration: none;
  color: #4f5866;
  background: #ffffff;
  font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace !important;
}

.project-actions a:first-child{
  color: #1f2328;
  border-color: #cfd4dc;
}

.project-actions a:hover{
  background: #1f2328;
  color: #ffffff;
  border-color: #1f2328;
}

.project-actions span{
  color: #9ba3af;
  background: #f6f6f7;
}

/* make creative/ux sections breathe visually */
#creative .gallery, #creative .uxui-gallery, #creative #uxuiGallery{
  columns: 4;
  column-gap: 12px;
}

@media (max-width: 980px) {
  #projects .project-simple-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #creative .gallery, #creative .uxui-gallery, #creative #uxuiGallery{
    columns: 3;
  }
}

@media (max-width: 640px) {
  .turing-quote{
    padding: 24px 24px 26px;
  }

  .quote-mark{
    font-size: 32px;
  }

  #projects .project-simple-grid{
    grid-template-columns: 1fr !important;
  }

  #projects .project-simple-grid .slideshow, #projects .project-simple-grid .slide img{
    height: 128px !important;
    min-height: 128px !important;
  }

  #creative .gallery, #creative .uxui-gallery, #creative #uxuiGallery{
    columns: 2;
  }
}

@media (max-width: 440px) {
  #creative .gallery, #creative .uxui-gallery, #creative #uxuiGallery{
    columns: 1;
  }
}


/* icon buttons in hero links */
.social-logo-links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.social-logo-links a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e6e6e8;
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  background: #ffffff;
  color: #404854;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 13px;
}

.social-logo-links a:hover{
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.social-logo-links svg{
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 16px;
}

/* simple section dividers */
.title-divider{
  border-top: 1px solid #e8e8ea;
  padding-top: 16px;
  margin-bottom: 18px !important;
}

.title-divider h2{
  margin-bottom: 0 !important;
}

/* minimal, clean quote styling */
.site-quote{
  margin: 4px 0 22px;
  max-width: 720px;
  padding-left: 18px;
  border-left: 2px solid #d8d8db;
}

.site-quote p{
  margin: 0;
  color: #444444;
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
  font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace;
}

.site-quote cite{
  display: block;
  margin-top: 8px;
  color: #8a8f99;
  font-size: 12px;
  font-style: normal;
  font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace;
}

/* 3D project carousel */
.carousel-stage{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
  perspective: 2000px;
  margin: 0 auto;
  max-width: 100%;
}

.carousel-track{
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  will-change: transform;
}

.carousel-card{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 230px;
  margin: -115px 0 0 -170px;
  transform-style: preserve-3d;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

.carousel-card .card-inner{
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform: rotateY(0deg);
}

.carousel-card.flipped .card-inner{
  transform: rotateY(180deg);
}

.card-face{
  position: absolute;
  inset: 0;
  border: 1px solid #e4e4e8;
  border-radius: 14px;
  overflow: hidden;
  background: #fbfbfc;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 6px 16px rgba(15, 15, 20, 0.10), 0 24px 48px rgba(15, 15, 20, 0.14);
  display: flex;
  flex-direction: column;
}

.card-back{
  transform: rotateY(180deg);
  pointer-events: none;
}

.carousel-card.flipped .card-back{
  pointer-events: auto;
}

.carousel-card.flipped .card-front{
  pointer-events: none;
}

.carousel-image-frame{
  position: relative;
  overflow: hidden;
  flex: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-image-frame--empty{
  background: linear-gradient(135deg, #f0f0f3, #fbfbfc);
}

.carousel-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #ffffff;
}

/* Duplicate of the front artwork, used as the back face's background. */
.carousel-back-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Wraps a rotating set of back-of-card images for cards that have a
   slideshow instead of a single static blurred image. Only affects cards
   whose back face contains this wrapper; other cards' single .carousel-back-bg
   image is untouched by the rules below. */
.carousel-back-slideshow{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.carousel-back-slideshow .carousel-back-bg{
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel-back-slideshow .carousel-back-bg.is-active{
  opacity: 1;
}

/* Gradient scrim over the blurred image so the status/links stay readable,
   darkest where the text sits at the bottom. */
.card-back::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.05), rgba(10, 10, 12, 0.42));
  z-index: 1;
}

.back-content{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px;
  flex: 1;
}

.overlay-status{
  align-self: flex-start;
  border: none;
  background: none;
  color: #ffffff;
  padding: 0;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.overlay-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.overlay-actions a, .overlay-actions span{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  text-underline-offset: 3px;
  border-radius: 8px;
  padding: 4px 7px;
  margin: -4px -7px;
  font-size: 16px;
  font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace !important;
  background: none;
  color: #ffffff;
  border: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, text-shadow 0.18s ease;
}

.overlay-actions a:hover{
  text-decoration: underline;
}

.overlay-actions span{
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.carousel-hint{
  text-align: center;
  margin-top: 6px;
  font-size: 11px;
  color: #9a9fa8;
  font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace;
}

/* Mobile-only stand-in for the projects carousel, styled like the
   creative-code cards. Hidden by default; switched on at the mobile
   breakpoint further down. */
#projectsMobileGrid{
  display: none;
}

/* remove old project card leftovers if any */
#projects .project-simple-grid, #projects .project-card, #projects .project-group, #projects .project-group-header, #projects .project-list{
  all: unset;
}

/* cleaner sections with title only */
#creative .section-title p, #about .section-title p, #blog .section-title p, #mini-uxui .section-title p, #uxui .section-title p, #certificates .section-title p{
  display: none !important;
}

@media (max-width: 640px) {
  .carousel-stage{
    height: 240px;
  }
  .carousel-card{
    width: 260px;
    height: 180px;
    margin: -90px 0 0 -130px;
  }
}


/* icon-only social links like the reference */
.links h2{
  margin-bottom: 16px !important;
}

.social-logo-links{
  display: none !important;
}

.social-icon-row{
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.social-icon-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #737a89;
  text-decoration: none;
  transition: color 0.18s ease;
}

.social-icon-link svg{
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.social-icon-link:hover{
  color: #000000;
}

/* custom social logos made from HTML/CSS, not images */
.social-icon-row.custom-socials{
  gap: 22px !important;
}

.icon-group{
  display: flex;
  align-items: center;
  gap: 0;
}

.social-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  text-decoration: none;
  color: #1d1d1f;
}

.badge-shape{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: currentColor;
}

.badge-icon{
  width: 32px;
  height: 32px;
  fill: currentColor;
  color: #1d1d1f;
  opacity: 0.78;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.social-badge:hover .badge-icon{
  color: #000000;
  opacity: 1;
}


/* simplified blog section: no image, no boxed card */
.blog-highlight{
  max-width: 640px;
}

.blog-entry h3{
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: #1d1d1f;
}

.blog-entry p{
  color: #55585f;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.blog-entry .tech-row{
  margin-top: 18px;
  margin-bottom: 20px;
}

.blog-entry .project-links{
  margin-top: 0;
}

.blog-entry .project-link{
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f !important;
}

.blog-entry .project-link:hover{
  color: #000000 !important;
  text-decoration: underline;
}


/* about me: cleaner hierarchy, breathing room, subtle rhythm */
.about-straight-block p:first-child{
  font-size: 17px !important;
  color: #1d1d1f !important;
  line-height: 1.6 !important;
}

.resume-list-section{
  padding-top: 30px;
  border-top: 1px solid #ececee;
}

.resume-list-section:first-of-type{
  border-top: 1px solid #ececee;
}

#about .resume-list-section h3, #education .resume-list-section h3{
  font-size: clamp(26px, 3.2vw, 34px) !important;
  margin-bottom: 26px !important;
}

.resume-row{
  padding-bottom: 22px !important;
  border-bottom: 1px solid #f1f1f2 !important;
}

.resume-list .resume-row:last-child{
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.resume-row h4::after{
  display: none;
}

.resume-note{
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 10.5px !important;
  color: #9aa3b2 !important;
}

.certificate-simple-list{
  gap: 0;
}

.cert-row{
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f2;
}

.certificate-simple-list .cert-row:last-child{
  border-bottom: 0;
}

/* text-only underline treatment for about-me + creative-works mini-tabs,
   matching the projects/blog/experiences/creative works tab style
   (no background fill on hover/active — just darker text + underline).
   Uses ".portfolio-switch .mini-tab" (not just ".mini-tab") so this reliably
   out-specifies the older ".portfolio-switch button" pill-button rules. */
.about-me-btn, .portfolio-switch .mini-tab{
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #767d89 !important;
  text-decoration: none;
  padding: 6px 0 !important;
}

.about-me-btn:hover, .portfolio-switch .mini-tab:hover, .portfolio-switch .mini-tab.active{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #111111 !important;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* PDF prototype cards: re-enable a real hover lift, since an earlier rule
   above disables hover transforms for the whole gallery/pdf family. */
.pdf-item .pdf-cover{
  transition: transform 0.4s ease !important;
}

.pdf-item:hover{
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18) !important;
}

.pdf-item:hover .pdf-cover{
  transform: scale(1.06) !important;
}

/* Custom site-wide cursor */
html, body{
  cursor: url("assets/cursors/cursor-chiikawa.png") 16 16, url("assets/cursor-chiikawa.png") 16 16, auto;
}


/* ---- Mobile overrides ---- */
@media (max-width: 700px) {
  /* Remove the animated ASCII portrait in the hero on mobile - it doesn't
     add much on small screens and just eats up vertical space. */
  .ascii-panel{
    display: none !important;
  }

  .hero{
    grid-template-columns: 1fr;
    min-height: 0;
  }

  /* Remove the 3D flip carousel for projects entirely on mobile, and show
     the project cards in the same code-card-grid style as the creative
     code section instead. */
  #projectCarousel, #projects .carousel-hint{
    display: none !important;
  }

  #projectsMobileGrid{
    display: grid;
  }
}


/* project category switch: all / professional / personal */
.project-category-tabs{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: -2px 0 20px;
}

.project-category-tab{
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  padding: 4px 0 6px;
  color: #9a9fa8;
  font-family: var(--clean-heading-font, "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.2px;
  text-transform: lowercase;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.project-category-tab:hover, .project-category-tab.active{
  color: #111111;
  border-bottom-color: #111111;
}

#projectCarousel[data-active-project-filter="professional"] .carousel-card, #projectCarousel[data-active-project-filter="personal"] .carousel-card{
  transition: opacity 0.32s ease;
}

@media (max-width: 700px) {
  .project-category-tabs{
    justify-content: flex-start;
    gap: 22px;
    margin-bottom: 16px;
  }
}


/* Who am I photo layout: two photos on top, one larger photo underneath */
.who-am-i-top{
  grid-template-columns: minmax(390px, 1.1fr) minmax(320px, 0.9fr);
  gap: 42px;
  align-items: center;
}

.who-am-i-photos{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.who-am-i-photos .who-am-i-photo{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.who-am-i-photos .who-am-i-photo-wide{
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  object-position: center;
}

@media (max-width: 900px) {
  .who-am-i-top{
    grid-template-columns: 1fr;
  }

  .who-am-i-photos{
    max-width: 680px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .who-am-i-page{
    padding-left: 20px;
    padding-right: 20px;
  }

  .who-am-i-photos{
    gap: 8px;
  }

  .who-am-i-photos .who-am-i-photo{
    aspect-ratio: 3 / 4;
  }

  .who-am-i-photos .who-am-i-photo-wide{
    aspect-ratio: 4 / 3;
  }
}


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


/* Full-screen resume page, styled to match the About Me overlay. */
.resume-badge{
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.resume-page{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #ffffff;
  overflow-y: auto;
  padding: 40px min(80px, 6%) 60px;
}

.resume-page.active{
  display: block;
}

#resumeAsciiBg{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.resume-page-inner{
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  margin: 0 auto;
}

.resume-page-topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.resume-back-btn{
  margin-bottom: 0;
}

.resume-page-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.resume-page-action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #25282d;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.resume-page-action:hover{
  border-color: rgba(0, 0, 0, 0.35);
  background: #ffffff;
}

.resume-page-title{
  margin: 20px 0 6px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 300;
  letter-spacing: -2.5px;
  text-transform: lowercase;
}

.resume-page-note{
  margin: 0 auto 24px;
  text-align: center;
  color: #686d76;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.resume-pdf-shell{
  width: min(100%, 900px);
  height: min(78vh, 980px);
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  background: rgba(245, 245, 247, 0.96);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.10);
}

.resume-pdf-frame{
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

@media (max-width: 700px) {
  .resume-page{
    padding: 24px 14px 28px;
  }

  .resume-page-topbar{
    align-items: flex-start;
  }

  .resume-page-actions{
    gap: 6px;
  }

  .resume-page-action{
    padding: 6px 10px;
    font-size: 11px;
  }

  .resume-pdf-shell{
    height: 72vh;
    min-height: 500px;
    border-radius: 12px;
  }
}


/* Blog: separate Upcoming Projects entry */
.blog-entry + .blog-entry{
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid #ececee;
}

.blog-page-link{
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

/* Full-screen Upcoming Projects page */
.upcoming-projects-page{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-y: auto;
  padding: 40px min(80px, 6%) 70px;
  background: #ffffff;
}

.upcoming-projects-page.active{
  display: block;
}

#upcomingAsciiBg{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.upcoming-projects-page-inner{
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  margin: 0 auto;
}

.upcoming-projects-topbar{
  display: flex;
  align-items: center;
  min-height: 44px;
}

.upcoming-projects-back-btn{
  margin-bottom: 0;
}

.upcoming-projects-kicker{
  margin: 26px 0 4px;
  text-align: center;
  color: #7b8088;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: lowercase;
}

.upcoming-projects-title{
  margin: 0;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(44px, 7vw, 78px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -3px;
  text-transform: lowercase;
}

.upcoming-projects-note{
  max-width: 600px;
  margin: 16px auto 58px;
  text-align: center;
  color: #676c75;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1.65;
}

.upcoming-projects-list{
  width: min(100%, 900px);
  margin: 0 auto;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.upcoming-project-card{
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

.upcoming-project-number{
  padding-top: 4px;
  color: #9a9da4;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.upcoming-project-content h2{
  margin: 0 0 10px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 400;
  letter-spacing: -1.2px;
  text-transform: lowercase;
}

.upcoming-project-content p{
  max-width: 680px;
  margin: 0 0 14px;
  color: #515761;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.upcoming-project-meta{
  color: #8c9199;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  text-transform: lowercase;
}

.upcoming-projects-empty{
  padding: 44px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  color: #8c9199;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 700px) {
  .upcoming-projects-page{
    padding: 24px 16px 42px;
  }

  .upcoming-projects-note{
    margin-bottom: 38px;
  }

  .upcoming-project-card{
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 24px 0;
  }
}

/* Email contact keychain overlay */
.email-card-page{
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(13px) saturate(0.82);
  -webkit-backdrop-filter: blur(13px) saturate(0.82);
  overflow: auto;
}

.email-card-page.active{
  display: flex;
  animation: emailOverlayIn 0.28s ease-out both;
}

@keyframes emailOverlayIn {
  from{ opacity: 0; }
  to{ opacity: 1; }
}

.email-card-close{
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 3;
  border: 0;
  background: transparent;
  color: #343434;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 34px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
  opacity: 0.62;
  transition: opacity .15s ease, transform .15s ease;
}

.email-card-close:hover{
  opacity: 1;
  transform: scale(1.06);
}

.email-keychain-scene{
  position: relative;
  width: min(780px, 94vw);
  padding-top: 108px;
  transform-origin: 50% 0%;
  animation: emailCardSwing 4.8s ease-in-out infinite;
}

@keyframes emailCardSwing {
  0%, 100%{ transform: rotate(-1.5deg) translateX(-2px); }
  25%{ transform: rotate(1.2deg) translateX(2px); }
  50%{ transform: rotate(1.9deg) translateX(3px); }
  75%{ transform: rotate(-0.7deg) translateX(-1px); }
}

.email-keychain{
  position: absolute;
  left: 50%;
  top: 0;
  width: 150px;
  height: 238px;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
}

.keychain-svg{
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.kc-clip{
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.20));
}

.kc-charms{
  transform-box: view-box;
  transform-origin: 61px 68px;
  filter: drop-shadow(0 4px 5px rgba(0,0,0,.20));
  animation: kcCharmSwing 2.6s ease-in-out infinite;
}

@keyframes kcCharmSwing {
  0%, 100%{ transform: rotate(-4deg); }
  50%{ transform: rotate(5deg); }
}

.email-id-holder{
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 30px;
  border: 1px solid rgba(110,115,122,.46);
  border-radius: 34px;
  background: rgba(255,255,255,.42);
  box-shadow: 0 28px 55px rgba(40,40,40,.18), inset 0 0 0 1px rgba(255,255,255,.88);
}

.email-id-holder::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 11px;
  width: 68px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(150,153,158,.7);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.2), 0 1px 1px rgba(255,255,255,.8);
}

.email-id-card{
  min-height: 365px;
  border: 1px solid rgba(125,129,134,.30);
  border-radius: 22px;
  background:
    linear-gradient(rgba(242,242,242,.95), rgba(255,255,255,.98)),
    repeating-linear-gradient(to bottom, transparent 0 38px, rgba(145,145,145,.18) 39px 40px);
  box-shadow: 0 6px 16px rgba(0,0,0,.10), inset 0 0 0 1px rgba(255,255,255,.9);
  padding: 24px 28px 28px;
  color: #232323;
}

.email-id-topline{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  letter-spacing: .18em;
  color: #7b7d80;
}

.email-id-rule{
  height: 1px;
  margin: 18px 0 28px;
  background: rgba(112,115,120,.30);
}

.email-id-content{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  align-items: center;
}

.email-id-monogram{
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,.96), rgba(236,238,241,.72) 44%, rgba(205,210,218,.78) 100%);
  border: 1px solid rgba(110,115,122,.35);
  box-shadow: inset 0 0 20px rgba(255,255,255,.75), 0 8px 18px rgba(0,0,0,.08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 58px;
  font-weight: 200;
  letter-spacing: -4px;
  color: #4d5056;
}

.email-id-label{
  margin: 0 0 5px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: .22em;
  color: #9a9b9e;
}

.email-id-details h2{
  margin: 0 0 28px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(31px, 5vw, 52px);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -2.3px;
  text-transform: none;
}

.email-id-email{
  display: inline-block;
  color: #181818;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(18px, 3vw, 26px);
  text-decoration: none;
  border-bottom: 1px solid rgba(45,45,45,.38);
  padding-bottom: 4px;
}

.email-id-email:hover{
  border-bottom-color: #181818;
}

.email-id-note{
  margin: 24px 0 0;
  color: #87898c;
  font-size: 13px;
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  .email-keychain-scene, .kc-charms{
    animation: none !important;
  }
}

@media (max-width: 620px) {
  .email-card-page{
    padding: 24px 12px;
  }

  .email-card-close{
    top: 15px;
    right: 17px;
  }

  .email-keychain-scene{
    width: min(95vw, 520px);
    padding-top: 105px;
  }

  .email-keychain{
    transform: translateX(-50%) scale(.82);
    transform-origin: top center;
  }

  .email-id-holder{
    padding: 19px;
    border-radius: 26px;
  }

  .email-id-card{
    min-height: 0;
    padding: 21px 19px 25px;
    border-radius: 18px;
  }

  .email-id-topline{
    font-size: 11px;
  }

  .email-id-content{
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .email-id-monogram{
    width: 120px;
    font-size: 42px;
    border-radius: 22px;
  }

  .email-id-details h2{
    margin-bottom: 22px;
  }
}


/* 2026-09-19 contact-card refinement: one global contact button + lighter popup */
.contact-me-fixed{
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 1350;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255,255,255,.78);
  color: #22252a;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.contact-me-fixed:hover{
  background: rgba(255,255,255,.96);
  border-color: rgba(0,0,0,.32);
  transform: translateY(-1px);
}

/* The portfolio stays visible behind the contact card — just a slight white haze + blur. */
.email-card-page{
  background: rgba(255,255,255,.16) !important;
  backdrop-filter: blur(3px) saturate(.98) brightness(1.01) !important;
  -webkit-backdrop-filter: blur(3px) saturate(.98) brightness(1.01) !important;
}

.email-card-page.active .email-keychain-scene{
  animation:
    emailCardPop .58s cubic-bezier(.18,.9,.32,1.18) both,
    emailCardSwing 5.2s ease-in-out .58s infinite;
}

@keyframes emailCardPop {
  0%{
    opacity: 0;
    transform: translateY(85px) scale(.82) rotate(0deg);
  }
  70%{
    opacity: 1;
    transform: translateY(-8px) scale(1.025) rotate(0deg);
  }
  100%{
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes emailCardSwing {
  0%, 100%{ transform: rotate(-1.25deg) translateX(-2px); }
  25%{ transform: rotate(.8deg) translateX(1px); }
  50%{ transform: rotate(1.35deg) translateX(2px); }
  75%{ transform: rotate(-.55deg) translateX(-1px); }
}

.email-id-content{
  grid-template-columns: minmax(170px, 205px) 1fr;
  gap: 30px;
  align-items: center;
}

.email-id-photo-wrap{
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(105,108,114,.30);
  background: #f5f5f5;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.email-id-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}

.email-id-status{
  margin: 2px 0 14px;
  color: #9a9ca0;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.email-id-location{
  margin: 0 0 20px;
  color: #44484f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.email-id-email{
  margin-bottom: 18px;
}

.email-card-links{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.email-card-link{
  appearance: none;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(40,43,48,.17);
  border-radius: 11px;
  background: rgba(255,255,255,.66);
  color: #2f3237;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.email-card-link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.94);
  border-color: rgba(40,43,48,.30);
  text-decoration: none;
}

.email-card-link svg{
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
}

@media (max-width: 620px) {
  .contact-me-fixed{
    top: 15px;
    right: 16px;
    padding: 7px 11px;
    font-size: 11px;
  }

  .email-id-content{
    grid-template-columns: 112px 1fr;
    gap: 16px;
  }

  .email-id-photo-wrap{
    border-radius: 16px;
  }

  .email-card-links{
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .email-card-link{
    padding: 7px 8px;
    font-size: 10px;
  }

  .email-id-details h2{
    font-size: clamp(25px, 8vw, 36px);
  }

  .email-id-email{
    font-size: 14px;
  }
}


/* 2026-09-19 contact-card icon-only links refinement */
.email-id-location{
  margin: 4px 0 16px;
}

.email-id-email{
  display: inline-block;
  margin: 0 0 16px;
}

.email-card-links{
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.email-card-link{
  justify-content: center;
  gap: 0;
  min-height: 42px;
  padding: 10px;
}

.email-card-link svg{
  width: 18px;
  height: 18px;
}

@media (max-width: 620px) {
  .email-card-links{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .email-card-link{
    min-height: 38px;
    padding: 8px;
  }

  .email-card-link svg{
    width: 16px;
    height: 16px;
  }
}

/* Contact card: icon-only buttons with no surrounding boxes */
.email-card-link{
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 4px !important;
  min-height: auto !important;
  min-width: auto !important;
}

.email-card-link:hover{
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: translateY(-1px) scale(1.06);
}

.email-card-link:focus-visible{
  outline: 1px solid rgba(0,0,0,.45);
  outline-offset: 5px;
  border-radius: 50% !important;
}

.email-card-link svg{
  width: 22px !important;
  height: 22px !important;
}

/* Contact card: larger icons grouped closer together */
.email-card-links{
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  justify-content: flex-start;
  gap: 12px !important;
  margin-top: 16px;
}

.email-card-link{
  flex: 0 0 auto;
  padding: 2px !important;
}

.email-card-link svg{
  width: 30px !important;
  height: 30px !important;
}

@media (max-width: 620px) {
  .email-card-links{
    gap: 10px !important;
  }

  .email-card-link svg{
    width: 27px !important;
    height: 27px !important;
  }
}

/* Hero readability: larger intro text, about link, and quote */
.hero .bio-line{
  font-size: 19px !important;
  line-height: 1.5 !important;
  margin-bottom: 10px !important;
}

.hero .about-me-btn{
  font-size: 16px !important;
  line-height: 1.35 !important;
  padding: 7px 0 !important;
  margin-bottom: 14px !important;
}

.hero .site-quote{
  max-width: 760px;
  margin-top: 8px;
}

.hero .site-quote p{
  font-size: 18px !important;
  line-height: 1.6 !important;
}

.hero .site-quote cite{
  font-size: 14px !important;
  line-height: 1.45 !important;
  margin-top: 10px !important;
}

@media (max-width: 620px) {
  .hero .bio-line{
    font-size: 16px !important;
  }

  .hero .about-me-btn{
    font-size: 15px !important;
  }

  .hero .site-quote p{
    font-size: 16px !important;
  }

  .hero .site-quote cite{
    font-size: 13px !important;
  }
}


.top-controls{
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 1350;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Match the existing About Me text-link treatment. */
.contact-me-fixed{
  position: static !important;
  top: auto !important;
  right: auto !important;
  z-index: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 6px 0 !important;
  background: transparent !important;
  color: #767d89 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
  transition: color .15s ease !important;
  text-decoration: none;
  font-size: 16px !important;
  font-weight: 500;
}

.contact-me-fixed:hover{
  background: transparent !important;
  border: 0 !important;
  color: #111111 !important;
  box-shadow: none !important;
  transform: none !important;
  text-decoration: underline;
  text-underline-offset: 6px;
}


.contact-me-fixed:focus-visible{
  outline: 1px solid currentColor;
  outline-offset: 5px;
}


@media (max-width: 620px) {
  .top-controls{
    top: 16px;
    right: 18px;
    gap: 12px;
  }

  .contact-me-fixed{
    font-size: 14px !important;
  }

  

  
}


/* Secondary / supporting copy stays grey for hierarchy. */


/* Keep hover/active labels light too — never flip text back to black. */


/* Light surfaces that contain text also become dark so white text stays readable. */


/* 2026-09-19: dedicated project README pages */
.project-readme-page{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1300;
  overflow-y: auto;
  background: #ffffff;
  color: #111111;
  padding: 34px min(7vw, 86px) 84px;
}

.project-readme-page.active{
  display: block;
}

.project-readme-shell{
  width: min(100%, 1040px);
  margin: 0 auto;
}

.project-readme-topbar{
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 42px;
}

.project-readme-back{
  margin: 0;
  color: #6f747d;
}

.project-readme-demo{
  color: #5f646c;
  text-decoration: none;
  font-size: 13px;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.project-readme-demo:hover{
  color: #111111;
  border-bottom-color: currentColor;
}

.project-readme-header{
  max-width: 850px;
  margin-bottom: 34px;
}

.project-readme-eyebrow, .project-readme-status, .project-readme-section-kicker{
  font-family: "Courier New", Courier, monospace;
  color: #747982;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: lowercase;
}

.project-readme-header h1{
  font-family: var(--clean-heading-font, "Helvetica Neue", Helvetica, Arial, sans-serif) !important;
  font-size: clamp(48px, 8vw, 92px) !important;
  line-height: .92 !important;
  font-weight: 300 !important;
  letter-spacing: -4px !important;
  text-transform: none;
  margin: 10px 0 14px;
}

.project-readme-gallery{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 52px;
}

.project-readme-gallery figure{
  margin: 0;
  min-height: 190px;
  background: #f4f4f4;
  overflow: hidden;
}

.project-readme-gallery figure:first-child{
  grid-column: span 2;
  grid-row: span 2;
}

.project-readme-gallery img{
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.project-readme-content{
  width: min(100%, 790px);
  margin: 0 auto;
  padding-bottom: 40px;
}

.project-readme-content h2{
  font-family: var(--clean-heading-font, "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-weight: 300;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.05;
  letter-spacing: -1.8px;
  margin: 54px 0 18px;
}

.project-readme-content h3{
  font-family: var(--clean-heading-font, "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -.6px;
  margin: 30px 0 10px;
}

.project-readme-content p, .project-readme-content li{
  font-size: 14px;
  line-height: 1.75;
  color: #383c43;
}

.project-readme-content p{
  margin-bottom: 17px;
}

.project-readme-content ul, .project-readme-content ol{
  margin: 8px 0 22px 22px;
  display: grid;
  gap: 7px;
}

.project-readme-content a{
  color: #111111;
  text-underline-offset: 4px;
}

.project-readme-content code{
  font-family: "Courier New", Courier, monospace;
  font-size: .92em;
  background: #f1f1f1;
  padding: 2px 5px;
}

.project-readme-content pre{
  overflow-x: auto;
  background: #f4f4f4;
  border: 1px solid #e2e2e2;
  padding: 15px;
  margin: 16px 0 24px;
  font-size: 12px;
  line-height: 1.55;
}

.project-readme-subproject{
  margin-top: 70px;
  padding-top: 34px;
  border-top: 1px solid #d6d6d6;
}

.project-readme-subproject > h2{
  margin-top: 8px;
}

/* README links should read like portfolio navigation rather than external GitHub pills. */
a[data-project-readme]{
  cursor: pointer;
}


@media (max-width: 720px) {
  .project-readme-page{
    padding: 24px 18px 64px;
  }

  .project-readme-topbar{
    margin-bottom: 28px;
  }

  .project-readme-header h1{
    font-size: clamp(42px, 14vw, 66px) !important;
    letter-spacing: -2.5px !important;
  }

  .project-readme-gallery{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 38px;
  }

  .project-readme-gallery figure:first-child{
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .project-readme-gallery figure, .project-readme-gallery img{
    min-height: 145px;
  }

  .project-readme-content h2{
    margin-top: 40px;
  }
}

/* 2026-09-20: One Summer Night embedded demo videos */
.project-readme-video-section{
  margin: -12px 0 58px;
}

.project-readme-video-heading{
  margin-bottom: 18px;
}

.project-readme-video-heading h2{
  font-family: var(--clean-heading-font, "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -1.6px;
  margin: 7px 0 0;
}

.project-readme-videos{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-readme-video-card{
  margin: 0;
}

.project-readme-video-card video{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0c0c0d;
  border: 1px solid #dddddf;
}

.project-readme-video-card figcaption{
  margin-top: 8px;
  color: #777c84;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: lowercase;
}


@media (max-width: 720px) {
  .project-readme-video-section{
    margin-bottom: 44px;
  }

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


/* Keep the thin separators visible without making them bright. */


/* Text-style links/buttons that use a dark surface keep that surface instead of
   flashing white; only their text changes to pink. */


/* Clip the actual clickable button AND its image to the same curved shape.
   clip-path makes the rounding robust even against older overflow rules. */


/* Who am I: larger, easier-to-read copy beside the photo collage */
.who-am-i-intro{
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.who-am-i-intro p{
  font-size: clamp(20px, 2.05vw, 27px);
  line-height: 1.58;
  margin-bottom: 28px;
}

.who-am-i-body p{
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.7;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .who-am-i-intro p{
    font-size: clamp(18px, 4vw, 24px);
  }
}
