:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --surface: #ffffff;
  --ink: #263b36;
  --moss: #2b6254;
  --muted: #60706a;
  --line: #dce1d9;
  --apricot: #dda16a;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: #dce8dc; color: var(--ink); }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 6px; border-radius: 4px; }
.container { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.eyebrow { color: var(--moss); font: 500 11px/1.5 var(--mono); letter-spacing: .11em; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 10px 20px; background: var(--moss); color: #fff; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* 導覽 */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 92px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; font-size: 19px; font-weight: 700; letter-spacing: -.035em; }
.brand-mark { width: 38px; height: 38px; display: grid; grid-auto-flow: column; place-content: center; align-items: baseline; background: var(--moss); color: #fff; border-radius: 10px; font: 600 22px/1 var(--mono); letter-spacing: -.09em; padding-right: 2px; }
.brand-mark span { color: #e5b587; }
.site-nav { display: flex; flex-wrap: wrap; gap: 28px; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; color: var(--muted); transition: color 160ms ease; }
.site-nav a:hover { color: var(--moss); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.32fr 1fr; align-items: center; gap: 36px; padding-top: 94px; padding-bottom: 104px; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 23px; }
.small-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--moss); }
.hero-name { font-size: 23px; font-weight: 650; letter-spacing: -.04em; margin-bottom: 14px; }
h1 { font-size: clamp(34px, 4.1vw, 54px); line-height: 1.42; font-weight: 750; letter-spacing: -.045em; }
.ink-underline { color: var(--moss); position: relative; white-space: nowrap; isolation: isolate; }
.ink-underline::after { content: ""; position: absolute; z-index: -1; left: 1px; right: 4px; bottom: 3px; height: 10px; border-radius: 50% 40% 45% 30%; background: #e3b891; opacity: .45; transform: rotate(-2deg); }
.brand-spirit { font: 400 13px/1.9 var(--mono); letter-spacing: -.01em; color: var(--moss); margin-top: 20px; }
.hero-intro { max-width: 530px; margin-top: 23px; color: var(--muted); font-size: 15px; line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 48px; padding: 10px 18px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 600; transition: background 160ms ease, border-color 160ms ease; }
.button span { font-size: 18px; line-height: 1; }
.button-primary { background: var(--moss); color: #fff; }
.button-primary:hover { background: #234f44; }
.button-secondary { border-color: #cbd4ca; color: var(--moss); background: transparent; }
.button-secondary:hover { background: #edf0e8; border-color: var(--moss); }
.hero-art { position: relative; align-self: center; margin-top: 28px; }
.hero-art img { width: 100%; }
.hero-art figcaption { color: var(--muted); font: 400 11px/1.8 var(--mono); text-align: center; margin-top: 10px; }
.hero-art figcaption span { color: var(--apricot); margin-right: 5px; }

/* 區塊與實驗筆記 */
.section { padding-top: 68px; padding-bottom: 74px; border-top: 1px solid var(--line); }
.section-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; margin-bottom: 34px; }
.section-number { color: var(--moss); font: 400 12px/1.5 var(--mono); }
.section-label h2 { font-size: 14px; line-height: 1.7; font-weight: 600; letter-spacing: .01em; }
.section-lead { font-size: clamp(24px, 2.7vw, 31px); font-weight: 650; letter-spacing: -.035em; line-height: 1.65; text-wrap: balance; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 92px; align-items: start; }
.about-question { display: block; text-wrap: balance; }
.about-copy > p:not(.section-lead) { font-size: 14px; color: var(--muted); line-height: 1.95; margin-top: 24px; }
.about-copy .about-closing { margin-top: 20px; }
.about-closing strong { font-weight: 500; color: var(--ink); }
.process-note { padding: 22px 27px 20px; border: 1px solid var(--line); border-radius: 3px 15px 15px 3px; background: #fdfcf9; position: relative; box-shadow: 5px 5px 0 #edf0e8; }
.process-note::before { content: ""; position: absolute; top: -12px; right: 47px; width: 82px; height: 25px; background: #eacfb0; opacity: .58; transform: rotate(5deg); }
.note-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.note-scribble { font-size: 25px; color: var(--moss); line-height: 1; }
.process-list { list-style: none; padding: 10px 0 0; margin: 0; }
.process-list li { min-height: 44px; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.step-number { font: 400 10px/1.5 var(--mono); color: var(--moss); }
.step-note { margin-left: auto; color: var(--muted); font-size: 10px; }

/* 三張作品卡 */
.section-heading-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 30px; }
.section-side-note { color: var(--muted); font-size: 12px; line-height: 1.8; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card { overflow: hidden; display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color 180ms ease, box-shadow 180ms ease; }
.project-card:hover, .project-card:focus-within { border-color: #adbfb3; box-shadow: 0 8px 20px #263b3608; }
.project-visual { position: relative; height: 182px; padding-top: 24px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.project-visual svg { width: 100%; height: 160px; }
.project-index { position: absolute; top: 16px; left: 21px; font: 400 9px/1.5 var(--mono); letter-spacing: .1em; opacity: .7; }
.project-learning .project-visual { background: #eaf0e7; color: #55725a; }
.project-data .project-visual { background: #eaf0ef; color: #527472; }
.project-play .project-visual { background: #f6eee3; color: #927044; }
.project-body { flex: 1; display: flex; flex-direction: column; padding: 23px 22px 19px; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 14px; }
.project-type { font: 400 10px/1.6 var(--mono); color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; border-radius: 4px; padding: 3px 6px; font: 400 9px/1.5 var(--mono); }
.status-live { color: #315b3b; background: #e9f1e6; }
.status-live span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status-mvp { color: #40675f; background: #edf3f0; }
.status-experiment { color: #806033; background: #f6eddf; }
.project-card h3 { font-size: 23px; font-weight: 650; letter-spacing: -.025em; line-height: 1.4; margin-bottom: 12px; }
.project-description { font-size: 13px; color: var(--muted); line-height: 1.9; margin-bottom: 24px; }
.project-link { min-height: 44px; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 11px; border-top: 1px solid #edf0eb; font-size: 12px; font-weight: 600; color: var(--moss); }
.project-link span { font-size: 19px; font-weight: 400; transition: transform 160ms ease; }
.project-link:hover span { transform: translate(2px, -2px); }

/* 尚在實驗中的空間 */
.experiments { border-top: 0; padding-top: 10px; padding-bottom: 82px; }
.experiment-note { background: #ecf0e8; border: 1px solid #dbe2d5; border-radius: 16px; padding: 35px 42px 40px; }
.experiment-note .section-label { margin-bottom: 24px; }
.experiment-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 95px; align-items: center; }
.experiment-description { font-size: 13px; color: var(--muted); line-height: 1.95; margin-top: 18px; max-width: 460px; }
.experiment-quote { margin-top: 18px; font: 400 12px/1.8 var(--mono); color: var(--moss); }
.experiment-path > .eyebrow { margin-bottom: 20px; font-size: 10px; }
.experiment-stages { list-style: none; margin: 0; padding: 0; }
.experiment-stages li { position: relative; min-height: 49px; display: grid; grid-template-columns: 12px minmax(86px, 1fr) auto; align-items: center; gap: 17px; }
.experiment-stages li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: calc(50% + 9px); bottom: -15px; border-left: 1px dashed #b8c6b4; }
.stage-dot { width: 11px; height: 11px; border-radius: 50%; position: relative; z-index: 1; }
.stage-idea { border: 1px solid #7b8e70; background: #ecf0e8; }
.stage-prototype { background: #dae3cc; border: 1px solid #9ead8d; }
.stage-mvp { background: #a5b49a; border: 1px solid #93a485; }
.stage-live { background: var(--moss); }
.experiment-stages strong { font: 500 13px/1.5 var(--mono); }
.experiment-stages li > span:last-child { font-size: 11px; color: var(--muted); }

/* 頁尾 */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 32px 38px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.footer-brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; font-weight: 650; letter-spacing: -.03em; }
.footer-inner p { color: var(--muted); font: 400 10px/1.8 var(--mono); }
.footer-signature { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--apricot); }

@media (max-width: 1050px) {
  .container { width: calc(100% - 64px); }
  .hero { gap: 22px; padding-block: 74px 80px; }
  .about-grid { gap: 44px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experiment-grid { gap: 45px; }
  .project-card h3 { font-size: 22px; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 102px; flex-direction: column; justify-content: center; gap: 0; padding-block: 12px 5px; }
  .brand { font-size: 18px; gap: 10px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 8px; font-size: 19px; }
  .site-nav { gap: 30px; justify-content: center; }
  .site-nav a { font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 48px; padding-bottom: 49px; }
  .hero .eyebrow { font-size: 10px; margin-bottom: 20px; }
  .hero-name { font-size: 20px; margin-bottom: 13px; }
  h1 { font-size: clamp(30px, 7.9vw, 44px); line-height: 1.5; }
  .brand-spirit { font-size: 11px; margin-top: 16px; }
  .hero-intro { font-size: 14px; margin-top: 20px; }
  .hero-actions { gap: 9px; margin-top: 24px; }
  .button { padding-inline: 13px; gap: 14px; font-size: 11px; }
  .hero-art { width: min(330px, 85%); margin: 0 auto; }
  .hero-art figcaption { margin-top: 0; font-size: 10px; }
  .section { padding-top: 44px; padding-bottom: 46px; }
  .section-label { gap: 12px; margin-bottom: 24px; }
  .section-label h2 { font-size: 13px; }
  .about-grid { grid-template-columns: 1fr; gap: 31px; }
  .section-lead { font-size: 25px; line-height: 1.6; }
  .desktop-break { display: none; }
  .about-copy > p:not(.section-lead) { margin-top: 20px; }
  .process-note { padding-inline: 22px; }
  .section-heading-row { flex-direction: column; align-items: start; gap: 12px; margin-bottom: 25px; }
  .section-side-note br { display: none; }
  .section-side-note { font-size: 12px; }
  .project-grid { grid-template-columns: 1fr; gap: 22px; }
  .project-visual { height: 160px; }
  .project-visual svg { height: 140px; }
  .project-body { padding: 21px 22px 16px; }
  .project-description { margin-bottom: 22px; }
  .project-card h3 { font-size: 24px; }
  .project-meta { margin-bottom: 13px; }
  .project-type { font-size: 11px; }
  .status { font-size: 10px; }
  .experiments { padding-top: 2px; padding-bottom: 48px; }
  .experiment-note { padding: 27px 22px 28px; }
  .experiment-note .section-label { gap: 10px; }
  .experiment-note .section-label h2 { font-size: 12px; }
  .experiment-grid { grid-template-columns: 1fr; gap: 29px; }
  .experiment-description { font-size: 13px; }
  .experiment-path > .eyebrow { margin-bottom: 12px; }
  .experiment-stages li { gap: 13px; }
  .experiment-stages strong { font-size: 12px; }
  .experiment-stages li > span:last-child { font-size: 10px; }
  .footer-inner { flex-direction: column; align-items: start; gap: 16px; padding-block: 22px 30px; }
  .footer-inner p { font-size: 10px; }
}

/* 尊重減少動態與列印需求，不加入網站執行期套件。 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  body { background: #fff; }
  .container { width: 100%; }
  .site-nav, .hero-actions, .hero-art, .skip-link { display: none; }
  .hero { display: block; padding-block: 20px; }
  .section { padding-block: 24px; }
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-card, .process-note, .experiment-note { break-inside: avoid; box-shadow: none; }
  .footer-inner { padding-block: 20px; }
}
