/* ===========================
   Beatrice Sung — Portfolio
   style.css
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Inter:wght@300;400;500;600;700&family=Merriweather:wght@300;400;700&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111111;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ---------- Utilities ---------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.tag {
  display: inline-block;
  background: #f2f2f2;
  color: #444;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0f0f0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.01em;
}

.nav__logo img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

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

.nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  transition: background 0.2s, color 0.2s;
}

.nav__link:hover,
.nav__link.active {
  background: #f4f4f4;
  color: #111;
}

.nav__link--resume {
  background: #111;
  color: #fff;
  padding: 8px 16px;
}

.nav__link--resume:hover {
  background: #333;
  color: #fff;
}

/* Secret nav link — emoji only, text slides in on hover */
.nav__link--secret {
  display: inline-flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}

.nav__secret-emoji {
  flex-shrink: 0;
}

.nav__secret-text {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition:
    max-width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease,
    margin-left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 0;
}

.nav__link--secret:hover .nav__secret-text {
  max-width: 120px;
  opacity: 1;
  margin-left: 6px;
}

/* Theme Toggle Float Button */
.theme-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }

[data-theme="dark"] .theme-toggle {
  background: #e0e0e0;
  color: #111;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav__dropdown-toggle::after {
  content: '▾';
  font-size: 10px;
  transition: transform 0.2s;
  opacity: 0.6;
}

.nav__dropdown.open .nav__dropdown-toggle,
.nav__dropdown-toggle:hover {
  background: #f4f4f4;
  color: #111;
}

.nav__dropdown.open .nav__dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 6px;
  min-width: 280px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 200;
}

.nav__dropdown.open .nav__dropdown-menu {
  display: flex;
  flex-direction: column;
}

.nav__dropdown-item {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #444;
  transition: background 0.15s, color 0.15s;
}

.nav__dropdown-item:hover {
  background: #f4f4f4;
  color: #111;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 16px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile .nav__link {
  font-size: 15px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 80px;
}

.hero__eyebrow {
  font-size: 15px;
  font-weight: 500;
  color: #888;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.hero__name {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111;
  max-width: 760px;
  margin-bottom: 24px;
}

.hero__tagline-zh {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111;
  margin-bottom: 32px;
}

.hero__desc {
  max-width: 560px;
}

.hero__desc p {
  font-size: 17px;
  line-height: 1.65;
  color: #444;
  margin-bottom: 8px;
}

.hero__desc p:last-child {
  margin-bottom: 0;
}

/* ---------- Services ---------- */
.services {
  padding: 72px 0;
  border-top: 1px solid #f0f0f0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.service-item__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

.service-item__title {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}

.service-item__desc {
  font-size: 14px;
  color: #777;
  line-height: 1.55;
}

/* ---------- Section Header ---------- */
.section-header {
  margin-bottom: 48px;
}

.section-header__eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-header__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #111;
  margin-bottom: 12px;
}

.section-header__subtitle {
  font-size: 16px;
  color: #666;
  max-width: 480px;
}

/* ---------- Works Section ---------- */
.works {
  padding: 80px 0;
  border-top: 1px solid #f0f0f0;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-card {
  border-radius: 16px;
  overflow: hidden;
  background: #f8f8f8;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  display: block;
  will-change: transform;
  transform-style: preserve-3d;
}

.work-card--coming-soon {
  cursor: default;
}

.work-card--coming-soon:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 90, 255, 0.10) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  z-index: 0;
  mix-blend-mode: normal;
}

[data-theme="dark"] .cursor-glow {
  background: radial-gradient(circle, rgba(120, 120, 255, 0.14) 0%, transparent 70%);
}

.work-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ebebeb;
}

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

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

.work-card__body {
  padding: 24px;
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.work-card__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #111;
  margin-bottom: 8px;
}

.work-card__desc {
  font-size: 14px;
  color: #777;
  line-height: 1.55;
}

.work-card__coming-soon {
  display: inline-block;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

/* ---------- Expertise ---------- */
.expertise {
  padding: 80px 0;
  border-top: 1px solid #f0f0f0;
}

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
}

.expertise-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.expertise-item__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.expertise-item__title {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
}

.expertise-item__desc {
  font-size: 13px;
  color: #777;
  line-height: 1.5;
}

/* ---------- Contact ---------- */
.contact {
  padding: 80px 0;
  border-top: 1px solid #f0f0f0;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__info {
  margin-top: 32px;
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

.contact__info-item a:hover {
  color: #111;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #444;
}

.form-group input,
.form-group textarea {
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #111;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #111;
}

.form-group textarea {
  min-height: 120px;
}

.form-submit {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

.form-submit:hover {
  background: #333;
}

/* ---------- Footer ---------- */
.footer {
  background: #111;
  color: #fff;
  padding: 60px 0 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.footer__brand-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.55;
}

.footer__heading {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link-list a {
  font-size: 14px;
  color: #aaa;
  transition: color 0.2s;
}

.footer__link-list a:hover {
  color: #fff;
}

.footer__contact-item {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer__contact-item a {
  color: #aaa;
  transition: color 0.2s;
}

.footer__contact-item a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid #222;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 13px;
  color: #555;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  font-size: 13px;
  color: #555;
  transition: color 0.2s;
}

.footer__social a:hover {
  color: #fff;
}

/* ---------- Case Study Pages ---------- */
.cs-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid #f0f0f0;
}

.cs-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.cs-hero__title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #111;
  max-width: 760px;
  margin-bottom: 40px;
}

.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid #f0f0f0;
}

.cs-meta__label {
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cs-meta__value {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
}

.cs-cover {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f4f4;
  margin: 48px 0;
}

.cs-cover img {
  width: 100%;
  object-fit: cover;
}

.cs-section {
  padding: 64px 0;
  border-top: 1px solid #f0f0f0;
}

.cs-section:first-child {
  border-top: none;
}

.cs-section__label {
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cs-section__title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  margin-bottom: 20px;
}

.cs-section__body {
  max-width: 720px;
}

.cs-section__body p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 16px;
}

.cs-section__body p:last-child {
  margin-bottom: 0;
}

.cs-section__body ul {
  list-style: none;
  margin-bottom: 16px;
}

.cs-section__body ul li {
  padding-left: 20px;
  position: relative;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 8px;
}

.cs-section__body ul li::before {
  content: '·';
  position: absolute;
  left: 6px;
  color: #aaa;
  font-size: 20px;
  line-height: 1.4;
}

.cs-image {
  border-radius: 12px;
  overflow: hidden;
  background: #f4f4f4;
  margin: 32px 0;
}

.cs-image img {
  width: 100%;
}

.cs-image--sm {
  max-width: 640px;
}

.cs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.cs-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.cs-stat {
  background: #f8f8f8;
  border-radius: 16px;
  padding: 28px 24px;
}

.cs-stat__number {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111;
  margin-bottom: 6px;
}

.cs-stat__label {
  font-size: 14px;
  color: #777;
  line-height: 1.45;
}

.cs-quote {
  border-left: 3px solid #111;
  padding: 16px 0 16px 24px;
  margin: 32px 0;
}

.cs-quote p {
  font-size: 18px !important;
  font-style: italic;
  color: #333 !important;
  line-height: 1.6 !important;
}

.cs-next {
  padding: 80px 0;
  border-top: 1px solid #f0f0f0;
}

.cs-next__label {
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cs-next__card {
  display: flex;
  gap: 24px;
  align-items: center;
  background: #f8f8f8;
  border-radius: 16px;
  padding: 24px;
  max-width: 640px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-next__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.cs-next__card img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: #e0e0e0;
}

.cs-next__card-title {
  font-size: 17px;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.cs-next__card-desc {
  font-size: 13px;
  color: #888;
}

/* ---------- About Page ---------- */
.about-hero {
  padding: 80px 0;
}

.about-hero__name {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #111;
  margin-bottom: 56px;
}

.about-hero__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.about-hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.about-hero__bio {
  font-size: 17px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 20px;
}

.about-hero__bio:last-child {
  margin-bottom: 0;
}

.about-hero__photo {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e8e8e8;
}

.about-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-section {
  padding: 64px 0;
  border-top: 1px solid #f0f0f0;
}

.about-section__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  margin-bottom: 24px;
}

.about-section__body {
  max-width: 640px;
}

.about-section__body p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 16px;
}

.about-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.about-photos .photo {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #f0f0f0;
}

.about-photos .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.interest-tag {
  background: #f2f2f2;
  color: #333;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Problem Statement Cards ---------- */
.cs-problem-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.cs-problem-card {
  background: rgba(9, 0, 255, 0.06);
  border-radius: 16px;
  padding: 28px 40px;
}

.cs-problem-card p,
.cs-problem-card li {
  font-size: 16px;
  line-height: 1.7;
  color: #4e4a4a;
  margin: 0;
}

.cs-problem-card ol,
.cs-problem-card ul {
  padding-left: 24px;
  margin-top: 8px;
}

.cs-problem-card li {
  margin-bottom: 6px;
}

/* ---------- Feature Tags ---------- */
.cs-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.cs-feature-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #111;
  border-radius: 48px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  background: #fafbff;
}

/* ---------- Feature Flow (Option E) ---------- */
.cs-feature-flow {
  margin-top: 32px;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.6;
  color: #111;
  letter-spacing: -0.02em;
}

.cs-feature-flow span {
  color: #bbb;
  margin: 0 6px;
}

/* ---------- Before / After Comparison Slider ---------- */
.cs-sliders {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}

.cs-slider__title {
  font-size: 15px;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.04em;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.cs-slider__title:first-child {
  margin-top: 0;
}

.cs-slider {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  /* height is set by the before image */
}

.cs-slider__img {
  display: block;
  width: 100%;
}

.cs-slider__img img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.cs-slider__img--after {
  /* sits behind as baseline */
}

.cs-slider__img--before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
}

.cs-slider__img--before img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-slider__divider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #fff;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}

.cs-slider__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: col-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.cs-slider__label {
  position: absolute;
  bottom: 16px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  pointer-events: none;
  z-index: 9;
}

.cs-slider__label--before {
  left: 16px;
}

.cs-slider__label--after {
  right: 16px;
}

@keyframes sliderHint {
  0%   { transform: translateX(-50%); }
  20%  { transform: translateX(calc(-50% - 8px)); }
  50%  { transform: translateX(calc(-50% + 8px)); }
  70%  { transform: translateX(calc(-50% - 4px)); }
  85%  { transform: translateX(calc(-50% + 4px)); }
  100% { transform: translateX(-50%); }
}

.cs-slider.is-hinting .cs-slider__divider {
  animation: sliderHint 0.85s ease-in-out;
}

/* ---------- Responsive ---------- */

/* Large screens: 1440px+ (external monitors, iMac) */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }

  .hero__name {
    font-size: 60px;
  }

  .works__grid {
    gap: 32px;
  }

  .expertise__grid {
    gap: 40px 56px;
  }
}
@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .expertise__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .cs-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-two-col {
    grid-template-columns: 1fr;
  }

  .cs-stat-grid {
    grid-template-columns: 1fr;
  }

  .about-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-hero__name {
    margin-bottom: 32px;
  }

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

/* ---------- Dark Mode ---------- */
[data-theme="dark"] body {
  background-color: #141414;
  color: #e0e0e0;
}

[data-theme="dark"] .nav {
  background: rgba(20, 20, 20, 0.95);
  border-bottom-color: #272727;
}

[data-theme="dark"] .nav__logo { color: #e0e0e0; }
[data-theme="dark"] .nav__hamburger span { background: #e0e0e0; }

[data-theme="dark"] .nav__link { color: #999; }
[data-theme="dark"] .nav__link:hover,
[data-theme="dark"] .nav__link.active { background: #242424; color: #fff; }

[data-theme="dark"] .nav__link--resume { background: #e0e0e0; color: #111; }
[data-theme="dark"] .nav__link--resume:hover { background: #bbb; color: #111; }

[data-theme="dark"] .nav__theme-toggle { color: #999; }
[data-theme="dark"] .nav__theme-toggle:hover { background: #242424; color: #fff; }

[data-theme="dark"] .nav__dropdown-toggle { color: #999; }
[data-theme="dark"] .nav__dropdown-toggle:hover,
[data-theme="dark"] .nav__dropdown.open .nav__dropdown-toggle { background: #242424; color: #fff; }

[data-theme="dark"] .nav__dropdown-menu {
  background: #1c1c1c;
  border-color: #2a2a2a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .nav__dropdown-item { color: #999; }
[data-theme="dark"] .nav__dropdown-item:hover { background: #242424; color: #fff; }

[data-theme="dark"] .nav__mobile { background: #141414; border-top-color: #272727; }

[data-theme="dark"] .hero__name { color: #e0e0e0; }
[data-theme="dark"] .hero__desc p { color: #999; }

[data-theme="dark"] .works { border-top-color: #272727; }
[data-theme="dark"] .work-card { background: #1c1c1c; }
[data-theme="dark"] .work-card:hover { box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5); }
[data-theme="dark"] .work-card__image { background: #272727; }
[data-theme="dark"] .work-card__title { color: #e0e0e0; }
[data-theme="dark"] .work-card__desc { color: #888; }
[data-theme="dark"] .tag { background: #272727; color: #999; }
[data-theme="dark"] .work-card__coming-soon { background: #e0e0e0; color: #111; }

[data-theme="dark"] .section-header__title { color: #e0e0e0; }
[data-theme="dark"] .expertise { border-top-color: #272727; }
[data-theme="dark"] .expertise-item__title { color: #e0e0e0; }
[data-theme="dark"] .expertise-item__desc { color: #888; }

[data-theme="dark"] .footer { background: #0c0c0c; }
[data-theme="dark"] .footer__bottom { border-top-color: #1e1e1e; }

[data-theme="dark"] .cs-hero { border-bottom-color: #272727; }
[data-theme="dark"] .cs-hero__title { color: #e0e0e0; }
[data-theme="dark"] .cs-meta { border-top-color: #272727; }
[data-theme="dark"] .cs-meta__value { color: #ccc; }
[data-theme="dark"] .cs-cover { background: #1c1c1c; }

[data-theme="dark"] .cs-section { border-top-color: #272727; }
[data-theme="dark"] .cs-section__title { color: #e0e0e0; }
[data-theme="dark"] .cs-section__body p,
[data-theme="dark"] .cs-section__body li { color: #999; }
[data-theme="dark"] .cs-image { background: #1c1c1c; }

[data-theme="dark"] .cs-problem-card { background: rgba(80, 80, 255, 0.07); }
[data-theme="dark"] .cs-problem-card p,
[data-theme="dark"] .cs-problem-card li { color: #bbb; }

[data-theme="dark"] .cs-feature-flow { color: #e0e0e0; }
[data-theme="dark"] .cs-feature-flow span { color: #444; }
[data-theme="dark"] .cs-feature-tag { background: #1c1c1c; border-color: #444; color: #ccc; }

[data-theme="dark"] .cs-slider__title { color: #666; }
[data-theme="dark"] .cs-slider__handle { background: #e0e0e0; }

[data-theme="dark"] .cs-stat { background: #1c1c1c; }
[data-theme="dark"] .cs-stat__number { color: #e0e0e0; }
[data-theme="dark"] .cs-stat__label { color: #888; }

[data-theme="dark"] .cs-next { border-top-color: #272727; }
[data-theme="dark"] .cs-next__card { background: #1c1c1c; }
[data-theme="dark"] .cs-next__card:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
[data-theme="dark"] .cs-next__card-title { color: #e0e0e0; }
[data-theme="dark"] .cs-next__card-desc { color: #888; }

[data-theme="dark"] .about-hero__name { color: #e0e0e0; }
[data-theme="dark"] .about-hero__bio { color: #999; }
[data-theme="dark"] .about-hero__photo { background: #1c1c1c; }
[data-theme="dark"] .about-section { border-top-color: #272727; }
[data-theme="dark"] .about-section__title { color: #e0e0e0; }
[data-theme="dark"] .about-section__body p { color: #999; }
[data-theme="dark"] .about-photos .photo { background: #1c1c1c; }
[data-theme="dark"] .interest-tag { background: #1c1c1c; color: #ccc; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    padding: 60px 0 48px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cs-hero__title {
    font-size: 28px;
  }

  .cs-meta {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

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

/* ============================
   About Drawer — Cork Board
   ============================ */

.about-drawer {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
}

.about-drawer.is-open {
  pointer-events: all;
}

.about-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
}

.about-drawer.is-open .about-drawer__backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.about-drawer__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(860px, 90vw);
  max-height: 88vh;
  background: #ffe566;
  overflow-y: auto;
  border-radius: 20px;
  padding: 56px 56px 72px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.about-drawer.is-open .about-drawer__panel {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

body.drawer-open {
  overflow: hidden;
}

.about-drawer__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.07);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.about-drawer__close:hover {
  background: rgba(0, 0, 0, 0.14);
}

.about-drawer__name {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #111;
  margin-bottom: 36px;
}

.about-drawer__hero {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 40px;
}

.about-drawer__photo {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e8e8e8;
}

.about-drawer__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-drawer__bio p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 14px;
}

.about-drawer__bio p:last-child {
  margin-bottom: 0;
}

.about-drawer__quote {
  font-style: italic;
  color: #555 !important;
}

.about-drawer__section {
  border-top: 1px dashed #111;
  padding-top: 28px;
  margin-bottom: 28px;
}

.about-drawer__section-title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 14px;
}

.about-drawer__section p {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 10px;
}

.about-drawer__section p:last-child {
  margin-bottom: 0;
}

.about-drawer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.about-drawer__tags span {
  background: rgba(0, 0, 0, 0.08);
  color: #333;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .about-drawer__panel {
    width: 92vw;
    padding: 40px 24px 56px;
  }

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

/* ============================
   Cork Board — Standalone Page
   ============================ */

.about-board-page {
  background: #1a1a1a;
}

.about-board-section {
  padding: 40px 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-board-container {
  position: relative;
  width: min(900px, 94vw);
  height: min(calc(min(900px, 94vw) * 11 / 16), 80vh);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

/* Mountain background */
.cb-modal-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 0;
}

/* Cork board */
.cb-board {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84%;
  aspect-ratio: 722 / 460;
  z-index: 1;
}

.cb-board-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.cb-washi {
  position: absolute;
  z-index: 3;
}

.cb-washi--1 {
  left: 1%;
  top: 10%;
  width: 10%;
  transform: rotate(-33deg);
}

.cb-washi--2 {
  left: 86%;
  top: 38%;
  width: 13%;
  transform: rotate(22deg);
}

.cb-photo {
  position: absolute;
  overflow: hidden;
  z-index: 2;
}

.cb-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cb-photo--bw {
  left: 4.5%;
  top: 9%;
  width: 22%;
  aspect-ratio: 3 / 4;
  transform: rotate(-5deg);
  box-shadow: 3px 5px 16px rgba(0,0,0,0.32);
}

.cb-photo--building {
  left: 4.5%;
  top: 54%;
  width: 34%;
  aspect-ratio: 3 / 2;
  transform: rotate(1.5deg);
  box-shadow: 2px 4px 14px rgba(0,0,0,0.25);
}

.cb-photo--painting {
  left: 53%;
  top: 63%;
  width: 25%;
  aspect-ratio: 4 / 3;
  transform: rotate(-2deg);
  z-index: 3;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.2);
}

.cb-photo--hiking {
  left: 75%;
  top: 41%;
  width: 21%;
  aspect-ratio: 3 / 4;
  transform: rotate(-0.5deg);
  box-shadow: 3px 4px 14px rgba(0,0,0,0.3);
}

.cb-sticky {
  position: absolute;
  z-index: 4;
  padding: 8% 8% 10%;
  font-family: 'Caveat', cursive;
  box-shadow: 3px 5px 20px rgba(0,0,0,0.18);
}

.cb-sticky--cream {
  background: #f5f0d6;
  left: 23%;
  top: 20%;
  width: 30%;
  aspect-ratio: 1 / 1.12;
  transform: rotate(1.5deg);
}

.cb-sticky--blue {
  background: #d0e8f5;
  left: 52%;
  top: 2%;
  width: 30%;
  aspect-ratio: 1 / 1.15;
  transform: rotate(-1.5deg);
}

.cb-pin {
  display: block;
  width: 9%;
  aspect-ratio: 1;
  max-width: 18px;
  min-width: 10px;
  background: radial-gradient(circle at 38% 35%, #b89860, #6a4820);
  border-radius: 50%;
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 5px rgba(0,0,0,0.35);
  z-index: 5;
}

.cb-sticky h2 {
  font-size: clamp(11px, 1.9vw, 18px);
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: 8%;
  line-height: 1.2;
}

.cb-sticky p {
  font-size: clamp(9px, 1.35vw, 14px);
  line-height: 1.55;
  color: #444;
  margin-bottom: 5%;
}

.cb-interests {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 5%;
}

.cb-interests span {
  font-size: clamp(8px, 1.2vw, 13px);
  color: #555;
  line-height: 1.6;
}

/* ============================
   About Page — Color Theme
   ============================ */

/* Page base: full-bleed background photo */
body.about-page {
  background-color: #6a8a7a;
  background-image: url('../assets/images/about-bg-photo.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Subtle top gradient so nav text stays readable over any sky */
body.about-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), transparent);
  pointer-events: none;
  z-index: 99;
}

/* Nav on about-page: transparent over photo */
.about-page .nav {
  background: transparent;
  border-bottom: none;
}

.about-page .nav__logo { color: #111; }
.about-page .nav__link { color: #222; }
.about-page .nav__link:hover,
.about-page .nav__link.active {
  background: rgba(255, 255, 255, 0.35);
  color: #111;
}
.about-page .nav__link--resume {
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  backdrop-filter: blur(4px);
}
.about-page .nav__link--resume:hover {
  background: rgba(0, 0, 0, 0.85);
}
.about-page .nav__dropdown-toggle { color: #222; }
.about-page .nav__dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #111;
}
.about-page .nav__dropdown-menu {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

/* Dark mode overrides for about-page (need higher specificity to beat yellow rules) */
[data-theme="dark"] body.about-page {
  background-color: #1a1a1a;
  /* keep the photo but darkened */
  background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url('../assets/images/about-bg-photo.jpg');
}

[data-theme="dark"] .about-page .nav {
  background: transparent;
  border-bottom: none;
}

[data-theme="dark"] .about-page .nav__logo { color: #e0e0e0; }
[data-theme="dark"] .about-page .nav__link { color: #999; }
[data-theme="dark"] .about-page .nav__link:hover,
[data-theme="dark"] .about-page .nav__link.active {
  background: #242424;
  color: #fff;
}
[data-theme="dark"] .about-page .nav__link--resume {
  background: #e0e0e0;
  color: #111;
}
[data-theme="dark"] .about-page .nav__link--resume:hover {
  background: #bbb;
}
[data-theme="dark"] .about-page .nav__dropdown-toggle { color: #999; }
[data-theme="dark"] .about-page .nav__dropdown-toggle:hover {
  background: #242424;
  color: #fff;
}

[data-theme="dark"] .about-page .about-section {
  border-top: 1px dashed #444;
}
[data-theme="dark"] .about-page .about-section--yellow {
  border-top: 1px dashed #444;
}
[data-theme="dark"] .about-page .about-section--blue {
  border-top: 1px dashed #444;
}

[data-theme="dark"] .about-page .about-section--blue .interest-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
}

/* Cursor glow — softer on photo background */
body.about-page .cursor-glow {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  mix-blend-mode: normal;
}

/* ============================
   About Page — Scroll Animations
   ============================ */

/* ── Character split reveal ── */
@keyframes charReveal {
  from {
    opacity: 0;
    transform: translateY(0.4em) rotate(4deg);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    filter: blur(0);
  }
}

.about-hero__name .char {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity;
}

.about-hero__name.chars-ready .char {
  animation: charReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i) * 38ms);
}

/* ── Bio paragraph reveal ── */
.bio-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--bio-i) * 120ms + 300ms);
}

.bio-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Generic scroll reveal ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal--stagger.is-revealed {
  transition-delay: calc(var(--stagger-i) * 80ms);
}

/* ── Interest tag spring-in ── */
@keyframes tagSpring {
  0%   { opacity: 0; transform: scale(0.7) translateY(10px); }
  65%  { transform: scale(1.06) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.tag-reveal {
  opacity: 0;
}

.tag-reveal.is-revealed {
  animation: tagSpring 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--tag-i) * 70ms);
}

/* ── Hero photo: clip parallax movement ── */
.about-hero__photo {
  overflow: hidden;
}

.about-hero__photo img {
  will-change: transform;
}

/* ============================
   About Page — Album / Book Spread
   ============================ */

.album-section {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
}

/* ── Book spread ── */
.album {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 960px;
  background-color: #fff;
  /* stacked-pages shadow offset left-down like Figma */
  box-shadow: -10px 13px 0px 0px rgba(0, 0, 0, 0.06), 0 24px 64px rgba(0, 0, 0, 0.11);
  border: 3px solid #fff;
  border-radius: 3px;
  height: 580px;
}

/* ── Eucalyptus plant — inside left page, top-right ── */
.album__plant {
  position: absolute;
  right: -10px;
  top: -12px;
  height: 64%;
  width: auto;
  transform: rotate(14deg);
  transform-origin: top right;
  pointer-events: none;
  z-index: 3;
  user-select: none;
}

/* ── LEFT PAGE: lined paper + photo ── */
.album__left {
  position: relative;
  width: 46%;
  flex-shrink: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Lined paper texture */
  background-color: #fff;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 23px,
    rgba(0, 0, 0, 0.07) 23px,
    rgba(0, 0, 0, 0.07) 24px
  );
  background-size: 100% 24px;
}

/* Spine shadow — thin gradient on right edge */
.album__left::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 18px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.06));
  pointer-events: none;
  z-index: 5;
}

/* ── Photo with padding, fully shown ── */
.album__photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 40px;
  box-sizing: border-box;
}

.album__photo--dark { display: none; }

[data-theme="dark"] .album__photo--light { display: none; }
[data-theme="dark"] .album__photo--dark  { display: block; }

/* ── Quote card — torn paper strip, bottom-left ── */
.album__quote-card {
  position: absolute;
  bottom: 18px;
  left: 14px;
  width: 50%;
  background: #f7f5e5;
  padding: 16px 16px 18px;
  transform: rotate(-1.76deg);
  z-index: 15;
  /* drop-shadow follows the clip-path outline */
  filter: drop-shadow(1px 3px 4px rgba(0, 0, 0, 0.18));
  /* torn paper edges — jagged top and bottom */
  clip-path: polygon(
    0%   16%, 4%   4%,  8%  18%, 13%  5%, 18%  20%, 24%  6%,
    30%  19%, 36%  3%, 42%  17%, 48%  5%, 54%  20%, 60%  7%,
    66%  18%, 72%  4%, 78%  16%, 84%  3%, 90%  17%, 96%  5%, 100% 13%,
    100% 80%, 96%  92%, 90%  78%, 84%  93%, 78%  79%, 72%  94%,
    66%  80%, 60%  95%, 54%  79%, 48%  93%, 42%  78%, 36%  92%,
    30%  77%, 24%  91%, 18%  77%, 13%  93%, 8%   78%, 4%   90%, 0%  80%
  );
}

.album__quote-card p {
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-size: 11px;
  color: #505014;
  line-height: 1.65;
  margin: 0;
}

/* ── RIGHT PAGE: lined paper bg, grey card floats inside ── */
.album__right {
  flex: 1;
  display: flex;
  border-radius: 0;
  min-width: 0;
  position: relative;
  z-index: 2;
  padding: 40px 0;
  align-items: stretch;
}

/* Notebook paper — stops before tab column so tabs "stick out" */
.album__right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 58px);
  height: 100%;
  background-color: #fff;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 23px,
    rgba(0, 0, 0, 0.07) 23px,
    rgba(0, 0, 0, 0.07) 24px
  );
  background-size: 100% 24px;
  z-index: 0;
  pointer-events: none;
}

/* ── Content panels: the floating grey card ── */
.album__panels {
  flex: 1;
  padding: 36px 36px 36px 44px;
  min-width: 0;
  background: #f5f3f3;
  border-radius: 6px 0 0 6px;
  margin-left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.album__content {
  display: none;
}

.album__content--active {
  display: block;
  animation: albumPanelIn 0.25s ease both;
}

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

.album__lead {
  font-size: 20px;
  font-weight: 400;
  color: #111;
  line-height: 1.5;
  margin-bottom: 0;
}

.album__content p {
  font-size: 15px;
  line-height: 1.6;
  color: #222;
  margin-bottom: 0;
  margin-top: 14px;
}

/* Interest tags */
.album__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.album__tags span {
  font-size: 12px;
  background: rgba(0, 0, 0, 0.07);
  color: #333;
  padding: 5px 12px;
  border-radius: 100px;
}

/* ── Tabs — file-folder style, right edge ── */
.album__tabs {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  gap: 0;
  flex-shrink: 0;
  width: 58px;
  position: relative;
  z-index: 1;
}

.album__tab {
  writing-mode: vertical-rl;
  transform: none;
  font-family: 'Caveat', cursive;
  font-size: 15px;
  font-weight: 700;
  color: #777;
  background: #d0cece;
  border: none;
  cursor: pointer;
  width: 58px;
  height: 130px;
  border-radius: 0 10px 10px 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  line-height: 1.2;
  text-align: center;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.10);
}

.album__tab:hover {
  background: #e0dede;
  color: #333;
}

/* Active: same bg as content panel — looks "pulled forward" */
.album__tab--active {
  background: #f5f3f3;
  color: #111;
  box-shadow: 3px 2px 8px rgba(0, 0, 0, 0.13);
}

/* ── Mobile ── */
@media (max-width: 720px) {
  .album {
    flex-direction: column;
    height: auto;
    border: none;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  }

  .album__left {
    width: 100%;
    min-height: 280px;
  }

  .album__plant {
    left: 50%;
    top: -16px;
    height: 60%;
    transform: rotate(17deg) translateX(-50%);
  }

  /* Stack panels above tabs */
  .album__right {
    flex-direction: column;
    padding: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  }

  /* Full-width notebook background on mobile */
  .album__right::before {
    width: 100%;
  }

  .album__panels {
    margin-left: 0;
    border-radius: 0;
    min-height: 220px;
  }

  .album__tabs {
    flex-direction: row;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    position: static;
  }

  .album__tab {
    writing-mode: horizontal-tb;
    transform: none;
    width: auto;
    height: auto;
    flex: 1;
    padding: 12px 8px;
    border-radius: 0;
    font-size: 14px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
  }

  .album__tab--active {
    background: #f5f3f3;
  }
}

/* ── Dark mode ── */
[data-theme="dark"] .album {
  background-color: #1c1c1c;
  box-shadow: -10px 13px 0px 0px rgba(0, 0, 0, 0.2), 0 24px 64px rgba(0, 0, 0, 0.5);
  border-color: #2a2a2a;
}

[data-theme="dark"] .album__left {
  background-color: #1a1a1a;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 23px,
    rgba(255, 255, 255, 0.05) 23px,
    rgba(255, 255, 255, 0.05) 24px
  );
}

[data-theme="dark"] .album__quote-card {
  background: #1e1c0a;
  border-color: rgba(255, 255, 200, 0.1);
}

[data-theme="dark"] .album__quote-card p { color: #a0a060; }

[data-theme="dark"] .album__right::before {
  background-color: #242424;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 23px,
    rgba(255, 255, 255, 0.05) 23px,
    rgba(255, 255, 255, 0.05) 24px
  );
}

[data-theme="dark"] .album__panels { background: #2c2c2c; }

[data-theme="dark"] .album__lead { color: #e0e0e0; }
[data-theme="dark"] .album__content p { color: #bbb; }

[data-theme="dark"] .album__tags span {
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
}

[data-theme="dark"] .album__tab {
  background: #333;
  color: #888;
}

[data-theme="dark"] .album__tab:hover {
  background: #3a3a3a;
  color: #bbb;
}

[data-theme="dark"] .album__tab--active {
  background: #2c2c2c;
  color: #e0e0e0;
}

/* ============================
   Playground Page
   ============================ */

/* ── Hero ── */
.pg-hero {
  padding: 80px 0 56px;
}

.pg-hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 16px;
}

.pg-hero__title {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #111;
  margin-bottom: 20px;
}

.pg-hero__desc {
  font-size: 17px;
  color: #666;
  line-height: 1.7;
  max-width: 480px;
}

/* ── Grid ── */
.pg-section {
  padding: 0 0 96px;
}

.pg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Card ── */
.pg-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #f8f8f8;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.pg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
}

/* ── Card visual header ── */
.pg-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  font-size: 64px;
  line-height: 1;
  user-select: none;
  transition: transform 0.3s ease;
}

.pg-card:hover .pg-card__visual {
  transform: scale(1.05);
}

.pg-card__visual--pink     { background: #FFE4D6; }
.pg-card__visual--mint     { background: #D4F0E4; }
.pg-card__visual--lavender { background: #E4DCFF; }

.pg-card__emoji {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 72px;
  font-weight: 700;
}

/* ── Card body ── */
.pg-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pg-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pg-card__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  background: #ebebeb;
  padding: 3px 9px;
  border-radius: 100px;
}

.pg-card__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  margin-bottom: 8px;
  line-height: 1.3;
}

.pg-card__desc {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.pg-card__cta {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.01em;
}

.pg-card--soon {
  cursor: default;
  opacity: 0.72;
}

.pg-card--soon:hover {
  transform: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.pg-card__tag--soon {
  background: #e8e8e8;
  color: #aaa;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .pg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pg-grid {
    grid-template-columns: 1fr;
  }

  .pg-hero {
    padding: 56px 0 40px;
  }
}

/* ── Dark mode ── */
[data-theme="dark"] .pg-hero__title { color: #e0e0e0; }
[data-theme="dark"] .pg-hero__desc  { color: #888; }

[data-theme="dark"] .pg-card {
  background: #1c1c1c;
}
[data-theme="dark"] .pg-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .pg-card__visual--pink     { background: #3d2a24; }
[data-theme="dark"] .pg-card__visual--mint     { background: #1e3329; }
[data-theme="dark"] .pg-card__visual--lavender { background: #2c2540; }
[data-theme="dark"] .pg-card__tag  { background: #272727; color: #777; }
[data-theme="dark"] .pg-card__title { color: #e0e0e0; }
[data-theme="dark"] .pg-card__desc  { color: #777; }
[data-theme="dark"] .pg-card__cta   { color: #ccc; }
