﻿:root {
  --ground: #f3f2ed;
  --sand: #e6e5dc;
  --sand-deep: #d8d7ca;
  --ink: #0f2f26;
  --ink-soft: #3f524a;
  --green: #0f2f26;
  --green-up: #1a4437;
  --on-green: #f3f2ed;
  --on-green-soft: #c9d4cb;
  --brass: #c9a86b;
  --brass-deep: #b08d4f;

  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;

  --s-small: 0.9375rem;
  --s-body: 1.0625rem;
  --s-statement: clamp(1.25rem, 2vw, 1.75rem);
  --s-heading: clamp(2.25rem, 5vw, 4.5rem);
  --s-big: clamp(1.75rem, 3.4vw, 3rem);
  --s-display: clamp(8rem, 24vw, 22rem);

  --margin: clamp(1.25rem, 4vw, 3.5rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --gap-section: clamp(4.5rem, 8vw, 8rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--s-body);
  line-height: 1.8;
  text-wrap: pretty;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 3px solid var(--brass-deep); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--ground); padding: 0.75rem 1rem; z-index: 30; }
.skip:focus { left: 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: var(--s-heading); }

/* ---------- buttons & links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.5rem 1.75rem;
  background: var(--ink); color: var(--ground);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  border-radius: 0;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--small { min-height: 2.5rem; padding: 0.25rem 1.1rem; font-size: 0.9375rem; background: var(--brass); color: var(--ink); }
.button--brass { background: var(--brass); color: var(--ink); }
.button--ghost { background: var(--green-up); color: var(--on-green); }
.button--dark { background: var(--ink); color: var(--on-green); }
@media (hover: hover) and (pointer: fine) {
  .button--brass:hover, .button--small:hover { background: #dcbd82; }
  .button--ghost:hover { background: #24574a; }
  .button--dark:hover { background: var(--green-up); }
}
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem var(--margin);
  min-height: 4rem;
  color: var(--on-green);
  transition: background-color 240ms ease, color 240ms ease;
}
.nav.is-solid { background: var(--ground); color: var(--ink); }
.nav__brand { font-family: var(--serif); font-weight: 900; font-size: 1.375rem; text-decoration: none; letter-spacing: 0.04em; }
.nav__menu { display: flex; align-items: center; gap: 1.75rem; }
.nav__links { display: none; gap: 1.75rem; }
.nav__links a { text-decoration: none; font-size: var(--s-small); padding: 0.5rem 0; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { text-decoration: underline; text-underline-offset: 0.3em; } }
@media (min-width: 720px) { .nav__links { display: flex; } }

/* ---------- hero ---------- */
.hero {
  background: var(--green); color: var(--on-green);
  display: grid; gap: 2rem;
  padding: 5.5rem var(--margin) 3rem;
  overflow: hidden;
}
.hero__name { font-size: var(--s-display); font-weight: 900; line-height: 1; letter-spacing: -0.04em; color: var(--on-green); }
.mask { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.mask > span { display: block; }
.hero__role { margin-top: 1.25rem; font-size: var(--s-statement); font-weight: 500; color: var(--brass); }
.hero__tagline { margin-top: 1rem; max-width: 18em; font-family: var(--serif); font-weight: 600; font-size: var(--s-statement); line-height: 1.6; color: var(--on-green); }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__photo { background: var(--green-up); }
.hero__photo img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: end; padding-top: 6rem; padding-bottom: 3rem; min-height: 100svh; }
  .hero__photo { height: calc(100svh - 9rem); min-height: 30rem; }
  .hero__photo img { aspect-ratio: auto; }
  .hero__text { padding-bottom: 1rem; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--brass); color: var(--ink); overflow: hidden; padding-block: 1.1rem; }
.marquee__track { display: flex; width: max-content; }
.marquee__group { display: flex; flex-shrink: 0; align-items: center; }
.marquee__group li { font-family: var(--serif); font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.3; white-space: nowrap; padding-inline: 1.25rem; }
.marquee__group li::after { content: "・"; margin-left: 2.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { width: auto; flex-wrap: wrap; }
  .marquee__group[aria-hidden="true"] { display: none; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: var(--gap-section) var(--margin); }

/* stats */
.stats { padding-bottom: calc(var(--gap-section) * 0.75); }
.stats__grid { display: grid; gap: var(--gutter); grid-template-columns: 1fr 1fr; }
.stat { background: var(--sand); padding: 1.5rem 1.25rem 1.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; min-height: 11rem; }
.stat:nth-child(3) { background: var(--green); color: var(--on-green); }
.stat:nth-child(4) { background: var(--brass); }
.stat__big { font-family: var(--serif); font-weight: 900; font-size: var(--s-big); line-height: 1.15; }
.stat:nth-child(n+3) .stat__big { font-size: clamp(3.5rem, 8vw, 7rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__big small { display: block; margin-top: 1rem; font-family: var(--sans); font-size: 1rem; font-weight: 700; line-height: 1.5; letter-spacing: 0; }
.stat__note { display: block; font-family: var(--sans); font-weight: 400; font-size: var(--s-small); line-height: 1.6; margin-top: 1.5rem; letter-spacing: 0; }
@media (min-width: 900px) {
  .stats__grid { grid-template-columns: 1.15fr 1.15fr 1fr 1fr; }
  .stat { min-height: 16rem; padding: 2rem 1.75rem; }
}
@media (max-width: 480px) { .stat--text .stat__big { font-size: 1.5rem; } }

/* about */
.about { background: var(--sand); display: grid; gap: 2.5rem; }
.about__photo { background: var(--sand-deep); }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }
.about__body h2 { margin-bottom: 1.75rem; }
.about__body p { max-width: 34em; margin-bottom: 1.25rem; }
.about__quote { margin-top: 2.5rem; background: var(--green); color: var(--on-green); padding: 1.75rem 1.5rem; font-family: var(--serif); font-weight: 600; font-size: var(--s-statement); line-height: 1.6; }
@media (min-width: 900px) {
  .about { grid-template-columns: 5fr 7fr; gap: calc(var(--gutter) * 3); align-items: center; }
  .about__quote { padding: 2.25rem 2.5rem; max-width: 26em; }
}

/* video */
.video { background: var(--green); color: var(--on-green); }
.video__head { display: grid; gap: 1rem; margin-bottom: 3rem; align-items: end; }
.video__head h2 { color: var(--on-green); }
.video__head p { color: var(--on-green-soft); }
.video__grid { display: grid; gap: 2.5rem var(--gutter); }
.vcard h3 { margin-top: 1rem; font-size: 1.375rem; line-height: 1.4; color: var(--on-green); }
.vcard p { color: var(--on-green-soft); font-size: var(--s-small); margin-top: 0.25rem; }
.vcard__frame { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--green-up); overflow: hidden; }
.vcard__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-soft); }
.vcard__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vcard__play { position: absolute; left: 1rem; bottom: 1rem; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--brass); transition: transform var(--t-hover) var(--ease-out); }
.vcard__play::after { content: ""; position: absolute; left: 1.3rem; top: 1.05rem; border-style: solid; border-width: 0.7rem 0 0.7rem 1.1rem; border-color: transparent transparent transparent var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .vcard__frame:hover img { transform: scale(1.04); }
  .vcard__frame:hover .vcard__play { transform: scale(1.1); }
}
@media (min-width: 700px) {
  .video__grid { grid-template-columns: 1fr 1fr; }
  .video__head { grid-template-columns: 7fr 5fr; }
}

/* team */
.team { display: grid; gap: 2.5rem; }
.team__head p { margin-top: 1.5rem; max-width: 30em; }
.team__list { display: grid; gap: 0.75rem; align-content: start; }
.tlink { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; align-items: center; background: var(--sand); padding: 1.5rem 1.5rem; text-decoration: none; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.tlink__name { font-family: var(--serif); font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.2; }
.tlink__note { display: block; font-family: var(--sans); font-weight: 400; font-size: var(--s-small); line-height: 1.6; color: var(--ink-soft); }
.tlink__arrow { grid-column: 2; font-size: 2rem; transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tlink:hover { background: var(--green); color: var(--on-green); }
  .tlink:hover .tlink__note { color: var(--on-green-soft); }
  .tlink:hover .tlink__arrow { transform: translateX(6px); }
}
@media (min-width: 900px) { .team { grid-template-columns: 5fr 7fr; gap: calc(var(--gutter) * 3); } }

/* faq */
.faq { background: var(--sand); display: grid; gap: 2.5rem; }
.faq__list { display: grid; gap: 0.75rem; align-content: start; }
.qa { background: var(--ground); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; min-height: 3.5rem; font-family: var(--serif); font-weight: 900; font-size: clamp(1.1875rem, 1.8vw, 1.5rem); line-height: 1.4; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "＋"; flex-shrink: 0; font-family: var(--sans); font-weight: 400; transition: transform 240ms var(--ease-out); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa__a { padding: 0 1.5rem 1.5rem; max-width: 36em; }
@media (hover: hover) and (pointer: fine) { .qa summary:hover { background: var(--sand-deep); } }
@media (min-width: 900px) { .faq { grid-template-columns: 5fr 7fr; gap: calc(var(--gutter) * 3); } }

/* contact */
.contact { background: var(--green); color: var(--on-green); padding: var(--gap-section) var(--margin); }
.contact__head { font-size: clamp(3.5rem, 11vw, 10rem); line-height: 1.05; letter-spacing: -0.03em; color: var(--on-green); }
.contact__lead { margin-top: 1.5rem; max-width: 24em; font-size: var(--s-statement); font-family: var(--serif); font-weight: 600; line-height: 1.6; color: var(--on-green); }
.contact__links { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.contact .link { color: var(--on-green); padding-block: 0.75rem; }

/* footer */
.footer { padding: calc(var(--gap-section) * 0.6) var(--margin) 6.5rem; background: var(--ground); }
.footer__name { font-family: var(--serif); font-weight: 900; font-size: clamp(9rem, 38vw, 34rem); line-height: 1.1; letter-spacing: -0.04em; color: var(--green); padding-bottom: 0.1em; }
.footer__legal { margin-bottom: 1rem; font-size: var(--s-small); color: var(--ink-soft); }

/* sticky cta */
.cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 0.75rem calc(var(--margin) + 2.75rem) 0.75rem var(--margin);
  background: var(--brass); color: var(--ink);
  transition: transform 360ms var(--ease-out), opacity 360ms var(--ease-out);
}
.cta__text { font-weight: 700; font-size: var(--s-small); line-height: 1.4; }
.cta__close { position: absolute; right: calc(var(--margin) - 0.5rem); top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border: 0; background: transparent; color: var(--ink); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.cta.is-off { transform: translateY(100%); opacity: 0; pointer-events: none; }
.cta[hidden] { display: none; }
@media (max-width: 520px) { .cta { justify-content: space-between; } .cta__text { max-width: 11em; } }
@media (min-width: 720px) { .cta__text { font-size: 1.0625rem; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(20px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 350ms); }
  .js .hero__name [data-line] { transform: translateY(105%); animation: line-up 1000ms var(--ease-out) 150ms forwards; }
  .js .hero__photo { clip-path: inset(0 0 100% 0); animation: shutter 1100ms var(--ease-in-out) 250ms forwards; }
  .js .hero__photo img { transform: scale(1.12); animation: settle 1500ms var(--ease-soft) 250ms forwards; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .about__photo[data-reveal] { transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out), opacity 300ms ease; opacity: 1; }
  .js .about__photo[data-reveal].is-in { clip-path: inset(0); }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes line-up { to { transform: none; } }
@keyframes shutter { to { clip-path: inset(0); } }
@keyframes settle { to { transform: none; } }



