* {
  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-photo {
  width: 100%;
  border-radius: 4px;
}

.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,
.uxui-lock-screen p {
  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,
.uxui-password-form button {
  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,
.uxui-password-form button: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-lock-screen {
  border: 1px solid #000000;
  padding: 52px 20px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.uxui-lock-icon-large {
  font-size: 32px;
}

.uxui-password-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.uxui-password-form input {
  border: 1px solid #000000;
  padding: 9px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-family: inherit;
}

.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,
.uxui-lock-screen h3 {
  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,
.uxui-lock-screen p {
  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,
.uxui-lock-screen h3,
.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,
.uxui-lock-screen,
.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,
.uxui-password-form button {
  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,
.uxui-password-form button: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,
.uxui-lock-screen,
.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,
.uxui-password-form button {
  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,
.uxui-password-form button: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,
.uxui-lock-screen,
.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/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;
  }
}
