/* Visual language follows the OST Canva deck: linen paper, Baskerville serif, warm brown, dot grids. */
:root {
  --bg: #f1ece5;
  --paper: #f8f5f0;
  --ink: #1a1a1a;
  --ink-2: #3b3631;
  --muted: #7b7068;
  --brown: #896f5d;
  --brown-dark: #5e4a3d;
  --ochre: #a8763e;
  --dark: #26221f;
  --line: #ddd4c9;
  --radius: 14px;
  --max: 1140px;
  --serif: "Libre Baskerville", "Noto Serif TC", "Songti TC", Georgia, serif;
  /* names used by review.html's inline styles */
  --navy: var(--ink);
  --teal: var(--brown);
  --accent: var(--ochre);
  --card: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ochre); }
img { max-width: 100%; display: block; }

/* bilingual: Chinese first, English beneath */
.en { display: block; color: var(--muted); font-size: .88em; line-height: 1.65; margin-top: .2em; }
.inline .en, .en.inline { display: inline; margin: 0 0 0 .4em; }
h1, h2, h3 { font-weight: 400; }
h1 .en, h2 .en, h3 .en { letter-spacing: .02em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; }

/* decorative dot grid, as on every deck slide */
.dots { position: absolute; width: 150px; height: 90px; pointer-events: none; opacity: .75;
  background-image: radial-gradient(var(--ink) 1.3px, transparent 1.6px); background-size: 18px 18px; }
@media (max-width: 640px) { .dots { display: none; } }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(241,236,229,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { color: var(--brown); text-decoration: none; font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 50%; mix-blend-mode: multiply; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 6px 12px; border-bottom: 1.5px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--brown-dark); border-bottom-color: var(--brown); }
@media (max-width: 1100px) { .nav-en { display: none; } }
@media (max-width: 760px) { .brand span { display: none; } .nav-links a { padding: 6px 8px; } }
@media (max-width: 380px) { .nav-links { gap: 0; } .nav-links a { padding: 6px 5px; font-size: 13px; } }

/* buttons */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px 28px; border-radius: 4px; font-family: var(--serif); font-weight: 700; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-size: 16px; line-height: 1.35; letter-spacing: .03em; transition: background .15s ease, color .15s ease, transform .15s ease; }
.btn .en { color: inherit; opacity: .78; font-size: 12px; font-weight: 400; margin: 2px 0 0; text-transform: uppercase; letter-spacing: .12em; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brown-dark); }
.btn-primary { background: var(--brown); color: #fff; }
.btn-primary:hover { background: var(--brown-dark); }
.btn-teal, .btn-brown { background: var(--brown); color: #fff; }
.btn-teal:hover, .btn-brown:hover { background: var(--brown-dark); }
.btn-ghost { background: transparent; color: var(--brown-dark); border-color: var(--brown); }
.btn-ghost:hover { background: var(--brown); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* hero — echoes slide 2 */
.hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; } .trip-badge, .hero-cta { margin-left: auto; margin-right: auto; } }
.hero-brand { text-align: center; }
.hero-brand img { width: min(300px, 70%); margin: 0 auto 18px; mix-blend-mode: multiply; }
.hero-brand .name { font-size: clamp(30px, 4vw, 40px); color: var(--brown); font-weight: 700; line-height: 1.3; }
.hero-brand .tag { text-transform: uppercase; letter-spacing: .32em; font-size: 13px; margin-top: 8px; }
.hero-brand .since { color: var(--muted); font-size: 13px; letter-spacing: .1em; }
.veni { color: var(--brown); text-transform: uppercase; letter-spacing: .04em; font-size: 20px; margin: 0; }
.grew { color: var(--brown); text-transform: uppercase; font-weight: 700; font-size: clamp(26px, 3.4vw, 36px); margin: 4px 0 26px; line-height: 1.3; }
.hero-text { container-type: inline-size; }
.hero h1 { font-size: clamp(22px, 7.3cqi, 48px); line-height: 1.35; margin: 0 0 18px; letter-spacing: .02em; }
.hero h1 .zh { white-space: nowrap; }
@media (min-width: 861px) { .hero h1 .en { white-space: nowrap; } }
.hero h1 .en { font-size: .44em; color: var(--brown); text-transform: uppercase; letter-spacing: .14em; margin-top: 10px; }
.hero .lead { font-size: 17px; color: var(--ink-2); margin: 0; }
/* badge and both CTAs share one width so they line up as a column */
.hero-cta { display: grid; gap: 14px; margin-top: 16px; width: 100%; max-width: 440px; }
.hero-cta .btn { width: 100%; }
.trip-badge { display: flex; gap: 14px; align-items: center; justify-content: center; text-align: center; width: 100%; max-width: 440px; border: 1.5px solid var(--brown); border-radius: 4px; padding: 14px 18px; margin-top: 26px; font-size: 15px; background: rgba(255,255,255,.4); }
.trip-badge strong { color: var(--brown-dark); }

/* sections */
section { padding: 88px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.35; margin: 0 0 14px; letter-spacing: .02em; }
.section-head h2 .en { text-transform: uppercase; color: var(--ink); font-size: .62em; letter-spacing: .04em; margin-top: 6px; }
.section-head p { color: var(--ink-2); margin: 0; font-size: 16.5px; }
.kicker { color: var(--brown); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.alt { background: rgba(255,255,255,.35); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.45; font-weight: 700; }
.card h3 .en { font-weight: 400; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.why-num { font-size: 34px; color: var(--brown); line-height: 1; margin-bottom: 14px; }

/* about photos */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.cities { color: var(--brown-dark); font-size: 15px; letter-spacing: .04em; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }

/* facts — dark photo cards like the "Facts Overview" slide */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.fact { position: relative; border-radius: 18px; overflow: hidden; color: #fff; min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; background: var(--dark) center / cover no-repeat; }
.fact::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20,18,16,.55), rgba(20,18,16,.35) 40%, rgba(20,18,16,.8)); }
.fact > * { position: relative; }
.fact .num { font-size: 44px; line-height: 1.1; }
.fact .lbl { font-size: 22px; line-height: 1.3; }
.fact .lbl .en, .fact .desc .en { color: rgba(255,255,255,.75); }
.fact .desc { font-size: 14.5px; line-height: 1.65; }

/* past visits — photo + caption like the host slides */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .timeline { grid-template-columns: 1fr; } }
.host { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.host img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.host .cap { padding: 20px 22px 24px; }
.host .when { font-weight: 700; font-size: 15px; line-height: 1.45; }
.host .co { font-size: 21px; font-weight: 700; margin: 6px 0 10px; }
.host p { font-size: 14.5px; margin: 0; color: var(--ink-2); }

/* stories — case study slides */
.stories-row { margin-bottom: 22px; }
.story { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.story .lead-q { font-weight: 700; font-size: 18px; line-height: 1.6; margin: 0 0 6px; }
.story .lead-q b { font-size: 1.2em; }
.story h3 { font-size: 22px; margin: 18px 0 10px; }
.story blockquote { margin: 20px 0 0; padding: 16px 0 0 0; border-top: 1px solid var(--line); font-style: italic; color: var(--brown-dark); }
.quote-mark { font-size: 64px; line-height: .6; color: var(--ink); font-weight: 700; height: 34px; }

/* testimonials — summary cards linking out to the original articles */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonials.featured { grid-template-columns: repeat(2, 1fr); margin-bottom: 22px; }
@media (max-width: 900px) { .testimonials, .testimonials.featured { grid-template-columns: 1fr; } }
.tm { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 26px; display: flex; flex-direction: column; gap: 16px; }
.tm p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.tm .pull { color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1.55; }
.tm .pull .en { font-size: 15px; font-weight: 400; }
.tm .who { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; }
.tm .who span { color: var(--brown); font-size: 13.5px; letter-spacing: .04em; }
.tm .more { margin-top: auto; color: var(--brown-dark); font-weight: 700; text-decoration: none; font-size: 14.5px; }
.tm .more:hover { color: var(--ochre); }
.tm .more small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }

.articles a { display: block; padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); margin-bottom: 10px; }
.articles a:hover { border-color: var(--brown); }
.articles small { color: var(--muted); display: block; margin-top: 4px; }

/* two paths */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.paths.single { grid-template-columns: minmax(0, 560px); justify-content: center; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }
.path { position: relative; border-radius: 18px; overflow: hidden; padding: 40px 36px; color: #fff; display: flex; flex-direction: column; gap: 14px; background: var(--dark) center / cover no-repeat; min-height: 460px; }
.path::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(26,22,19,.82), rgba(26,22,19,.68)); }
.path.path-stu::before { background: linear-gradient(rgba(94,74,61,.9), rgba(94,74,61,.78)); }
.path > * { position: relative; }
.path .en { color: rgba(255,255,255,.78); }
.path .btn .en { color: inherit; }
.path h3 { font-size: 27px; margin: 0; line-height: 1.4; }
.path ul { padding-left: 20px; margin: 0; }
.path li { margin-bottom: 10px; }
.path .btn { align-self: flex-start; margin-top: auto; }
.path .who { font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: #e9dccd; }

/* inner page header */
.page-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 44px); margin: 0 0 14px; line-height: 1.35; letter-spacing: .02em; }
.page-hero h1 .en { text-transform: uppercase; font-size: .5em; color: var(--brown); letter-spacing: .06em; margin-top: 8px; }
.page-hero p { color: var(--ink-2); }
.page-hero .eyebrow { color: var(--brown); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.crumb { color: var(--muted); font-size: 14px; text-decoration: none; display: inline-block; margin-bottom: 18px; }
.crumb:hover { color: var(--brown-dark); }

.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 16px 12px; border-bottom: 1px solid var(--line); }
.info-table th { width: 30%; color: var(--brown-dark); font-size: 15px; }
@media (max-width: 640px) { .info-table th, .info-table td { display: block; width: 100%; padding: 8px 0; } .info-table th { padding-top: 18px; border: 0; } }
.price { font-size: 26px; font-weight: 700; color: var(--brown-dark); }
.note { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--brown); border-radius: 6px; padding: 16px 18px; font-size: 15px; }
.note.blue { border-left-color: var(--ochre); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 18px 18px 18px 68px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--brown); color: var(--brown); font-weight: 700; display: grid; place-items: center; }

.embed { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.embed iframe { display: block; width: 100%; height: 2600px; border: 0; background: transparent; }

/* forms */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; display: grid; gap: 22px; }
@media (max-width: 640px) { .form { padding: 22px; } }
.form-group { margin: 14px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 20px; color: var(--brown-dark); }
.form-group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form-group .en { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; }
.field input[type="file"] { padding: 10px; background: #fff; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; }
.field label .req { color: var(--ochre); }
.field label .en { font-weight: 400; }
.field .hint { font-size: 13.5px; color: var(--muted); margin: -4px 0 8px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 16px; background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(137,111,93,.15); }
.field .count { font-size: 12px; color: var(--muted); text-align: right; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--brown); }
.hp { position: absolute; left: -9999px; }
.msg { padding: 14px 18px; border-radius: 6px; display: none; }
.msg.ok { display: block; background: #eef2ea; border: 1px solid #cbd8c1; }
.msg.err { display: block; background: #f6e9e6; border: 1px solid #e3c3bb; }
.success-box { text-align: center; padding: 48px 24px; }
.success-box img { width: 120px; margin: 0 auto; mix-blend-mode: multiply; }

/* scholarship tiers */
.tier { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: var(--paper); border-top: 4px solid var(--brown); }
.tier.flight { border-top-color: var(--ink); }
.tier .label { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--brown); }
.tier h3 { margin: 8px 0 10px; font-size: 22px; font-weight: 700; }

/* closing quote band — echoes the last slide */
.closing { text-align: center; padding: 96px 0; }
.closing p { font-size: 20px; max-width: 760px; margin: 0 auto; }
.closing .interest-form, .closing .success-box { max-width: 640px; margin: 36px auto 0; }
.closing .interest-form { text-align: left; }
.closing .interest-form p, .closing .success-box p { font-size: 16px; }

footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--muted); }
footer a { color: var(--ochre); }
.center { text-align: center; }
.muted { color: var(--muted); }
