/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --yellow: #f5a623;
  --purple: #333333;
  --light-purple: #555555;
  --dark-purple: #333333;
  --blue-light: #f0ece4;
  --white: #ffffff;
  --black: #333333;
  --bg: #f9f6f0;
  --accent: #E8962A;
  --font-main: 'Arial Black', 'Impact', sans-serif;
  --font-body: 'Arial', sans-serif;

  /* PASSPORT THEME — original warm orange + gray */
  --passport-navy: #333333;
  --passport-gold: #E8962A;
  --passport-cream: #f9f6f0;
  --passport-stamp-red: #E8962A;
  --passport-green: #E8962A;
  --passport-line: rgba(51, 51, 51, 0.05);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--black);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

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

/* =====================
   SIDE SCROLL TEXT
   ===================== */
.side-scroll-left {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--purple);
  background: transparent;
  z-index: 100;
  white-space: nowrap;
  padding: 8px 4px;
  pointer-events: none;
  animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
  0%   { transform: translateY(-50%) rotate(180deg) translateX(0); }
  100% { transform: translateY(-50%) rotate(180deg) translateX(60px); }
}

/* =====================
   HEADER (new)
   ===================== */
.header {
  background: var(--bg);
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #f0ece4;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 12px rgba(51,51,51,0.06);
}

.header-logo {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 900;
  color: #E8962A;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-logo-sub {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(232, 150, 42, 0.55);
  text-transform: uppercase;
  font-family: 'Courier New', monospace;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #555555;
  letter-spacing: 0.5px;
  transition: opacity 0.15s;
}

.header-nav a:hover {
  opacity: 0.5;
}

.header-nav a.nav-current {
  color: #E8962A;
  font-weight: 900;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888888;
}

.header-dot {
  color: #E8962A;
  font-size: 16px;
  font-weight: bold;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================
   HERO (new)
   ===================== */
.hero-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88vh;
  background: var(--bg);
  padding: 60px 48px 60px 48px;
  gap: 40px;
  align-items: center;
}

.hero-in-widget {
  min-height: unset;
  background: var(--bg);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(51,51,51,0.06) 27px,
      rgba(51,51,51,0.06) 28px
    );
  padding: 40px 36px;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 2px 20px rgba(51,51,51,0.10);
  border: 1px solid rgba(51,51,51,0.08);
  overflow: visible;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #888;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 900;
  color: var(--black);
  line-height: 0.92;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.hero-name-zh {
  font-family: 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--black);
  letter-spacing: 8px;
  margin-top: -8px;
}

.hero-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  border-left: 3px solid var(--passport-navy);
  padding-left: 14px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  font-size: 12px;
  font-weight: 700;
  background: #E8962A;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

.hero-quote-new {
  margin-top: 8px;
}

.hero-quote-new p {
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  font-style: italic;
  color: var(--black);
  line-height: 1.6;
  font-weight: 600;
}

.hero-photo-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-frame {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 3/4;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  border: 3px solid #E8962A;
  box-shadow: 5px 5px 0 #E8962A;
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-mail-btn {
  position: absolute;
  bottom: 16px;
  right: 10px;
  width: 56px;
  height: 56px;
  background: var(--passport-navy);
  color: var(--passport-gold);
  border-radius: 50%;
  border: 3px solid var(--passport-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hero-mail-btn::before {
  content: "✉";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 34px;
  line-height: 1;
  color: currentColor;
}

.hero-mail-btn:hover {
  background: var(--passport-gold);
  color: var(--passport-navy);
  transform: scale(1.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

.wave-left {
  border-right: 2px solid var(--purple);
  padding: 10px;
  display: flex;
  align-items: center;
}

.wave-left svg {
  width: 100%;
  height: 80px;
}

.wave-right {
  display: flex;
  align-items: center;
  padding: 16px 20px;
}

.tagline {
  font-size: clamp(11px, 2vw, 14px);
  font-weight: bold;
  color: var(--purple);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

.tagline::before {
  content: '';
}

/* =====================
   LOCATION TABS
   ===================== */
.location-tabs {
  display: none;
}

.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 12px;
  cursor: pointer;
  background: transparent;
  border-right: none;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #888;
  text-transform: uppercase;
}

.tab:last-child {
  border-right: none;
}

.tab.active {
  color: var(--black);
  border-bottom: 3px solid var(--accent);
  background: transparent;
}

.tab:hover:not(.active) {
  color: var(--black);
  background: transparent;
}

.tab-thumb {
  width: 30px;
  height: 22px;
  border: 1px solid var(--purple);
  flex-shrink: 0;
}

.tokyo-thumb {
  background: linear-gradient(180deg, #c8d4f0 50%, #e8f040 100%);
}
.matsuyama-thumb {
  background: linear-gradient(180deg, #b0e0b0 50%, #60aa60 100%);
}
.floating-thumb {
  background: linear-gradient(180deg, #f0c8c8 50%, #cc8888 100%);
}

/* =====================
   MANGA BANNER
   ===================== */
.manga-banner {
  background: var(--light-purple);
  border-bottom: 3px solid var(--purple);
  overflow: hidden;
  position: relative;
  min-height: 160px;
}

.manga-inner {
  position: relative;
  padding: 20px 30px;
  height: 100%;
}

.manga-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 3px;
}

.shape-blue-l {
  left: 0;
  top: 0;
  width: 35%;
  height: 100%;
  background: var(--blue-light);
  opacity: 0.7;
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
}

.shape-blue-r {
  right: 0;
  top: 0;
  width: 30%;
  height: 100%;
  background: var(--blue-light);
  opacity: 0.6;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.shape-hand {
  right: 5%;
  bottom: 0;
  width: 18%;
  height: 80%;
  background: linear-gradient(180deg, var(--blue-light) 0%, #e8e0d0 100%);
  opacity: 0.8;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 100%, 0 100%, 0 30%);
}

.manga-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  height: 100%;
}

.manga-sub-jp {
  font-size: 10px;
  color: var(--dark-purple);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.manga-title {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
}

.between {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--purple);
  text-shadow: 3px 3px 0 var(--dark-purple);
  letter-spacing: 2px;
}

.two {
  font-family: 'Arial Black', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--black);
  letter-spacing: 1px;
  margin-left: 20px;
}

.normals {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--purple);
  text-shadow: 3px 3px 0 var(--dark-purple);
  letter-spacing: 2px;
}

.manga-title-jp-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.manga-jp-box {
  border: 2px solid var(--purple);
  background: var(--white);
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--dark-purple);
}

.manga-road-sign {
  background: var(--purple);
  color: var(--white);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 3px;
  padding: 4px 12px;
  border: 2px solid var(--dark-purple);
}

/* =====================
   SECTION HEADER (shared)
   ===================== */
.section-tokyo,
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px 16px;
  border-bottom: 2px solid #f0ece4;
  background: var(--bg);
  border-radius: 16px 16px 0 0;
}

.section-label-bar {
  background: var(--passport-navy);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 6px 6px;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
  color: var(--passport-gold);
  text-transform: uppercase;
  height: auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

.section-title {
  font-family: var(--font-main);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 900;
  color: #333333;
  letter-spacing: 2px;
  text-transform: uppercase;
  flex: 1;
}

.scroll-up-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--purple);
  cursor: pointer;
  transform: rotate(270deg);
  line-height: 1;
  padding: 4px 10px;
  transition: transform 0.2s;
}

.scroll-up-btn:hover {
  transform: rotate(270deg) scale(1.2);
  color: var(--dark-purple);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 600px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .wave-section {
    grid-template-columns: 1fr;
  }
  .location-tabs {
    flex-direction: column;
  }
  .tab {
    border-right: none;
    border-bottom: 2px solid var(--purple);
  }
  .manga-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-mountain {
    height: 200px;
  }
  .grid-pattern {
    height: 50px;
  }
}

/* =====================
   PROFILE PLACEHOLDER
   ===================== */
.hero-profile {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--light-purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
  padding: 0;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  min-height: 260px;
}

.profile-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
}

.profile-avatar svg {
  width: 100px;
  height: 120px;
  filter: drop-shadow(3px 3px 0 var(--dark-purple));
}

.profile-hint {
  font-size: 11px;
  color: var(--dark-purple);
  letter-spacing: 1px;
  border: 1px dashed var(--purple);
  padding: 4px 10px;
}

/* QUOTE BLOCK (replaces city image) */
.hero-quote {
  flex: 1;
  background: var(--purple) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.quote-block {
  padding: 16px 20px 40px;
}

.quote-text {
  font-size: clamp(30px, 4.8vw, 40px);
  color: var(--yellow);
  line-height: 1.4;
  font-style: italic;
  letter-spacing: 0.5px;
  padding-left: 1.2em;
  text-indent: -1.2em;
}

.quote-open {
  display: block;
  margin-bottom: 0.1em;
}

.quote-close {
  display: block;
  margin-top: 0.1em;
  text-align: right;
  padding-right: 20px;
}

/* TAB THUMBS */
.thumb-resume   { background: linear-gradient(135deg, var(--yellow) 40%, var(--purple) 100%); }
.thumb-projects { background: linear-gradient(135deg, #c8f0e8 40%, #309878 100%); }
.thumb-courses { background: linear-gradient(135deg, var(--blue-light) 40%, var(--dark-purple) 100%); }
.thumb-works   { background: linear-gradient(135deg, #f0c8c8 40%, #cc6666 100%); }
.thumb-advisor { background: linear-gradient(135deg, #d4f0d4 40%, #40a060 100%); }

/* =====================
   ADVISOR GRID
   ===================== */
.advisor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  max-width: 1120px;
  margin: 0 auto;
  justify-content: center;
  gap: 20px;
}
.advisor-grid.advisor-single {
  grid-template-columns: minmax(260px, 480px);
  justify-content: center;
}

.advisor-card {
  background: var(--blue-light);
  border: none;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.advisor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.advisor-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 88px;
  background: var(--light-purple);
  border: 2px solid var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.advisor-avatar.avatar-alt    { background: var(--blue-light); }
.advisor-avatar.avatar-yellow { background: #f0e8a0; border-color: #a09828; }

.advisor-avatar svg {
  width: 60px;
  height: 72px;
}

.advisor-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.advisor-role-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  background: var(--accent);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 999px;
  align-self: flex-start;
}

.advisor-role-tag.tag-industry { background: var(--dark-purple); }
.advisor-role-tag.tag-research  { background: #a09828; color: var(--white); }

.advisor-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--dark-purple);
  letter-spacing: 1px;
  margin-top: 2px;
}

.advisor-title {
  font-size: 11px;
  color: var(--purple);
  letter-spacing: 0.5px;
  border-bottom: 1px solid #ddd8cf;
  padding-bottom: 6px;
}

.advisor-desc {
  font-size: 12px;
  color: #444;
  line-height: 1.6;
}

.advisor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--dark-purple);
  background: var(--white);
  color: var(--dark-purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.advisor-btn:hover {
  background: var(--dark-purple);
  color: var(--white);
  transform: translateY(-1px);
}

.advisor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.advisor-tag {
  font-size: 10px;
  font-weight: bold;
  color: var(--dark-purple);
  background: var(--white);
  border: 1px solid #ddd8cf;
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0.5px;
}

/* =====================
   CONTENT SECTIONS
   ===================== */
.widget-panel {
  background: #eeebe3;
  background-image:
    radial-gradient(circle, rgba(51,51,51,0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  padding: 32px 48px 48px;
  min-height: 60vh;
}

.content-section {
  background: var(--bg);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(51,51,51,0.12);
  display: none;
  overflow: hidden;
  border: 1px solid rgba(51,51,51,0.08);
}

.content-section.page-active {
  display: block;
  animation: pageIn 0.35s ease;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-up-btn { display: none; }

.content-section.section-alt {
  background: var(--white);
}

.section-body {
  padding: 24px 20px 36px;
  max-width: 960px;
  margin: 0 auto;
}

.section-intro {
  font-size: 14px;
  color: var(--dark-purple);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--light-purple);
  letter-spacing: 0.5px;
  line-height: 1.7;
}

/* =====================
   RESUME BLOCKS
   ===================== */
.resume-block {
  margin-bottom: 32px;
}

.block-title-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(27,42,74,0.15);
}

.block-num {
  font-size: 18px;
  color: var(--purple);
  font-weight: 900;
}

.block-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--passport-navy);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.block-collapse-btn {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(27,42,74,0.35);
  background: #f3efe8;
  color: var(--passport-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.block-collapse-btn::before {
  content: '\2212';
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  transform: translateY(-1px);
}

.block-collapse-btn.is-collapsed::before {
  content: '+';
  transform: translateY(0);
}

.block-collapse-btn:hover {
  background: #e9e3d9;
}

.resume-collapsible.is-collapsed {
  display: none;
}

/* INFO GRID */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.info-item {
  background: #f0ece4;
  border: none;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-label {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
  color: var(--purple);
  text-transform: uppercase;
}

.info-val {
  font-size: 14px;
  color: var(--black);
}

/* TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 16px;
  border-left: 2px solid #ddd8cf;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  position: relative;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 2px solid #ddd8cf;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  margin-left: -22px;
}

.timeline-dot.accent {
  background: var(--purple);
}

.timeline-content {
  flex: 1;
  background: #f0ece4;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
}

.timeline-year {
  font-size: 13px;
  font-weight: 900;
  color: var(--dark-purple);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--purple);
  margin-bottom: 2px;
  letter-spacing: 0.5px;
  display: inline;
}

.timeline-desc {
  font-size: 12px;
  color: var(--purple);
  line-height: 1.5;
  display: inline;
}

.timeline-title::after {
  content: '　';
}

.timeline-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  color: var(--dark-purple);
  background: var(--light-purple);
  border: 1px solid var(--purple);
  padding: 1px 7px;
  margin: 4px 3px 0 0;
  letter-spacing: 0.3px;
}

.research-list {
  margin: 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #222;
  font-size: 15px;
  line-height: 1.75;
}

.research-list li {
  padding-left: 4px;
}

.research-list sup {
  font-size: 0.7em;
  vertical-align: super;
}

.research-author {
  color: #e52320;
  font-weight: 700;
}

.research-year {
  margin-left: 2px;
  margin-right: 3px;
  font-weight: 400;
}

.research-text {
  color: #222;
}

.research-list em {
  font-style: italic;
}

/* PORTFOLIO GRID */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-width: 900px;
  margin: 0 auto;
}

.portfolio-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  padding: 0;
  transition: transform 0.18s ease;
  box-shadow: none;
}

.portfolio-card:hover {
  transform: translateY(-1px);
}

.portfolio-card.hidden {
  display: none;
}

.portfolio-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 3px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.55), transparent 32%),
    linear-gradient(160deg, #d4ccbf 0%, #c5bbab 45%, #ab9a88 100%);
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img img {
  transform: scale(1.04);
}

.portfolio-card:hover .portfolio-open-btn,
.portfolio-card:hover .portfolio-media-dots,
.portfolio-card:hover .portfolio-media-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-img.is-placeholder img {
  display: none;
}

.portfolio-media-badge,
.portfolio-media-caption {
  display: none;
}

.portfolio-media-dots {
  position: absolute;
  left: 50%;
  top: 12px;
  z-index: 2;
  display: flex;
  gap: 4px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  backdrop-filter: none;
  transform: translate(-50%, -4px);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.portfolio-media-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.portfolio-media-dot.is-active {
  width: 5px;
  background: #ffffff;
}

.portfolio-open-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  border: 0;
  border-radius: 12px;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.portfolio-open-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.portfolio-open-icon {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto;
  border: 2px solid #fff;
  border-radius: 3px;
}

.portfolio-open-icon::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.portfolio-img.has-multiple .portfolio-open-btn {
  opacity: 1;
  transform: translateY(0);
}

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

.portfolio-media-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 42%;
  padding: 34px 12px 12px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.portfolio-media-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.portfolio-media-meta {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
}

.portfolio-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 16px;
  color: rgba(255, 250, 244, 0.88);
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.34), transparent 24%),
    radial-gradient(circle at 78% 26%, rgba(255,255,255,0.2), transparent 18%),
    linear-gradient(180deg, rgba(23, 18, 14, 0.02) 0%, rgba(23, 18, 14, 0.18) 70%, rgba(23, 18, 14, 0.32) 100%),
    linear-gradient(145deg, #d6cdc0 0%, #b8ab9b 48%, #928171 100%);
}

.portfolio-placeholder-kicker {
  display: none;
}

.portfolio-placeholder-title {
  display: none;
}

.portfolio-info {
  display: none;
}

.portfolio-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.14em;
  color: #8f857c;
  margin-bottom: 6px;
}

.portfolio-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--dark-purple);
  margin-bottom: 6px;
  line-height: 1.4;
}

.portfolio-desc {
  font-size: 12px;
  color: #7c6d64;
  font-weight: 700;
}

.portfolio-lightbox-open {
  overflow: hidden;
}

.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.portfolio-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 13, 0.76);
  backdrop-filter: blur(10px);
}

.portfolio-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: stretch;
  width: min(92vw, 980px);
  margin: 3vh auto;
  padding: 22px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.28);
  max-height: 94vh;
}

.portfolio-lightbox-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  min-height: 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.5), transparent 28%),
    linear-gradient(155deg, #d8cfc2 0%, #c7b7a0 48%, #9b8877 100%);
}

.portfolio-lightbox-stage img,
.portfolio-lightbox-placeholder {
  width: 100%;
  height: 100%;
}

.portfolio-lightbox-stage img {
  object-fit: contain;
  object-position: center center;
  display: block;
}

.portfolio-lightbox-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fffaf4;
  background: linear-gradient(180deg, rgba(27, 20, 16, 0.08) 0%, rgba(27, 20, 16, 0.72) 100%);
}

.portfolio-lightbox-placeholder span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.78;
}

.portfolio-lightbox-placeholder strong {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.1;
}

.portfolio-lightbox-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 6px 2px 0;
}

.portfolio-lightbox-cat {
  display: inline-block;
  margin-bottom: 8px;
  color: #8f857c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.portfolio-lightbox-title {
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.2;
  color: #3c332d;
}

.portfolio-lightbox-desc {
  margin-top: 8px;
  color: #6f6258;
  font-size: 15px;
  font-weight: 700;
}

.portfolio-lightbox-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.portfolio-lightbox-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(60, 51, 45, 0.22);
  cursor: pointer;
}

.portfolio-lightbox-dot.is-active {
  width: 28px;
  background: #f0a22a;
}

.portfolio-lightbox-close,
.portfolio-lightbox-nav {
  position: absolute;
  z-index: 3;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(29, 23, 19, 0.56);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.portfolio-lightbox-nav[hidden],
.portfolio-lightbox-dots[hidden],
.portfolio-media-dots[hidden] {
  display: none !important;
}

.portfolio-lightbox-close {
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
}

.portfolio-lightbox-nav {
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 999px;
  font-size: 34px;
}

.portfolio-lightbox-prev {
  left: 16px;
}

.portfolio-lightbox-next {
  right: 316px;
}

@media (max-width: 720px) {
  .portfolio-open-btn {
    opacity: 0;
  }

  .portfolio-media-dots {
    transform: translate(-50%, -4px);
  }

  .portfolio-grid {
    gap: 4px;
  }

  .portfolio-media-overlay {
    display: none;
  }

  .portfolio-lightbox-dialog {
    width: min(94vw, 560px);
    grid-template-columns: minmax(0, 1fr);
    margin: 2vh auto;
    padding: 16px;
    border-radius: 22px;
    max-height: none;
  }

  .portfolio-lightbox-meta {
    padding: 0 4px 2px;
  }

  .portfolio-lightbox-close {
    top: 10px;
    right: 10px;
  }

  .portfolio-lightbox-nav {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    font-size: 28px;
  }

  .portfolio-lightbox-prev {
    left: 10px;
  }

  .portfolio-lightbox-next {
    right: 10px;
  }
}

/* SKILLS GRID */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: #f0ece4;
  color: #555555;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  cursor: default;
  transition: background 0.15s;
}

.skill-tag:hover {
  background: #e8e4dc;
}

.skill-tag.skill-a {
  background: #E8962A;
  color: #ffffff;
}

.skill-tag.skill-b {
  background: #f0ece4;
  color: #555555;
}

.skill-tag.skill-teach {
  background: #f0ece4;
  color: #555555;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 14px;
}

.skill-tag-name {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
}

.skill-tag.skill-teach-accent {
  background: #E8962A;
  color: #ffffff;
}

.skill-tag.skill-teach-accent .skill-tag-sub {
  color: rgba(255,255,255,0.8);
}
.skill-tag-sub {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: #888888;
}

.license-group {
  margin-bottom: 0;
  padding-bottom: 0;
}

.license-group:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.license-group-label {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
  color: var(--passport-navy);
  text-transform: uppercase;
  margin-top: 24px;
  margin-bottom: 12px;
  padding-left: 8px;
  border-left: 3px solid var(--passport-navy);
  opacity: 0.75;
}

.license-group:first-child .license-group-label {
  margin-top: 0;
}

/* =====================
   AWARDS LIST
   ===================== */
.awards-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.award-filter-btn {
  background: var(--white);
  border: 1px solid var(--light-purple);
  color: var(--purple);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.award-filter-btn.active,
.award-filter-btn:hover {
  background: var(--accent);
  color: var(--dark-purple);
}

.award-cat-tag {
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 3px 8px;
  white-space: nowrap;
  align-self: flex-start;
  flex-shrink: 0;
  margin-top: 2px;
}

.tag-graphic     { background: var(--white); color: var(--accent); border: 1px solid var(--accent); }
.tag-product     { background: var(--white); color: var(--accent); border: 1px solid var(--accent); }
.tag-interactive { background: var(--white); color: var(--accent); border: 1px solid var(--accent); }
.tag-painting    { background: var(--white); color: var(--accent); border: 1px solid var(--accent); }

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.award-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f0ece4;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: inset 4px 0 0 #E8962A;
}

.award-item:hover {
  transform: translateY(-2px);
  box-shadow: inset 4px 0 0 var(--accent), 0 4px 12px rgba(0,0,0,0.08);
}

.award-item.award-gold  { box-shadow: inset 4px 0 0 var(--accent); }
.award-item.award-silver { box-shadow: inset 4px 0 0 var(--accent); }
.award-item.award-special { box-shadow: inset 4px 0 0 var(--accent); }

.award-rank {
  font-size: 11px;
  font-weight: bold;
  color: var(--dark-purple);
  white-space: nowrap;
  padding-top: 2px;
  flex-shrink: 0;
}

.award-item.award-gold  .award-rank { color: #a07800; }
.award-item.award-silver .award-rank { color: #506080; }
.award-item.award-special .award-rank { color: #cc2222; }

.award-content {
  flex: 1;
}

.award-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--dark-purple);
  margin-bottom: 2px;
}

.award-desc {
  font-size: 11px;
  color: #666;
  line-height: 1.5;
}

/* =====================
   COURSE GRID
   ===================== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.course-card {
  background: #f0ece4;
  border: none;
  border-radius: 14px;
  padding: 16px;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
}

a.course-card-link {
  display: block;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.course-card.featured {
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #E8962A 70%, #E8962A 100%);
}

.course-card.featured .course-name,
.course-card.featured .course-desc,
.course-card.featured .course-year {
  color: #ffffff;
}

.course-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  background: var(--accent);
  color: var(--white);
  padding: 4px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
}


.course-code {
  font-size: 10px;
  color: var(--dark-purple);
  letter-spacing: 2px;
  font-weight: bold;
  margin-bottom: 4px;
}

.course-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--dark-purple);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.course-desc {
  font-size: 12px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 8px;
}

.course-year {
  font-size: 11px;
  color: var(--purple);
  letter-spacing: 0.5px;
}

.course-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--dark-purple);
  border-top: 1px solid var(--light-purple);
  padding-top: 8px;
  margin-bottom: 10px;
}

.course-dl-btn {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--white);
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 5px 16px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  margin-top: 10px;
}

.course-dl-btn:hover {
  background: var(--dark-purple);
  color: var(--white);
}

/* =====================
   COURSE DETAIL: dl-card (shared across cg.html / prepress-b.html)
   ===================== */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.dl-card {
  background: #f0ece4;
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.dl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.dl-card-icon { font-size: 22px; }

.dl-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-purple);
  line-height: 1.4;
}

.dl-card-meta {
  font-size: 11px;
  color: var(--light-purple);
}

.dl-card-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.dl-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 96px;
  height: 32px;
  padding: 0 6px;
  border-radius: 999px;
  align-self: flex-start;
  transition: opacity 0.15s;
  text-decoration: none;
}

.dl-card-btn:hover { opacity: 0.85; }

.dl-card-btn-video {
  background: #cc0000;
}

/* =====================
   WORKS GRID
   ===================== */
.works-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--light-purple);
  color: var(--purple);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-transform: uppercase;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: var(--dark-purple);
  border-color: var(--accent);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-width: 900px;
  margin: 0 auto;
}

.work-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  transition: transform 0.18s ease;
  overflow: hidden;
}

.work-card .course-dl-btn {
  display: none;
}

.work-card:hover {
  transform: translateY(-1px);
}

.work-card.hidden {
  display: none;
}

.work-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 3px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.55), transparent 32%),
    linear-gradient(160deg, #d4ccbf 0%, #c5bbab 45%, #ab9a88 100%);
}

.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.work-card:hover .work-img img {
  transform: scale(1.04);
}

.work-card:hover .work-open-btn,
.work-card:hover .work-media-dots,
.work-card:hover .work-media-overlay {
  opacity: 1;
  transform: translateY(0);
}

.work-img.is-placeholder img {
  display: none;
}

.work-media-dots {
  position: absolute;
  left: 50%;
  top: 12px;
  z-index: 2;
  display: flex;
  gap: 4px;
  transform: translate(-50%, -4px);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.work-media-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.work-media-dot.is-active {
  background: #ffffff;
}

.work-open-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.work-open-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.work-open-icon {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto;
  border: 2px solid #fff;
  border-radius: 3px;
}

.work-open-icon::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.work-img.has-multiple .work-open-btn {
  opacity: 1;
  transform: translateY(0);
}

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

.work-media-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 42%;
  padding: 34px 12px 12px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.work-media-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.work-media-meta {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
}

.work-info {
  display: none;
}

.work-cat {
  display: none;
}

.work-title {
  display: none;
}

.work-student {
  display: none;
}

.work-lightbox-open {
  overflow: hidden;
}

.work-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2100;
}

.work-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 13, 0.76);
  backdrop-filter: blur(10px);
}

.work-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: stretch;
  width: min(92vw, 980px);
  margin: 3vh auto;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.28);
  max-height: 94vh;
}

.work-lightbox-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.5), transparent 28%),
    linear-gradient(155deg, #d8cfc2 0%, #c7b7a0 48%, #9b8877 100%);
}

.work-lightbox-stage img,
.work-lightbox-placeholder {
  width: 100%;
  height: 100%;
}

.work-lightbox-stage img {
  object-fit: cover;
  display: block;
}

.work-lightbox-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fffaf4;
  background: linear-gradient(180deg, rgba(27, 20, 16, 0.08) 0%, rgba(27, 20, 16, 0.72) 100%);
}

.work-lightbox-placeholder span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.78;
}

.work-lightbox-placeholder strong {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.1;
}

.work-lightbox-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 6px 2px 0;
}

.work-lightbox-cat {
  display: inline-block;
  margin-bottom: 8px;
  color: #8f857c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.work-lightbox-title {
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.2;
  color: #3c332d;
}

.work-lightbox-student {
  margin-top: 8px;
  color: #6f6258;
  font-size: 15px;
  font-weight: 700;
}

.work-lightbox-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.work-lightbox-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(60, 51, 45, 0.22);
  cursor: pointer;
}

.work-lightbox-dot.is-active {
  width: 28px;
  background: #f0a22a;
}

.work-lightbox-close,
.work-lightbox-nav {
  position: absolute;
  z-index: 3;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(29, 23, 19, 0.56);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.work-lightbox-close {
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
}

.work-lightbox-nav {
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 999px;
  font-size: 34px;
}

.work-lightbox-prev {
  left: 16px;
}

.work-lightbox-next {
  right: 16px;
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: #333333;
  border-top: 3px solid #E8962A;
  padding: 16px 20px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--passport-gold);
  letter-spacing: 2px;
}

.footer-sub {
  font-size: 10px;
  color: #cccccc;
  letter-spacing: 1px;
}

.footer-center {
  flex: 1;
  overflow: hidden;
}

.footer-marquee {
  white-space: nowrap;
  overflow: hidden;
}

.footer-marquee span {
  display: inline-block;
  font-size: 11px;
  color: #bbbbbb;
  letter-spacing: 2px;
  animation: marquee 16s linear infinite;
}

.footer-right {
  font-size: 11px;
  color: #bbbbbb;
  letter-spacing: 1px;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 600px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .wave-section {
    grid-template-columns: 1fr;
  }
  .location-tabs {
    flex-direction: column;
  }
  .tab {
    border-right: none;
    border-bottom: 2px solid var(--purple);
  }
  .manga-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-profile {
    min-height: 180px;
  }
  .course-grid,
  .advisor-grid {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .work-media-overlay {
    display: none;
  }

  .work-lightbox-dialog {
    width: min(94vw, 560px);
    grid-template-columns: minmax(0, 1fr);
    margin: 2vh auto;
    padding: 16px;
    border-radius: 22px;
    max-height: none;
  }

  .work-lightbox-meta {
    padding: 0 4px 2px;
  }

  .work-lightbox-close {
    top: 10px;
    right: 10px;
  }

  .work-lightbox-nav {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    font-size: 28px;
  }

  .work-lightbox-prev {
    left: 10px;
  }

  .work-lightbox-next {
    right: 10px;
  }
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .advisor-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .advisor-role-tag {
    align-self: flex-start;
  }
  .advisor-tags {
    justify-content: flex-start;
  }
  .footer-center {
    display: none;
  }
}

/* =====================
   SCROLLBAR STYLING
   ===================== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--passport-navy);
}
::-webkit-scrollbar-thumb {
  background: var(--passport-gold);
  border-radius: 3px;
}

/* =====================
   PASSPORT THEME ELEMENTS
   ===================== */

/* Passport Page Top Banner (inside hero) */
.passport-page-top {
  grid-column: 1 / -1;
  background: var(--passport-navy);
  color: var(--passport-gold);
  padding: 10px 24px;
  border-radius: 8px 8px 0 0;
  margin: -40px -36px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--passport-gold);
}

.ppt-country {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.75;
  font-family: 'Courier New', monospace;
}

.ppt-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: var(--font-main);
}

.ppt-doc-no {
  font-size: 10px;
  font-family: 'Courier New', monospace;
  opacity: 0.75;
  letter-spacing: 1px;
}

/* Passport Name Field */
.passport-name-field {
  margin-bottom: 16px;
}

.passport-name-field .pf-label {
  display: block;
  margin-bottom: 6px;
}

/* Passport Info Fields Grid */
.passport-info-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #f0ece4;
  border-left: 3px solid #E8962A;
  border-bottom: 1px solid rgba(51,51,51,0.12);
  border-radius: 0 4px 4px 0;
}

.passport-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pf-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--passport-navy);
  text-transform: uppercase;
  opacity: 0.55;
  font-family: 'Courier New', monospace;
}

.pf-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.5px;
}

/* Machine Readable Zone */
.passport-mrz {
  grid-column: 1 / -1;
  background: #E8962A;
  padding: 10px 24px;
  border-radius: 0 0 8px 8px;
  margin: 20px -36px -40px;
  border-top: 2px solid rgba(245,210,0,0.4);
}

.mrz-line {
  font-size: 10px;
  color: rgba(255,255,255,0.85);
  font-family: 'Courier New', monospace;
  letter-spacing: 1.5px;
  line-height: 1.9;
  opacity: 0.85;
}

/* Section Stamp (circular decorative stamp) */
.section-stamp {
  width: 68px;
  height: 68px;
  border: 2px dashed #E8962A;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: rotate(-10deg);
  opacity: 0.55;
  position: relative;
  margin-left: auto;
  cursor: default;
  transition: opacity 0.2s, transform 0.2s;
}

.section-stamp:hover {
  opacity: 0.9;
  transform: rotate(-5deg) scale(1.05);
}

.section-stamp::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid #E8962A;
  border-radius: 50%;
}

.stamp-num {
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  color: #E8962A;
  font-family: var(--font-main);
}

.stamp-dest {
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #E8962A;
  text-align: center;
  margin-top: 3px;
  font-family: 'Courier New', monospace;
  padding: 0 6px;
}

/* Section header: make space for stamp on the right */
.section-header {
  position: relative;
}

@media (max-width: 600px) {
  .passport-page-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: -40px -20px 20px;
  }
  .passport-mrz {
    margin: 16px -20px -40px;
  }
  .passport-info-fields {
    grid-template-columns: 1fr;
  }
  .hero-new {
    grid-template-columns: 1fr;
  }
}

/* =====================
   LOG CARDS (經歷區塊)
   ===================== */
.log-card {
  background: #fef3e8;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.log-card-title {
  font-size: 18px;
  font-weight: 900;
  color: #E8962A;
  margin-bottom: 18px;
  font-family: var(--font-main);
  letter-spacing: 0.5px;
}

.log-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 28px;
  position: relative;
  border-left: 2px solid #ddd8cf;
  margin-left: 6px;
}

/* Remove the old ::before vertical line */
.log-rows::before {
  display: none;
}

.log-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(232, 150, 42, 0.12);
  align-items: baseline;
  position: relative;
}

/* Circle dot on the timeline line */
.log-row::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #ddd8cf;
  z-index: 1;
}

.log-row:last-child {
  border-bottom: none;
}

.log-year {
  font-size: 13px;
  font-weight: 700;
  color: #333333;
  font-family: 'Courier New', monospace;
  white-space: nowrap;
}

.log-desc {
  font-size: 14px;
  color: #555555;
  line-height: 1.6;
}

/* Card with decorative corner accent */
.log-card-with-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, transparent 50%, rgba(232,150,42,0.15) 50%);
  border-radius: 0 0 12px 0;
}

@media (max-width: 600px) {
  .log-row {
    grid-template-columns: 90px 1fr;
    gap: 10px;
  }
  .log-card {
    padding: 20px 18px;
  }
}

/* =====================
   FIXED VERTICAL SIDE MARQUEE
   ===================== */
.side-marquee {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 22px;
  overflow: hidden;
  z-index: 100;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-marquee-track {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  animation: side-scroll 20s linear infinite;
}

.side-marquee-track span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--passport-gold);
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  opacity: 0.85;
}

@keyframes side-scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Push content right to avoid overlap */
body {
  padding-left: 22px;
}

@media (max-width: 600px) {
  .side-marquee { display: none; }
  body { padding-left: 0; }
}
