/*
Theme Name: Happy Magic Theatre
Theme URI: https://magictheatre.tw/
Author: Happy Magic Theatre
Description: 歡樂魔法劇團官方 WordPress 主題：舞台布幕、藍色魔法、教育劇場與案例故事。
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: happy-magic-theatre
*/

:root {
  --navy: #101b4b;
  --navy-deep: #09112f;
  --blue: #2454d6;
  --lake: #4f7cff;
  --cream: #f7f1e5;
  --paper: #fffdf7;
  --ink: #172149;
  --muted-ink: #6b7190;
  --coral: #f26b5e;
  --gold: #f6bb56;
  --line: rgba(16, 27, 75, .14);
  --primary: var(--blue);
  --primary-foreground: #fff;
  --sidebar-primary: var(--blue);
  --sidebar-primary-foreground: #fff;
  --chart-1: var(--lake);
  --chart-2: var(--coral);
  --chart-3: var(--gold);
  --chart-4: var(--blue);
  --chart-5: var(--navy);
  --radius: .5rem;
  --background: var(--paper);
  --foreground: var(--ink);
  --card: #fff;
  --card-foreground: var(--ink);
  --popover: #fff;
  --popover-foreground: var(--ink);
  --secondary: var(--cream);
  --secondary-foreground: var(--ink);
  --muted: #f0eee7;
  --muted-foreground: var(--muted-ink);
  --accent: #edf1ff;
  --accent-foreground: var(--blue);
  --destructive: var(--coral);
  --destructive-foreground: #fff;
  --border: var(--line);
  --input: var(--line);
  --ring: var(--lake);
  --sidebar: var(--paper);
  --sidebar-foreground: var(--ink);
  --sidebar-accent: #edf1ff;
  --sidebar-accent-foreground: var(--blue);
  --sidebar-border: var(--line);
  --sidebar-ring: var(--lake);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
::selection { background: var(--lake); color: #fff; }
.site-shell { overflow: hidden; }
.section-wrap { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.site-header { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; width: min(1280px, calc(100% - 64px)); margin: 0 auto; padding: 27px 0; color: #fff; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-family: "Noto Serif TC", "Songti TC", serif; font-size: 17px; letter-spacing: .08em; }
.brand-copy small { font-size: 8px; letter-spacing: .24em; opacity: .64; }
.brand-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 37px; height: 37px; border: 1px solid rgba(255,255,255,.68); border-radius: 50%; overflow: hidden; }
.brand-mark::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(255,255,255,.36); border-radius: 50%; }
.brand-curtain { position: absolute; bottom: 6px; width: 11px; height: 17px; background: #e9d2b1; border-radius: 8px 8px 3px 3px; opacity: .9; }
.brand-curtain-left { left: 7px; transform: skewY(16deg); }
.brand-curtain-right { right: 7px; transform: skewY(-16deg); }
.brand-star { position: relative; z-index: 1; margin-top: -1px; color: #fbd277; font-size: 13px; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; letter-spacing: .08em; }
.main-nav .menu { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.main-nav .menu li { margin: 0; list-style: none; }
.main-nav .menu a { opacity: .78; transition: opacity .2s ease; }
.main-nav .menu a:hover { opacity: 1; }
.main-nav > a:not(.nav-cta) { opacity: .78; transition: opacity .2s ease; }
.main-nav > a:not(.nav-cta):hover { opacity: 1; }
.nav-cta { display: inline-flex; align-items: center; gap: 9px; padding: 11px 15px 11px 17px; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; color: #fff; transition: background .2s ease, transform .2s ease; }
.nav-cta:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.mobile-menu-button { display: none; color: #fff; background: transparent; }

.hero-section { position: relative; display: flex; align-items: center; min-height: 780px; padding: 154px max(32px, calc((100% - 1180px) / 2)) 110px; background: radial-gradient(circle at 71% 33%, rgba(72, 111, 239, .32), transparent 31%), radial-gradient(circle at 14% 85%, rgba(39, 70, 176, .32), transparent 28%), var(--navy-deep); color: #fff; isolation: isolate; }
.hero-section::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .22; background-image: radial-gradient(rgba(255,255,255,.25) .6px, transparent .6px); background-size: 19px 19px; mask-image: linear-gradient(120deg, transparent 20%, #000 75%); }
.hero-section::after { content: ""; position: absolute; z-index: -1; right: -9%; bottom: -22%; width: 63vw; height: 63vw; border: 1px solid rgba(138,164,255,.19); border-radius: 50%; box-shadow: 0 0 0 70px rgba(138,164,255,.035), 0 0 0 140px rgba(138,164,255,.025); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-glow-one { top: 19%; left: 47%; width: 5px; height: 5px; background: #fff6cf; box-shadow: 0 0 21px 7px rgba(255,237,173,.6); }
.hero-glow-two { top: 55%; left: 7%; width: 3px; height: 3px; background: #a9bcff; box-shadow: 0 0 18px 5px rgba(98,140,255,.58); }
.hero-copy { position: relative; z-index: 3; width: 52%; max-width: 590px; animation: rise-in .8s both ease-out; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #f5d889; font-size: 11px; letter-spacing: .14em; }
.hero-copy h1 { max-width: 630px; margin: 28px 0 21px; font-family: "Noto Serif TC", "Songti TC", serif; font-size: clamp(43px, 5.1vw, 71px); font-weight: 500; line-height: 1.2; letter-spacing: .055em; }
.hero-copy h1 em, h2 span, .contact-inner h2 em { color: #81a1ff; font-style: normal; }
.hero-lede { max-width: 490px; margin: 0; color: rgba(255,255,255,.72); font-size: 16px; line-height: 2; letter-spacing: .055em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 47px; padding: 0 20px; border-radius: 999px; font-size: 13px; letter-spacing: .08em; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 10px 28px rgba(36,84,214,.27); }
.button-primary:hover { background: #3266ed; box-shadow: 0 14px 30px rgba(36,84,214,.35); }
.button-ghost { border: 1px solid rgba(255,255,255,.38); color: #fff; }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.button-light { color: var(--navy); background: #fff8e9; box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.button-light:hover { background: #fff; box-shadow: 0 15px 30px rgba(0,0,0,.18); }
.hero-proof { display: flex; align-items: center; gap: 13px; margin-top: 55px; }
.proof-avatars { display: flex; }
.proof-avatars span { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; margin-right: -7px; border: 2px solid var(--navy-deep); border-radius: 50%; color: var(--navy); background: #f5d889; font-size: 10px; }
.proof-avatars span:nth-child(2) { color: #fff; background: var(--coral); }
.proof-avatars span:nth-child(3) { color: #fff; background: var(--lake); }
.hero-proof p { margin: 0 0 0 8px; color: rgba(255,255,255,.58); font-size: 11px; line-height: 1.65; letter-spacing: .08em; }
.hero-proof strong { color: #fff; font-size: 12px; font-weight: 500; }
.hero-art { position: absolute; right: max(22px, calc((100% - 1280px) / 2)); top: 140px; width: 44%; max-width: 570px; animation: rise-in .95s .1s both ease-out; }
.hero-art-frame { position: relative; overflow: hidden; aspect-ratio: 1 / 1.12; border: 9px solid rgba(255,255,255,.1); background: #172866; box-shadow: 0 25px 65px rgba(0,0,0,.28); }
.hero-art-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.34); pointer-events: none; }
.hero-art-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-art-stamp { position: absolute; left: 23px; top: 24px; display: flex; align-items: center; gap: 8px; color: #fff5ca; }
.hero-art-stamp span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255,245,202,.8); border-radius: 50%; font-family: Georgia, serif; font-size: 12px; }
.hero-art-stamp small { font-size: 8px; line-height: 1.35; letter-spacing: .16em; }
.hero-art-caption { position: absolute; right: 22px; bottom: 20px; left: 22px; display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.34); color: #fff; }
.hero-art-caption span { color: #f9d789; font-size: 8px; letter-spacing: .2em; }
.hero-art-caption strong { font-family: "Noto Serif TC", serif; font-size: 19px; font-weight: 500; letter-spacing: .1em; }
.hero-note { position: absolute; z-index: 2; padding: 9px 12px; color: var(--navy); background: #f9d789; box-shadow: 4px 7px 0 rgba(9,17,47,.22); font-size: 11px; letter-spacing: .11em; transform: rotate(4deg); }
.hero-note-one { top: 12%; right: -7%; display: flex; align-items: center; gap: 6px; }
.hero-note-two { right: -6%; bottom: 8%; padding: 13px 16px; background: #edf2ff; color: var(--blue); line-height: 1.7; transform: rotate(-4deg); }
.hero-note-two strong { color: var(--navy); font-size: 12px; font-weight: 600; }
.hero-scroll { position: absolute; right: max(32px, calc((100% - 1180px) / 2)); bottom: 42px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.5); font-size: 9px; letter-spacing: .2em; transform: rotate(90deg) translateX(100%); transform-origin: right bottom; }
.scroll-line { display: block; width: 50px; height: 1px; background: rgba(255,255,255,.45); }

.manifesto-section { position: relative; padding: 142px 0 130px; background: var(--paper); }
.manifesto-layout { display: grid; grid-template-columns: 1.06fr .94fr; gap: 100px; align-items: start; }
.section-label { display: flex; align-items: center; gap: 11px; margin: 0 0 20px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .22em; }
.section-label-light { color: #f6d489; }
.section-label-line { width: 34px; height: 1px; background: currentColor; opacity: .8; }
h2 { margin: 0; font-family: "Noto Serif TC", "Songti TC", serif; font-size: clamp(32px, 4vw, 52px); font-weight: 500; line-height: 1.35; letter-spacing: .06em; }
.manifesto-intro h2 { color: var(--navy); }
.manifesto-body { padding-top: 44px; }
.manifesto-body p { margin: 0 0 20px; color: var(--muted-ink); font-size: 15px; line-height: 2.15; letter-spacing: .04em; }
.manifesto-body .large-copy { margin-bottom: 25px; color: var(--ink); font-family: "Noto Serif TC", serif; font-size: 21px; line-height: 1.75; }
.text-link { display: inline-flex; align-items: center; gap: 9px; padding-bottom: 6px; border-bottom: 1px solid currentColor; color: var(--blue); font-size: 12px; letter-spacing: .1em; transition: gap .2s ease; }
.text-link:hover { gap: 14px; }
.manifesto-stamp { position: absolute; right: 6%; bottom: 47px; color: rgba(36,84,214,.12); font-family: Georgia, serif; font-size: 20px; line-height: 1.4; letter-spacing: .22em; text-align: center; transform: rotate(-13deg); }
.manifesto-stamp span { font-size: 28px; }

.programme-section { padding: 127px 0 140px; background: var(--cream); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 58px; }
.heading-aside { width: 32%; margin: 0 0 4px; color: var(--muted-ink); font-size: 14px; line-height: 2; letter-spacing: .04em; }
.programme-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.programme-card { position: relative; min-height: 332px; padding: 28px 29px 29px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.programme-card:hover { transform: translateY(-7px); box-shadow: 0 22px 40px rgba(16,27,75,.13); }
.programme-blue { color: #fff; background: var(--blue); }
.programme-coral { color: #fff; background: var(--coral); }
.programme-gold { color: var(--navy); background: #f6c667; }
.programme-card::after { content: "✦"; position: absolute; right: 19px; bottom: -25px; color: rgba(255,255,255,.12); font-size: 122px; line-height: 1; }
.programme-gold::after { color: rgba(16,27,75,.09); }
.programme-card-top { display: flex; justify-content: space-between; align-items: start; }
.programme-number { font-family: Georgia, serif; font-size: 11px; letter-spacing: .2em; opacity: .72; }
.programme-card .card-eyebrow, .card-eyebrow { margin: 45px 0 11px; color: rgba(255,255,255,.67); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.programme-gold .card-eyebrow, .programme-gold .tag-row span { color: rgba(16,27,75,.62); }
.programme-card h3 { margin: 0 0 15px; font-family: "Noto Serif TC", serif; font-size: 28px; font-weight: 500; letter-spacing: .08em; }
.programme-card > p:not(.card-eyebrow) { position: relative; z-index: 1; max-width: 275px; margin: 0; color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.9; letter-spacing: .05em; }
.programme-gold > p:not(.card-eyebrow) { color: rgba(16,27,75,.72); }
.tag-row { position: absolute; bottom: 27px; left: 29px; display: flex; gap: 7px; flex-wrap: wrap; }
.tag-row span { padding: 5px 8px; border: 1px solid rgba(255,255,255,.32); color: rgba(255,255,255,.72); font-size: 9px; letter-spacing: .08em; }
.circle-arrow { position: absolute; right: 24px; bottom: 25px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.46); border-radius: 50%; color: #fff; transition: transform .2s ease, background .2s ease; }
.circle-arrow:hover { background: rgba(255,255,255,.16); transform: rotate(8deg); }
.programme-gold .circle-arrow { border-color: rgba(16,27,75,.45); color: var(--navy); }

.stage-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 690px; background: var(--navy); color: #fff; }
.stage-image-wrap { position: relative; min-height: 650px; overflow: hidden; }
.stage-image-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,17,47,.05), rgba(9,17,47,.35)); pointer-events: none; }
.stage-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage-image-label { position: absolute; z-index: 2; right: 33px; bottom: 34px; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; text-align: right; }
.stage-image-label span { color: #f6d489; font-size: 9px; letter-spacing: .2em; }
.stage-image-label strong { font-family: "Noto Serif TC", serif; font-size: 24px; font-weight: 500; line-height: 1.5; letter-spacing: .06em; }
.stage-content { padding: 120px max(36px, calc((100vw - 1180px) / 2)) 80px 85px; }
.stage-content h2 { color: #fff; }
.stage-content h2 em { color: #f6d489; font-style: normal; }
.stage-content > p { max-width: 470px; margin: 25px 0 44px; color: rgba(255,255,255,.64); font-size: 14px; line-height: 2.1; letter-spacing: .04em; }
.stage-points { max-width: 470px; }
.stage-points > div { display: grid; grid-template-columns: 36px 1fr; gap: 4px 15px; padding: 19px 0; border-top: 1px solid rgba(255,255,255,.15); }
.stage-points span { grid-row: 1 / span 2; color: #6f92ff; font-family: Georgia, serif; font-size: 11px; }
.stage-points strong { font-size: 14px; font-weight: 500; letter-spacing: .08em; }
.stage-points small { color: rgba(255,255,255,.52); font-size: 11px; line-height: 1.8; letter-spacing: .04em; }

.case-section { padding: 140px 0 150px; background: var(--paper); }
.case-heading { margin-bottom: 53px; }
.text-link-dark { color: var(--navy); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { border: 1px solid var(--line); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.case-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(16,27,75,.1); }
.case-card-visual { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / .8; overflow: hidden; background: #e7e9f3; }
.case-card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-art-frame img, .stage-image-wrap img, .case-card-visual img, .case-hero-image img { object-position: center; }
.case-card:hover .case-card-visual img { transform: scale(1.04); }
.case-coral .case-card-visual { background: #f6d9d2; }
.case-blue .case-card-visual { background: #dae4ff; }
.case-gold .case-card-visual { background: #fae2ab; }
.case-index { position: absolute; top: 17px; right: 17px; display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; border: 1px solid rgba(16,27,75,.28); border-radius: 50%; color: var(--navy); font-family: Georgia, serif; font-size: 11px; background: rgba(255,255,255,.43); }
.case-symbol { color: var(--blue); font-family: Georgia, serif; font-size: 133px; font-weight: 300; line-height: 1; }
.case-symbol::after { content: "✦"; display: block; margin-top: -106px; margin-left: 42px; color: var(--coral); font-size: 27px; }
.case-card-copy { padding: 24px 25px 22px; }
.case-card-copy .card-eyebrow { margin: 0 0 10px; color: var(--blue); }
.case-card-copy h3 { margin: 0 0 13px; color: var(--navy); font-family: "Noto Serif TC", serif; font-size: 22px; font-weight: 500; line-height: 1.5; letter-spacing: .06em; }
.case-excerpt { min-height: 52px; margin: 0 0 16px; color: var(--muted-ink); font-size: 13px; line-height: 1.85; letter-spacing: .03em; }
.case-card details { border-top: 1px solid var(--line); }
.case-card summary { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; color: var(--blue); cursor: pointer; list-style: none; font-size: 11px; letter-spacing: .08em; }
.case-card summary::-webkit-details-marker { display: none; }
.case-card summary svg { transition: transform .2s ease; }
.case-card details[open] summary svg { transform: rotate(180deg); }
.case-card details > p { margin: 11px 0 0; color: var(--muted-ink); font-size: 12px; line-height: 1.85; }

.quote-section { position: relative; display: flex; align-items: center; justify-content: center; min-height: 410px; overflow: hidden; background: #ebefff; color: var(--navy); text-align: center; }
.quote-section::before, .quote-section::after { content: ""; position: absolute; width: 370px; height: 370px; border: 1px solid rgba(36,84,214,.12); border-radius: 50%; }
.quote-section::before { left: -170px; top: -125px; box-shadow: 0 0 0 50px rgba(36,84,214,.03), 0 0 0 100px rgba(36,84,214,.025); }
.quote-section::after { right: -175px; bottom: -170px; }
.quote-inner { position: relative; z-index: 1; }
.quote-inner blockquote { margin: 24px 0 20px; font-family: "Noto Serif TC", serif; font-size: clamp(30px, 4.4vw, 56px); font-weight: 500; line-height: 1.55; letter-spacing: .08em; }
.quote-inner blockquote em { color: var(--blue); font-style: normal; }
.quote-inner > p:last-child { color: var(--muted-ink); font-size: 11px; letter-spacing: .16em; }
.quote-orbit span { position: absolute; color: var(--blue); font-family: Georgia, serif; font-size: 20px; }
.quote-orbit span:first-child { top: 31%; left: 21%; color: var(--coral); }
.quote-orbit span:nth-child(2) { right: 23%; top: 30%; font-size: 36px; color: var(--gold); }
.quote-orbit span:last-child { right: 25%; bottom: 20%; color: var(--lake); }

.process-section { padding: 140px 0; background: var(--cream); }
.process-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 115px; }
.process-intro h2 { color: var(--navy); }
.process-intro > p { max-width: 390px; margin: 24px 0 31px; color: var(--muted-ink); font-size: 14px; line-height: 2; }
.process-steps { padding-top: 10px; }
.process-step { display: grid; grid-template-columns: 45px 1fr auto; gap: 21px; align-items: start; padding: 22px 0 25px; border-top: 1px solid var(--line); }
.step-number { color: var(--blue); font-family: Georgia, serif; font-size: 11px; letter-spacing: .15em; }
.process-step h3 { margin: 0 0 8px; color: var(--navy); font-family: "Noto Serif TC", serif; font-size: 20px; font-weight: 500; letter-spacing: .08em; }
.process-step p { max-width: 390px; margin: 0; color: var(--muted-ink); font-size: 12px; line-height: 1.85; }
.process-step > svg { color: var(--blue); }

.faq-section { padding: 140px 0 150px; background: var(--paper); }
.faq-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 115px; }
.faq-intro { max-width: 360px; margin: 24px 0 21px; color: var(--muted-ink); font-size: 14px; line-height: 2; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 23px 0; color: var(--navy); background: transparent; text-align: left; cursor: pointer; }
.faq-item button > span { display: flex; align-items: center; gap: 19px; font-family: "Noto Serif TC", serif; font-size: 17px; letter-spacing: .07em; }
.faq-item button small { color: var(--blue); font-family: Georgia, serif; font-size: 10px; letter-spacing: .1em; }
.faq-item button > svg, .faq-item button > span:last-child { color: var(--blue); transition: transform .25s ease; }
.faq-open button > svg, .faq-open button > span:last-child { transform: rotate(180deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-answer p { overflow: hidden; margin: 0; color: var(--muted-ink); font-size: 13px; line-height: 1.95; }
.faq-open .faq-answer { grid-template-rows: 1fr; }
.faq-open .faq-answer p { padding: 0 40px 23px 52px; }

.contact-section { position: relative; min-height: 535px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--blue); color: #fff; text-align: center; }
.contact-section::before { content: ""; position: absolute; inset: -80px -20%; background: radial-gradient(ellipse at center, rgba(113,153,255,.5), transparent 54%); }
.contact-section::after { content: ""; position: absolute; inset: 14% 9%; border: 1px solid rgba(255,255,255,.19); border-radius: 50% 50% 0 0; transform: perspective(400px) rotateX(12deg); }
.contact-backdrop span { position: absolute; z-index: 1; color: #f9d789; font-size: 19px; }
.contact-backdrop span:first-child { top: 22%; left: 18%; }
.contact-backdrop span:nth-child(2) { top: 31%; right: 17%; font-size: 31px; }
.contact-backdrop span:last-child { bottom: 19%; left: 29%; font-size: 12px; }
.contact-inner { position: relative; z-index: 2; display: flex; align-items: center; flex-direction: column; }
.contact-icon { display: flex; align-items: center; justify-content: center; width: 61px; height: 61px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: #f9d789; }
.contact-inner h2 { font-size: clamp(34px, 4.6vw, 57px); }
.contact-inner h2 em { color: #f9d789; }
.contact-inner > p { margin: 23px 0 29px; color: rgba(255,255,255,.76); font-size: 14px; line-height: 2; letter-spacing: .04em; }
.contact-links { display: flex; align-items: center; gap: 13px; margin-top: 33px; color: rgba(255,255,255,.66); font-size: 11px; letter-spacing: .08em; }
.contact-links a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s ease; }
.contact-links a:hover { color: #fff; }
.rotate-180 { transform: rotate(180deg); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px max(32px, calc((100% - 1180px) / 2)); color: rgba(255,255,255,.67); background: var(--navy-deep); font-size: 10px; letter-spacing: .08em; }
.footer-brand { color: #fff; }
.footer-brand strong { font-family: "Noto Serif TC", serif; font-size: 13px; font-weight: 500; letter-spacing: .1em; }
.brand-mark-small { width: 28px; height: 28px; }
.brand-mark-small::before { inset: 5px; }
.brand-mark-small .brand-curtain { bottom: 5px; width: 8px; height: 12px; }
.brand-mark-small .brand-curtain-left { left: 5px; }
.brand-mark-small .brand-curtain-right { right: 5px; }
.brand-mark-small .brand-star { font-size: 9px; }
.site-footer > p { margin: 0; }
.footer-meta { color: rgba(255,255,255,.38); }

@keyframes rise-in { from { opacity: 0; transform: translateY(17px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 980px) {
  .section-wrap { width: min(100% - 42px, 720px); }
  .site-header { width: calc(100% - 42px); }
  .main-nav { gap: 17px; font-size: 11px; }
  .hero-section { min-height: 820px; padding-left: 42px; padding-right: 42px; }
  .hero-copy { width: 56%; }
  .hero-art { right: 25px; width: 43%; }
  .hero-note-one { right: -5%; }
  .hero-note-two { right: -2%; }
  .manifesto-layout, .process-layout, .faq-layout { gap: 55px; }
  .stage-content { padding-left: 55px; }
  .site-footer { padding-left: 21px; padding-right: 21px; }
}

@media (max-width: 720px) {
  .section-wrap { width: calc(100% - 38px); }
  .site-header { width: calc(100% - 38px); padding-top: 20px; }
  .brand-copy small { display: none; }
  .mobile-menu-button { display: block; }
  .main-nav { position: absolute; top: 72px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(9,17,47,.96); box-shadow: 0 16px 30px rgba(0,0,0,.2); }
  .main-nav .menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav .menu a { display: block; padding: 13px 12px; }
  .main-nav-open { display: flex; }
  .main-nav > a { padding: 13px 12px; }
  .nav-cta { margin-top: 5px; justify-content: center; }
  .hero-section { min-height: auto; display: block; padding: 123px 19px 62px; }
  .hero-copy { width: 100%; max-width: 560px; }
  .hero-copy h1 { margin-top: 24px; font-size: clamp(39px, 12vw, 57px); }
  .hero-lede { font-size: 14px; line-height: 1.9; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 9px; max-width: 320px; }
  .hero-proof { margin-top: 31px; }
  .hero-art { position: relative; top: auto; right: auto; width: 90%; max-width: 430px; margin: 47px 0 0 auto; }
  .hero-art-frame { aspect-ratio: 1 / 1.03; }
  .hero-note-one { top: 5%; right: -4%; }
  .hero-note-two { right: -6%; bottom: 7%; }
  .hero-scroll { display: none; }
  .manifesto-section, .programme-section, .case-section, .process-section, .faq-section { padding: 90px 0; }
  .manifesto-layout, .process-layout, .faq-layout { display: block; }
  .manifesto-body { padding-top: 28px; }
  .manifesto-stamp { display: none; }
  .section-heading-row { display: block; margin-bottom: 37px; }
  .heading-aside { width: 100%; margin-top: 24px; }
  .programme-list, .case-grid { grid-template-columns: 1fr; gap: 15px; }
  .programme-card { min-height: 290px; }
  .stage-section { display: block; }
  .stage-image-wrap { min-height: 470px; }
  .stage-content { padding: 78px 19px 80px; }
  .stage-content > p { font-size: 13px; }
  .case-heading .text-link { margin-top: 24px; }
  .case-card-visual { aspect-ratio: 1.35 / 1; }
  .quote-section { min-height: 330px; padding: 50px 19px; }
  .quote-inner blockquote { font-size: 30px; }
  .process-intro > p, .faq-intro { max-width: none; }
  .process-steps { margin-top: 47px; }
  .faq-list { margin-top: 51px; }
  .faq-item button > span { gap: 12px; font-size: 15px; }
  .faq-open .faq-answer p { padding-left: 38px; }
  .contact-section { min-height: 505px; padding: 70px 19px; }
  .contact-inner > p { font-size: 13px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding-top: 28px; padding-bottom: 28px; }
}

@media (max-width: 390px) {
  .hero-copy h1 { font-size: 38px; }
  .hero-art { width: 93%; }
  .hero-note-one { right: -6%; font-size: 9px; }
  .hero-note-two { right: -8%; font-size: 10px; }
  .programme-card h3 { font-size: 25px; }
  .contact-links { flex-wrap: wrap; justify-content: center; }
}


/* Case study pages: the homepage remains a compact Hub, while these pages carry the complete narrative. */
.case-page { min-height: 100vh; color: var(--ink); background: var(--paper); }
.case-page-nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 25px 0; color: var(--navy); font-size: 12px; letter-spacing: .08em; }
.case-back, .case-ig { display: inline-flex; align-items: center; gap: 8px; transition: color .2s ease, transform .2s ease; }
.case-back:hover, .case-ig:hover { color: var(--blue); transform: translateX(-2px); }
.case-ig:hover { transform: translateX(2px); }
.case-hero { display: grid; grid-template-columns: .93fr 1.07fr; min-height: 570px; background: var(--navy); color: #fff; }
.case-hero-copy { display: flex; flex-direction: column; justify-content: center; max-width: 590px; padding: 70px max(32px, calc((100vw - 1180px) / 2)); padding-right: 62px; background: radial-gradient(circle at 25% 12%, rgba(79,124,255,.5), transparent 35%), var(--navy); }
.case-page-label { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 44px; color: #f6d489; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.case-page-number { margin-bottom: 13px; color: #86a5ff; font-family: Georgia, serif; font-size: 11px; letter-spacing: .22em; }
.case-hero h1 { margin: 0; font-family: "Noto Serif TC", serif; font-size: clamp(41px, 4vw, 60px); font-weight: 500; line-height: 1.35; letter-spacing: .08em; }
.case-hero h1 span { display: block; }
.case-hero-copy > p:last-child { max-width: 440px; margin: 23px 0 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 2; letter-spacing: .05em; }
.case-hero-image { position: relative; min-height: 570px; overflow: hidden; }
.case-hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,17,47,.35), transparent 45%); }
.case-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-hero-image > span { position: absolute; z-index: 1; right: 30px; bottom: 28px; color: rgba(255,255,255,.72); font-size: 8px; letter-spacing: .2em; }
.case-facts-wrap { position: relative; z-index: 3; margin-top: -44px; }
.case-facts { display: grid; grid-template-columns: repeat(3, 1fr); width: min(1040px, calc(100% - 64px)); margin: 0 auto; box-shadow: 0 18px 35px rgba(16,27,75,.12); background: #fff; }
.case-facts > div { display: flex; flex-direction: column; gap: 9px; padding: 25px 30px; border-right: 1px solid var(--line); }
.case-facts > div:last-child { border-right: 0; }
.case-facts small { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.case-facts strong { color: var(--navy); font-family: "Noto Serif TC", serif; font-size: 16px; font-weight: 500; letter-spacing: .05em; }
.case-story { width: min(1040px, calc(100% - 64px)); margin: 0 auto; padding: 120px 0 112px; }
.case-story-lead { max-width: 780px; margin: 0 0 85px; color: var(--navy); font-family: "Noto Serif TC", serif; font-size: clamp(22px, 2.6vw, 33px); line-height: 1.8; letter-spacing: .07em; }
.case-story-grid { display: grid; grid-template-columns: 180px 1fr; gap: 75px; }
.case-story-index { position: relative; padding-top: 12px; border-top: 1px solid var(--blue); color: var(--blue); font-family: Georgia, serif; font-size: 10px; line-height: 1.55; letter-spacing: .16em; }
.case-story-index i { position: absolute; top: 74px; left: 35px; color: var(--coral); font-size: 30px; font-style: normal; }
.case-story-content { border-top: 1px solid var(--line); }
.case-story-block { display: grid; grid-template-columns: 45px 1fr; gap: 20px; padding: 25px 0 31px; border-bottom: 1px solid var(--line); }
.case-story-block > span { color: var(--blue); font-family: Georgia, serif; font-size: 11px; letter-spacing: .13em; }
.case-story-block h2 { margin: 0 0 10px; font-size: 23px; }
.case-story-block p { margin: 0; color: var(--muted-ink); font-size: 14px; line-height: 2.05; letter-spacing: .04em; }
.case-takeaway { padding: 95px 24px; color: #fff; background: #355de2; text-align: center; }
.case-takeaway small { color: #f6d489; font-size: 10px; font-weight: 700; letter-spacing: .19em; }
.case-takeaway blockquote { max-width: 860px; margin: 26px auto 0; font-family: "Noto Serif TC", serif; font-size: clamp(27px, 3.8vw, 48px); font-weight: 500; line-height: 1.65; letter-spacing: .08em; }
.case-contact { display: flex; align-items: center; justify-content: space-between; gap: 35px; width: min(1040px, calc(100% - 64px)); margin: 0 auto; padding: 96px 0; }
.case-contact small { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .17em; }
.case-contact h2 { margin-top: 13px; font-size: clamp(25px, 3vw, 38px); }
.case-contact a { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 14px 19px; border-radius: 999px; color: #fff; background: var(--blue); font-size: 12px; letter-spacing: .08em; transition: transform .2s ease, background .2s ease; }
.case-contact a:hover { background: #3266ed; transform: translateY(-3px); }
.case-footer { display: flex; justify-content: space-between; width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted-ink); font-size: 10px; letter-spacing: .1em; }
.case-footer a { color: var(--navy); font-family: "Noto Serif TC", serif; font-size: 13px; letter-spacing: .1em; }
.case-story-link { display: inline-flex; align-items: center; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--blue); font-size: 11px; letter-spacing: .08em; transition: gap .2s ease; }
.case-story-link:hover { gap: 13px; }
.case-archive-page h1, .generic-page h1 { margin: 0 0 21px; color: var(--navy); font-family: "Noto Serif TC", serif; font-size: clamp(38px, 5vw, 64px); font-weight: 500; letter-spacing: .07em; }
.archive-intro, .generic-lede { max-width: 550px; margin: 0 0 45px; color: var(--muted-ink); font-size: 15px; line-height: 2; }
.generic-page { min-height: 65vh; padding: 150px 0 120px; background: var(--paper); }
.generic-content { max-width: 760px; color: var(--muted-ink); font-size: 15px; line-height: 2; }
.generic-content h2, .generic-content h3 { color: var(--navy); font-family: "Noto Serif TC", serif; font-weight: 500; }

@media (max-width: 720px) {
  .case-page-nav, .case-facts, .case-story, .case-contact, .case-footer { width: calc(100% - 38px); }
  .case-page-nav { padding: 19px 0; font-size: 10px; }
  .case-hero { display: flex; flex-direction: column; }
  .case-hero-copy { display: block; max-width: none; padding: 64px 19px 58px; }
  .case-page-label { margin-bottom: 29px; }
  .case-hero h1 { font-size: 40px; }
  .case-hero-image { min-height: 334px; }
  .case-facts-wrap { margin-top: 0; background: var(--navy); padding-bottom: 23px; }
  .case-facts { grid-template-columns: 1fr; }
  .case-facts > div { padding: 17px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .case-facts > div:last-child { border-bottom: 0; }
  .case-story { padding: 74px 0; }
  .case-story-lead { margin-bottom: 50px; font-size: 21px; }
  .case-story-grid { display: block; }
  .case-story-index { display: none; }
  .case-story-block { grid-template-columns: 32px 1fr; gap: 12px; }
  .case-story-block h2 { font-size: 19px; }
  .case-story-block p { font-size: 13px; }
  .case-takeaway { padding: 72px 19px; }
  .case-takeaway blockquote { font-size: 27px; }
  .case-contact { display: block; padding: 68px 0; }
  .case-contact a { margin-top: 28px; }
  .case-footer { padding: 22px 0; }
}

/* Editable WordPress story content and transparent proposal labels. */
.hmt-example-note { margin: 0 0 28px; padding: 18px 22px; border-left: 3px solid var(--blue); background: #edf2ff; color: var(--navy); font-size: 13px; line-height: 1.9; }
.hmt-case-content { max-width: 820px; }
.hmt-case-content h2 { margin-top: 36px; }
.hmt-case-content img { max-width: 100%; height: auto; }
