:root {
  --ink: #111111;
  --muted: #66625d;
  --line: #d8d2ca;
  --paper: #f4f0e8;
  --white: #fffaf2;
  --black: #080808;
  --accent: #ff6b1a;
  --accent-dark: #bf4210;
  --sand: #e7dfd2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(8, 8, 8, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 8, 8, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  width: 100%;
  padding: 16px clamp(18px, 5vw, 72px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 250, 242, 0.26);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(244, 240, 232, 0.95);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  background: var(--white);
  border: 1px solid rgba(255, 250, 242, 0.7);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  font-size: 13px;
  font-weight: 900;
}

.main-nav a {
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.nav-cta,
.button.primary {
  color: var(--white);
  background: var(--black);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 250, 242, 0.82);
  background: transparent;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 92vh;
  padding: 132px clamp(20px, 6vw, 96px) 64px;
  color: var(--white);
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=85");
  background-position: center;
  background-size: cover;
  filter: saturate(0.85) contrast(1.08);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.62) 42%, rgba(8, 8, 8, 0.16)),
    linear-gradient(0deg, rgba(8, 8, 8, 0.76), rgba(8, 8, 8, 0.02) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  max-width: 1220px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: clamp(52px, 10vw, 142px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  grid-column: 2;
  margin: 0;
  padding-top: 22px;
  border-top: 5px solid var(--accent);
  color: rgba(255, 250, 242, 0.9);
  font-size: 18px;
  font-weight: 700;
}

.hero-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.metrics div {
  min-height: 126px;
  padding: 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metrics strong {
  display: block;
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 900;
}

.keyword-strip {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 26px auto 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.keyword-strip p {
  margin: 0;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.keyword-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.keyword-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
}

.section,
.split-section,
.feature-grid,
.contact-band {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 92px 0 34px;
}

.intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.split-copy h2,
.contact-band h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: clamp(34px, 5vw, 70px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.intro > p,
.split-copy p,
.contact-band p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 0;
  padding: 42px 0 70px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-card {
  min-height: 500px;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  overflow: hidden;
}

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

.feature-card img {
  height: 58%;
  filter: saturate(0.88) contrast(1.04);
}

.feature-card.large img {
  height: 68%;
}

.feature-card div {
  padding: clamp(22px, 3vw, 34px);
}

.feature-card span,
.course-list span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-card h3,
.course-list h3,
.blog-grid h3 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: 28px;
  line-height: 1.08;
}

.feature-card.large h3 {
  font-size: clamp(34px, 4.8vw, 62px);
}

.feature-card p,
.course-list p {
  margin: 0;
  color: var(--muted);
}

.courses {
  padding-top: 76px;
}

.course-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 30px;
  border-right: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}

.course-list article {
  min-height: 280px;
  padding: 30px;
  color: var(--white);
  background: var(--black);
  border-top: 1px solid var(--black);
  border-left: 1px solid var(--black);
}

.course-list article:nth-child(2) {
  color: var(--ink);
  background: var(--accent);
}

.course-list article:nth-child(3) {
  color: var(--ink);
  background: var(--sand);
}

.course-list p {
  color: currentColor;
  opacity: 0.72;
}

.course-list span {
  color: currentColor;
  opacity: 0.68;
}

.split-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: stretch;
  padding: 76px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-image {
  min-height: 590px;
  overflow: hidden;
}

.split-image img {
  filter: grayscale(0.15) contrast(1.04);
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
}

.split-copy ul {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.split-copy li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
}

.blog {
  padding-top: 76px;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 0;
  margin-top: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.blog-grid article {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.blog-grid article:first-child {
  grid-row: span 2;
}

.blog-grid img {
  height: 230px;
}

.blog-grid article:first-child img {
  height: 420px;
}

.blog-grid div {
  padding: 24px;
}

.blog-grid time {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.blog-grid h3 {
  font-size: 24px;
}

.blog-grid article:first-child h3 {
  font-size: clamp(30px, 3.5vw, 48px);
}

.contact-band {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 78px;
  padding: clamp(34px, 5vw, 62px);
  color: var(--white);
  background: var(--black);
  border-top: 8px solid var(--accent);
}

.contact-band .eyebrow {
  color: var(--accent);
}

.contact-band p {
  color: rgba(255, 250, 242, 0.76);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.contact-form label:nth-child(3),
.contact-form button {
  grid-column: span 2;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 250, 242, 0.34);
  border-radius: 0;
  color: var(--white);
  background: rgba(255, 250, 242, 0.08);
  font: inherit;
}

.contact-form input::placeholder {
  color: rgba(255, 250, 242, 0.62);
}

.contact-form select option {
  color: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav,
  .nav-cta {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-header.is-open .main-nav {
    position: absolute;
    top: 74px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 0;
    padding: 8px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
  }

  .site-header.is-open .main-nav a {
    padding: 13px 12px;
  }

  .hero {
    min-height: 88vh;
    padding: 118px 20px 58px;
  }

  .hero-content,
  .metrics,
  .keyword-strip,
  .intro,
  .feature-grid,
  .course-list,
  .split-section,
  .blog-grid,
  .contact-band,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-actions {
    grid-column: auto;
  }

  .feature-card,
  .feature-card.large {
    min-height: auto;
    grid-row: auto;
  }

  .feature-card img,
  .feature-card.large img {
    height: 300px;
  }

  .blog-grid article:first-child {
    grid-row: auto;
  }

  .blog-grid article:first-child img,
  .blog-grid img {
    height: 260px;
  }

  .split-image {
    min-height: 360px;
  }

  .contact-form label:nth-child(3),
  .contact-form button {
    grid-column: auto;
  }
}

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

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .section,
  .split-section,
  .feature-grid,
  .contact-band,
  .site-footer,
  .keyword-strip,
  .metrics {
    width: calc(100% - 32px);
  }

  .section {
    padding-top: 66px;
  }

  .feature-card div,
  .course-list article,
  .blog-grid div {
    padding: 22px;
  }

  .site-footer {
    display: grid;
  }
}
