@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=EB+Garamond:wght@400;500;600&family=Montserrat:wght@300;400;500;600;700&family=Noto+Sans+TC:wght@300;400;500;700&family=Noto+Serif+TC:wght@300;400;500;600&display=swap");

@font-face {
  font-family: "GenSenRounded";
  src: local("Noto Sans TC");
}

:root {
  --ink: #1f2a26;
  --muted: #6f716a;
  --brand: #243a32;
  --brand-deep: #111d19;
  --accent: #b98a4f;
  --accent-soft: #d8c29b;
  --soft: #f1ece3;
  --paper: #fbfaf6;
  --line: rgba(71, 55, 34, 0.16);
  --shadow: 0 24px 60px rgba(23, 31, 27, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "GenSenRounded", "Noto Sans TC", Montserrat, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(216, 194, 155, 0.28), transparent 28%),
    linear-gradient(180deg, #fbfaf6 0%, #f5efe5 42%, #fbfaf6 100%);
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

p,
h1,
h2,
h3 {
  letter-spacing: 2px;
}

.container {
  width: min(90%, 1100px);
  margin: 0 auto;
}

.wide {
  width: min(90%, 1360px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 84px;
}

.logo {
  font-family: "EB Garamond", serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  letter-spacing: 2px;
}

.nav a,
.drop-label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #222;
}

.dropdown {
  position: relative;
}

.drop-menu {
  position: absolute;
  top: 42px;
  left: 50%;
  display: grid;
  min-width: 150px;
  padding: 8px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(23, 31, 27, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: 0.2s ease;
}

.dropdown:hover .drop-menu,
.dropdown:focus-within .drop-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.drop-menu a {
  padding: 8px 16px;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
}

.portfolio-hero {
  min-height: calc(96vh - 84px);
  place-items: end start;
  padding: 0 0 11vh 0;
}

.hero img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 40%, rgba(185, 138, 79, 0.08), rgba(17, 29, 25, 0.18) 34%, rgba(17, 29, 25, 0.45) 70%),
    linear-gradient(90deg, rgba(17, 29, 25, 0.82), rgba(17, 29, 25, 0.48) 46%, rgba(17, 29, 25, 0.1) 82%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(90%, 1100px);
  margin: 0 auto;
  text-align: left;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.36);
}

.hero h1 {
  margin: 18px 0 18px;
  font-family: "Noto Serif TC", "Songti TC", "STSong", serif;
  font-size: clamp(70px, 9.2vw, 126px);
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.05;
}

.hero p {
  margin: 8px 0 0;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero .hero-copy {
  width: min(100%, 620px);
  margin-top: 0;
  font-family: "Noto Serif TC", "Songti TC", "STSong", serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 300;
  letter-spacing: 0.16em;
  line-height: 1.75;
  text-transform: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 38px;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-family: "Cormorant Garamond", "EB Garamond", serif;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.intro {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background: linear-gradient(135deg, rgba(251, 250, 246, 0.72), rgba(241, 236, 227, 0.9));
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 500px);
  gap: 72px;
  align-items: center;
}

.section-title {
  margin: 0 0 24px;
  color: var(--brand);
  font-family: "EB Garamond", serif;
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: 1px;
}

.section-title span {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-family: "Noto Sans TC", sans-serif;
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 600;
  line-height: 1.35;
}

.prose {
  color: #333;
  font-size: 16px;
  line-height: 2;
  white-space: pre-line;
  word-break: keep-all;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 52px;
  margin-top: 22px;
  padding: 14px 28px;
  border: 1px solid rgba(185, 138, 79, 0.72);
  border-radius: 999px;
  background: var(--brand-deep);
  box-shadow: 0 14px 32px rgba(17, 29, 25, 0.16);
  color: #fff;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.18em;
  transition: 0.2s ease;
}

.button.light {
  border-color: rgba(216, 194, 155, 0.86);
  background: rgba(251, 250, 246, 0.94);
  color: var(--brand-deep);
}

.button.ghost {
  border-color: rgba(216, 194, 155, 0.62);
  background: rgba(17, 29, 25, 0.22);
  box-shadow: none;
  color: #fff;
  backdrop-filter: blur(4px);
}

.button:hover {
  box-shadow: 0 18px 36px rgba(17, 29, 25, 0.2);
  transform: translateY(-2px);
}

.image-stack {
  position: relative;
}

.image-stack::before {
  content: none;
}

.image-stack img {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(185, 138, 79, 0.3);
  border-radius: 30px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.solution-strip {
  padding: 54px 0;
  color: #f7f1e5;
  background:
    radial-gradient(circle at 16% 10%, rgba(216, 194, 155, 0.16), transparent 34%),
    linear-gradient(135deg, #111d19, #243a32);
}

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

.solution-card {
  min-height: 210px;
  padding: 30px;
  border: 1px solid rgba(216, 194, 155, 0.26);
  border-radius: 26px;
  background: rgba(251, 250, 246, 0.07);
  backdrop-filter: blur(8px);
}

.solution-card span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--accent-soft);
  font-family: "Cormorant Garamond", "EB Garamond", serif;
  font-size: 28px;
  letter-spacing: 0.18em;
}

.solution-card h3 {
  margin: 0 0 14px;
  color: #fff;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.solution-card p {
  margin: 0;
  color: rgba(247, 241, 229, 0.78);
  font-size: 15px;
  line-height: 1.8;
}

.courses {
  padding: 88px 0 96px;
  background: linear-gradient(180deg, #f3eee5, #fbfaf6);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: 8px;
}

.portfolio-section {
  padding: 96px 0;
  background: var(--paper);
}

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

.feature-card {
  min-height: 420px;
  background: var(--brand-deep);
  border: 1px solid rgba(216, 194, 155, 0.24);
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(17, 29, 25, 0.14);
  overflow: hidden;
  position: relative;
}

.feature-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.feature-card a,
.feature-card img {
  display: block;
  height: 100%;
}

.feature-card img {
  min-height: 420px;
  object-fit: cover;
  opacity: 0.86;
  transition: 0.35s ease;
}

.feature-card:hover img {
  opacity: 0.68;
  transform: scale(1.04);
}

.feature-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(17, 29, 25, 0.82));
}

.feature-card p {
  margin: 0 0 8px;
  color: #f2d1a4;
  font-size: 12px;
  font-weight: 700;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 500;
}

.feature-card span {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.7;
}

.service-band,
.series-section {
  padding: 96px 0;
  background: var(--soft);
}

.service-band {
  color: #f7f1e5;
  background:
    radial-gradient(circle at 84% 16%, rgba(185, 138, 79, 0.2), transparent 34%),
    linear-gradient(135deg, #111d19, #263a32);
}

.service-band .section-heading h2,
.service-band .service-item h3 {
  color: #fff;
}

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

.service-item {
  min-height: 210px;
  padding: 28px;
  background: rgba(251, 250, 246, 0.08);
  border: 1px solid rgba(216, 194, 155, 0.24);
  border-radius: 22px;
  backdrop-filter: blur(8px);
}

.service-item h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.service-item p {
  margin: 0;
  color: rgba(247, 241, 229, 0.78);
  font-size: 15px;
  line-height: 1.8;
}

.series-section {
  background: linear-gradient(180deg, #fbfaf6, #f1ece3);
}

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

.series-card {
  overflow: hidden;
  background: rgba(251, 250, 246, 0.82);
  border: 1px solid rgba(185, 138, 79, 0.22);
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(17, 29, 25, 0.1);
}

.series-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.series-card div {
  padding: 24px;
}

.series-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.series-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  min-height: 220px;
  background: var(--brand-deep);
}

.gallery-strip img {
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.courses h2 {
  margin: 0 0 46px;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: 14px;
}

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

.course-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

.course-card h3 {
  display: -webkit-box;
  min-height: 72px;
  margin: 16px 0 10px;
  overflow: hidden;
  color: var(--ink);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.course-card h3 span {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--brand);
}

.course-card p {
  display: -webkit-box;
  min-height: 96px;
  margin: 0 0 20px;
  overflow: hidden;
  color: #3c4248;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.course-card .button {
  min-width: 145px;
  min-height: 42px;
  margin: 0;
  padding: 8px 16px;
  box-shadow: 0 10px 24px rgba(17, 29, 25, 0.12);
  font-size: 14px;
}

.signup {
  display: grid;
  min-height: 56vh;
  place-items: center;
  padding: 100px 0;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.signup-card {
  display: grid;
  min-width: min(420px, 90vw);
  min-height: 130px;
  place-items: center;
  padding: 26px 40px;
  border: 1px solid rgba(216, 194, 155, 0.36);
  border-radius: 24px;
  background: rgba(17, 29, 25, 0.58);
  color: #fff;
  backdrop-filter: blur(10px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transition: 0.25s ease;
}

.signup-card:hover {
  transform: translateY(-5px);
  background: rgba(17, 29, 25, 0.7);
}

.signup-card h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 8px;
}

.signup-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.page-hero {
  padding: 125px 0 60px;
  text-align: center;
}

.page-hero.compact {
  padding: 96px 0 64px;
}

.page-hero h1 {
  margin: 0;
  color: var(--brand);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
}

.content-panel {
  width: min(90%, 880px);
  margin: 0 auto 96px;
  padding: 56px;
  background: rgba(251, 250, 246, 0.88);
  border: 1px solid rgba(185, 138, 79, 0.2);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(17, 29, 25, 0.08);
}

.portfolio-list {
  display: grid;
  gap: 52px;
  margin-bottom: 96px;
}

.work-row {
  display: grid;
  grid-template-columns: minmax(260px, 480px) 1fr;
  gap: 54px;
  align-items: center;
  padding: 42px;
  background: rgba(251, 250, 246, 0.86);
  border: 1px solid rgba(185, 138, 79, 0.2);
  border-radius: 28px;
  box-shadow: 0 20px 56px rgba(17, 29, 25, 0.08);
}

.work-row:nth-child(2n) {
  grid-template-columns: 1fr minmax(260px, 480px);
}

.work-row:nth-child(2n) img {
  order: 2;
}

.work-row img {
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  object-fit: cover;
}

.work-row h2 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
}

.work-row p:not(.section-kicker) {
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}

.course-detail {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 60px;
  align-items: start;
  width: min(90%, 1100px);
  margin: 90px auto 110px;
}

.course-detail img {
  position: sticky;
  top: 112px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(185, 138, 79, 0.26);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 15;
  display: grid;
  gap: 10px;
}

.floating-contact a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(251, 250, 246, 0.94);
  color: var(--brand-deep);
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.footer {
  padding: 42px 0;
  background: var(--brand-deep);
  text-align: center;
  color: rgba(247, 241, 229, 0.72);
  border-top: 1px solid rgba(216, 194, 155, 0.2);
}

.footer p {
  margin: 8px 0;
  font-size: 14px;
}

.hidden {
  display: none;
}

@media (max-width: 1180px) {
  .course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid,
  .service-grid,
  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .gallery-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 72px;
  }

  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 5%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .drop-menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .hero {
    min-height: calc(100vh - 72px);
  }

  .portfolio-hero {
    min-height: calc(88vh - 72px);
  }

  .intro-grid,
  .course-detail,
  .work-row,
  .work-row:nth-child(2n) {
    grid-template-columns: 1fr;
  }

  .work-row:nth-child(2n) img {
    order: 0;
  }

  .intro {
    padding: 72px 0;
  }

  .intro-copy {
    order: 2;
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .content-panel {
    padding: 34px 24px;
    border-radius: 24px;
  }
}

@media (max-width: 620px) {
  .logo {
    font-size: 24px;
  }

  .hero h1 {
    font-size: clamp(58px, 18vw, 86px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .feature-grid,
  .service-grid,
  .solution-grid,
  .series-grid {
    grid-template-columns: 1fr;
  }

  .feature-card.large {
    grid-column: auto;
    grid-row: auto;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .work-row {
    padding: 20px;
  }

  .section-title span {
    display: block;
    margin: 8px 0 0;
  }

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

  .courses h2 {
    letter-spacing: 7px;
  }

  .signup {
    background-attachment: scroll;
  }

  .floating-contact {
    right: 12px;
    bottom: 12px;
  }
}
