@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Cormorant+Garamond:wght@300;400;500&family=Noto+Serif+TC:wght@300;400;500&display=swap');

:root {
  --black:  #1a1a1a;
  --white:  #f5f5f0;
  --gold:   #C9A84C;
  --gold-light: #e8c97a;
  --grey:   #888;
  --border: #2e2e2e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--white);
  font-family: 'Cormorant Garamond', 'Noto Serif TC', serif;
  font-size: 18px;
  line-height: 1.8;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 60px;
  background-color: rgba(26, 26, 26, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-tagline {
  font-size: 1rem;
  color: var(--grey);
  letter-spacing: 0.15em;
  max-width: 500px;
}

section {
  padding: 100px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 200px;
}

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

.about-preview h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 30px;
}

.about-preview p {
  color: #ccc;
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-chinese {
  color: #aaa;
  font-family: 'Noto Serif TC', serif;
  font-size: 0.95rem;
  line-height: 2;
  padding-left: 30px;
  border-left: 1px solid var(--gold);
}

.btn-gold {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 36px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all 0.3s;
}

.btn-gold:hover {
  background: var(--gold);
  color: var(--black);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.portfolio-card {
  background: #111;
  padding: 48px 40px;
  text-decoration: none;
  color: var(--white);
  display: block;
  transition: background 0.3s;
  border: 1px solid var(--border);
}

.portfolio-card:hover { background: #1e1e1e; }
.portfolio-card:hover .card-title { color: var(--gold); }

.card-meta {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 16px;
  transition: color 0.3s;
}
/* stylelint-disable-next-line */s
.card-excerpt {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-header {
  padding: 160px 60px 40px;
  max-width: 800px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.article-meta {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 30px;
}

.article-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.3;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 60px;
}

.article-body p {
  margin-bottom: 24px;
  color: #ccc;
  font-family: 'Noto Serif TC', serif;
  font-size: 1.1rem;
  line-height: 2;
}

.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  margin: 60px 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.article-source {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--grey);
  letter-spacing: 0.1em;
}

.article-source a {
  color: var(--gold);
  text-decoration: none;
}

.image-caption {
  font-size: 0.9rem !important;
  color: var(--grey);
  letter-spacing: 0.1em;
  margin-bottom: 48px;
  margin-top: 12px;
  font-family: 'Noto Serif TC', serif;
  border-left: 2px solid var(--gold);
  padding-left: 12px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--grey);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 40px;
  transition: color 0.3s;
}

.back-link:hover { color: var(--gold); }

.page-header {
  padding: 160px 60px 80px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  margin-bottom: 16px;
}

.page-header .subtitle {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.service-item {
  padding: 60px 48px;
  border: 1px solid var(--border);
  background: #111;
}

.service-number {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 20px;
}

.service-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.service-item p { color: var(--grey); font-size: 0.9rem; }

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

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 24px;
}

.contact-info p { color: var(--grey); margin-bottom: 40px; }

.contact-link {
  display: block;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  transition: color 0.3s;
}

.contact-link:hover { color: var(--gold-light); }

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  padding: 16px 0;
  margin-bottom: 32px;
  outline: none;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--gold); }

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--grey);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.contact-form textarea { height: 140px; resize: none; }

.btn-submit {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 14px 36px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover { background: var(--gold); color: var(--black); }

footer {
  border-top: 1px solid var(--border);
  padding: 48px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--grey);
  letter-spacing: 0.1em;
}

footer a { color: var(--grey); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--gold); }
.footer-links { display: flex; gap: 30px; }

/* ============================================
   MOBILE HAMBURGER MENU & RESPONSIVE
   ============================================ */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.menu-close {
  display: none;
}

@media (max-width: 768px) {

  /* NAV */
  nav {
    padding: 20px 24px;
  }

  .menu-toggle {
    display: block;
    z-index: 300;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(26, 26, 26, 0.98);
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 250;
    padding: 0;
    margin: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.3em;
  }

  .menu-close {
    display: block;
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 300;
  }

  /* HERO */
  .hero h1 {
    font-size: clamp(2rem, 10vw, 4rem);
  }

  .hero-tagline {
    font-size: 0.85rem;
    padding: 0 20px;
  }

  /* SECTIONS */
  section {
    padding: 80px 24px;
  }

  /* PAGE HEADER */
  .page-header {
    padding: 120px 24px 60px;
  }

  /* ABOUT */
  .about-preview {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-preview h2 {
    font-size: 1.8rem;
  }

  .about-chinese {
    padding-left: 20px;
  }

  /* PORTFOLIO */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .card-title {
    font-size: 1.2rem;
  }

  /* SERVICES */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* CONTACT */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-info h2 {
    font-size: 1.8rem;
  }

  /* ARTICLES */
  .article-header {
    padding-left: 24px;
    padding-right: 24px;
  }

  .article-header h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .article-body {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* FOOTER */
  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 40px 24px;
  }
}
/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(26, 26, 26, 0.98);
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 200;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.3em;
  }

  .menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.8rem;
    cursor: pointer;
  }

  /* Fix hero text on mobile */
  .hero h1 {
    font-size: clamp(2rem, 10vw, 4rem);
  }

  .hero-tagline {
    font-size: 0.85rem;
    padding: 0 20px;
  }

  /* Fix article header on mobile */
  .article-header h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  /* Fix portfolio cards on mobile */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .card-title {
    font-size: 1.2rem;
  }

  /* Fix services grid on mobile */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Fix about preview on mobile */
  .about-preview h2 {
    font-size: 1.8rem;
  }

  /* Fix contact grid on mobile */
  .contact-info h2 {
    font-size: 1.8rem;
  }

  /* Fix quotes on mobile */
  .article-body p[style*="border-left"] {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ============================
   PORTFOLIO FILTER TABS
   ============================ */

.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0 60px;
}

.filter-tab {
  background: transparent;
  border: 1px solid var(--border);
  padding: 12px 32px;
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.filter-tab.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08); /* subtle gold tint */
}