/* MyHomePage professional brand homepage.
   Editorial layout and mobile-first navigation. No runtime JS dependency. */
:root {
  --home-ink: #13293a;
  --home-ink-soft: #2a4152;
  --home-muted: #587080;
  --home-teal: #166f72;
  --home-teal-light: #d8eeea;
  --home-paper: #fbfaf6;
  --home-white: #fffefa;
  --home-tint: #eff4f1;
  --home-stroke: #dce5e2;
  --home-deep: #122a3a;
  --home-deep-2: #1c3948;
  --home-shadow: 0 18px 55px rgb(18 42 58 / 8%);
}
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--home-paper);
  color: var(--home-ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid #12868c;
  outline-offset: 4px;
}
::selection { background: #d2eee8; color: #123646; }
.home-container { width: min(100% - 72px, 1160px); margin-inline: auto; }
.home-skip {
  position: fixed;
  left: 16px;
  top: -90px;
  z-index: 2000;
  background: var(--home-deep);
  color: #fff;
  border-radius: 8px;
  padding: 12px 18px;
  text-decoration: none;
}
.home-skip:focus { top: 12px; color: #fff; }
.navbar {
  min-height: 76px;
  padding: 12px 0;
  background: rgb(251 250 246 / 95%);
  border-bottom: 1px solid var(--home-stroke);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.navbar .home-container { display: flex; justify-content: space-between; align-items: center; }
.navbar-brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--home-ink) !important;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.065em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--home-deep);
  color: #fff;
  font-size: 11px;
  letter-spacing: -.05em;
  line-height: 1;
}
.navbar-toggler {
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid #c8d5d2;
  border-radius: 9px;
  box-shadow: none !important;
}
.navbar-toggler-icon { width: 21px; height: 21px; }
.navbar-nav { gap: 2px; }
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--home-ink-soft) !important;
  border-radius: 8px;
  padding: 8px 12px !important;
}
.nav-link:hover, .nav-link.active { background: #e9f1ee; color: var(--home-teal) !important; }
.nav-link--resume { border: 1px solid #ccd9d5; margin-left: 6px; }
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--home-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}
.section-eyebrow::before { content: ""; display: block; width: 22px; height: 2px; background: currentColor; }
.section-title {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.28;
  letter-spacing: -.04em;
  font-weight: 800;
  text-wrap: balance;
}
.section-intro { max-width: 650px; margin: 14px 0 0; color: var(--home-muted); font-size: 16px; }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--home-teal);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.text-link:hover { color: #0a4b50; text-decoration: underline; text-underline-offset: 5px; }
.action-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 50px;
  padding: 12px 21px;
  background: var(--home-deep);
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  font-size: 15px;
  border-radius: 9px;
  transition: background .18s ease, transform .18s ease;
}
.action-primary:hover { color: #fff; background: #1c4755; transform: translateY(-2px); }
.action-primary .action-arrow { font-size: 19px; line-height: 1; }

/* 01 / Hero */
.hero-section {
  padding: clamp(58px, 7vw, 105px) 0 76px;
  background:
    radial-gradient(ellipse 44% 60% at 100% 10%, rgb(215 235 230 / 56%), transparent 85%),
    linear-gradient(180deg, #fbfaf6 0%, #f8faf7 100%);
  border-bottom: 1px solid var(--home-stroke);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(310px, .84fr); gap: clamp(32px, 5vw, 85px); align-items: center; }
.hero-copy { min-width: 0; }
.hero-kicker { margin: 0 0 17px; color: var(--home-teal); font-size: 13px; font-weight: 800; letter-spacing: .075em; }
.hero-title {
  font-size: clamp(38px, 4.45vw, 62px);
  font-weight: 850;
  line-height: 1.23;
  letter-spacing: -.065em;
  margin: 0;
  max-width: 16em;
  text-wrap: pretty;
}
.hero-title .hero-accent { color: var(--home-teal); }
/* Keep CJK semantic units together so lines never split mid-word */
.hero-title .hero-phrase { display: inline-block; }
.hero-summary { margin: 26px 0 0; max-width: 580px; color: #425a68; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.9; }
.hero-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.hero-footnote {
  margin: 31px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--home-stroke);
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  color: #647a84; font-size: 12px;
}
.hero-footnote strong { color: var(--home-ink-soft); font-weight: 700; }
.hero-footnote .sep { width: 4px; height: 4px; border-radius: 50%; background: #90aaa4; }
.hero-diagram {
  position: relative;
  padding: 28px 30px;
  background: #fffefa;
  border: 1px solid #d5e2dc;
  border-radius: 20px;
  box-shadow: var(--home-shadow);
  overflow: hidden;
}
.hero-diagram::after {
  content: ""; position: absolute; width: 175px; height: 175px; right: -110px; top: -90px;
  border: 1px solid #dbe8e5; border-radius: 50%; pointer-events: none;
}
.diagram-head, .diagram-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.diagram-head { padding-bottom: 20px; border-bottom: 1px solid var(--home-stroke); font: 750 11px/1.4 ui-monospace, "Cascadia Mono", monospace; letter-spacing: .07em; color: #5d7980; }
.diagram-head b { color: #1a6d70; font-weight: 800; }
.diagram-list { margin: 18px 0 22px; padding: 0; list-style: none; }
.diagram-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 16px;
  padding: 14px 0;
  position: relative;
}
.diagram-step:not(:last-child)::after {
  content: ""; position: absolute; top: 45px; bottom: -14px; left: 13px; width: 1px;
  background: #b3d4cd;
}
.diagram-no {
  display: grid; place-items: center;
  align-self: start; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid #92c1b9; background: #eff8f3; color: #176b70;
  font: 750 10px/1 ui-monospace, monospace;
}
.diagram-body span { display: block; color: var(--home-teal); font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.diagram-body strong { display: block; margin: 3px 0 1px; color: var(--home-ink); font-size: 16px; line-height: 1.45; }
.diagram-body small { font-size: 12px; color: var(--home-muted); line-height: 1.5; }
.diagram-footer { padding-top: 16px; border-top: 1px solid var(--home-stroke); font-size: 12px; color: #56727b; }
.diagram-footer .stamp { font: 750 10px/1.6 ui-monospace, monospace; color: #1b676b; }

/* 02 / Differentiators */
.capability-section { padding: 76px 0 82px; }
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; margin-top: 36px; }
.capability-item { border-top: 2px solid #b6d0c7; padding-top: 20px; min-width: 0; }
.capability-no { color: var(--home-teal); font: 750 13px/1 ui-monospace, monospace; }
.capability-item h3 { margin: 16px 0 12px; font-size: 20px; line-height: 1.45; letter-spacing: -.025em; font-weight: 800; }
.capability-item p { color: #536977; font-size: 15px; line-height: 1.85; margin: 0; }

/* 03 / Selected work */
.work-section { padding: 80px 0 91px; background: #f0f5f2; border-top: 1px solid #e4ebe6; border-bottom: 1px solid #e1e9e4; }
.work-feature {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  min-height: 360px; border-radius: 22px; background: #122c3d; color: #f4f9f7; overflow: hidden;
  box-shadow: 0 18px 38px rgb(16 41 51 / 10%);
}
.work-feature-copy { padding: clamp(30px, 4vw, 50px); min-width: 0; align-self: center; }
.work-feature-kicker { display: block; color: #a9ddd2; font-size: 12px; letter-spacing: .09em; font-weight: 750; }
.work-feature h3 { margin: 16px 0 12px; font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.045em; line-height: 1.22; font-weight: 850; }
.work-feature-lead { font-size: 17px; line-height: 1.8; color: #e8f2ef; margin: 0 0 12px; }
.work-feature-proof { max-width: 520px; margin: 0; color: #b7ccd0; line-height: 1.8; font-size: 14px; }
.work-feature-scope { margin: 15px 0 0; font-size: 12px; color: #b2d5d1; }
.work-feature a {
  display: inline-flex; min-height: 44px; align-items: center; gap: 11px; margin-top: 20px;
  color: #fff; font-size: 14px; font-weight: 750; text-underline-offset: 5px;
}
.work-feature a:hover { color: #bdece3; }
.work-feature-media {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 60% 32%, #244f5f, #102331 78%);
  padding: clamp(18px, 3vw, 34px);
  overflow: hidden;
}
.work-feature-media img {
  width: 100%; display: block; height: auto; max-height: 300px;
  object-fit: contain; border-radius: 9px;
  box-shadow: 0 12px 35px rgb(0 0 0 / 18%);
}
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.work-card {
  display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 16px;
  align-items: center; padding: 26px 26px 24px;
  border: 1px solid #d9e6e1; border-radius: 18px; background: #fffefa;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.work-card:hover { box-shadow: 0 10px 28px rgb(18 42 58 / 7%); border-color: #b0d0c7; }
.work-card-eyebrow { font-size: 12px; font-weight: 800; color: var(--home-teal); letter-spacing: .07em; }
.work-card h3 { margin: 8px 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1.36; }
.work-card p { margin: 0; font-size: 14px; color: #56707a; line-height: 1.85; }
.work-card a { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 800; color: var(--home-teal); text-underline-offset: 4px; }
.work-card img { display: block; width: 100%; height: 114px; object-fit: contain; border-radius: 9px; background: #eaf3ef; }

/* 04 / Engineering approach */
.method-section { padding: 80px 0 88px; background: #142e3c; color: #eef8f4; }
.method-section .section-eyebrow { color: #8cd7cb; }
.method-section .section-title { color: #f4faf7; }
.method-section .section-intro { color: #bfd0d1; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 42px; }
.method-item { padding-top: 22px; border-top: 1px solid #628b8e; position: relative; }
.method-item::before { content: ""; width: 10px; height: 10px; border-radius: 50%; position: absolute; top: -5.5px; left: 0; background: #80d2c6; border: 2px solid #142e3c; }
.method-no { font: 750 12px/1 ui-monospace, monospace; color: #9cdad1; }
.method-item h3 { margin: 16px 0 10px; font-size: 21px; font-weight: 800; letter-spacing: -.025em; }
.method-item p { margin: 0; color: #bfd0d1; font-size: 15px; line-height: 1.8; }

/* 05 / Writing */
.writing-section { padding: 84px 0 92px; }
.writing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.writing-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 28px 30px 24px; border: 1px solid var(--home-stroke); border-radius: 15px; background: #fffefa;
  min-height: 245px;
}
.writing-card .writing-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--home-teal); font-size: 12px; font-weight: 700; }
.writing-card time { color: #657c84; font-size: 12px; font-weight: 500; }
.writing-card h3 { font-size: 20px; font-weight: 800; line-height: 1.5; letter-spacing: -.025em; margin: 14px 0 10px; }
.writing-card p { color: #566f79; font-size: 14px; line-height: 1.85; margin: 0; }
.writing-card a { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; gap: 9px; font-size: 13px; font-weight: 800; color: var(--home-teal); text-underline-offset: 4px; }

/* 06 / Closing and site routes */
.hub-section { background: #ecf3ef; padding: 66px 0 58px; border-top: 1px solid #dce7e1; }
.connect-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(230px, .85fr); gap: 32px; align-items: center; background: #fffefa; border: 1px solid #d8e4de; border-radius: 20px; padding: clamp(26px, 4.5vw, 48px); }
.connect-panel .section-eyebrow { margin-bottom: 10px; }
.connect-panel h2 { margin: 0 0 12px; font-size: clamp(26px, 2.9vw, 38px); line-height: 1.35; font-weight: 800; letter-spacing: -.045em; }
.connect-panel p { margin: 0; color: #536e77; font-size: 15px; }
.connect-actions { display: flex; flex-direction: column; align-items: stretch; gap: 13px; }
.connect-actions .action-primary { justify-content: space-between; }
.connect-actions .text-link { justify-content: space-between; min-height: 44px; padding: 7px 4px; }
.hub-shortcuts { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; padding: 25px 3px 0; }
.hub-shortcuts span { color: #657c81; font-size: 12px; font-weight: 700; }
.hub-shortcuts a { display: inline-flex; align-items: center; min-height: 40px; font-size: 13px; color: #2d5661; font-weight: 700; text-decoration: none; }
.hub-shortcuts a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
.site-footer { padding: 52px 0 25px; background: #0f2837; color: #dce8e7; }
.footer-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 52px; }
.footer-brand { font-weight: 850; font-size: 20px; letter-spacing: -.05em; margin: 0 0 10px; color: #f7fcfa; }
.footer-desc { max-width: 370px; color: #afc4c5; font-size: 14px; line-height: 1.8; margin: 0; }
.footer-col h2 { margin: 3px 0 13px; font-size: 13px; font-weight: 800; color: #f2f8f7; }
.footer-links { padding: 0; margin: 0; list-style: none; display: grid; gap: 6px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 34px; text-decoration: none; color: #b9cbcc; font-size: 13px; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; margin-top: 45px; padding-top: 21px; border-top: 1px solid #31505d; color: #a1b9bb; font-size: 12px; flex-wrap: wrap; }

@media (max-width: 991px) {
  .home-container { width: min(100% - 48px, 760px); }
  .navbar { min-height: 68px; }
  .navbar-collapse { margin-top: 12px; border-top: 1px solid var(--home-stroke); padding-top: 9px; }
  .navbar-nav { padding-bottom: 6px; }
  .nav-link { padding: 11px 10px !important; }
  .nav-link--resume { margin-left: 0; border: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-diagram { display: none; }
  .hero-section { padding: 52px 0 53px; }
  .hero-title { max-width: 780px; }
  .capability-grid { gap: 24px; }
  .work-card { grid-template-columns: minmax(0, 1fr) 96px; padding: 23px; }
  .work-card img { height: 90px; }
  .footer-grid { gap: 24px; }
}
@media (max-width: 720px) {
  .home-container { width: min(100% - 36px, 620px); }
  .navbar { min-height: 62px; padding: 8px 0; }
  .navbar-brand { font-size: 19px; }
  .hero-section { padding: 36px 0 38px; }
  .hero-kicker { font-size: 11px; margin-bottom: 13px; }
  .hero-title { font-size: clamp(29px, 7.8vw, 40px); line-height: 1.3; letter-spacing: -.055em; }
  .hero-summary { margin-top: 16px; font-size: 15px; line-height: 1.78; }
  .hero-actions { margin-top: 21px; gap: 14px; }
  .hero-footnote { margin-top: 23px; padding-top: 13px; font-size: 11px; }
  .section-header { align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .section-title { font-size: 27px; }
  .section-intro { font-size: 14px; }
  .capability-section { padding: 49px 0 54px; }
  .capability-grid { grid-template-columns: 1fr; gap: 19px; margin-top: 26px; }
  .capability-item { display: grid; grid-template-columns: 35px 1fr; gap: 0 8px; padding-top: 15px; }
  .capability-no { grid-row: span 2; padding-top: 5px; }
  .capability-item h3 { margin: 0 0 4px; font-size: 17px; }
  .capability-item p { grid-column: 2; font-size: 14px; line-height: 1.7; }
  .work-section { padding: 53px 0 60px; }
  .work-feature { grid-template-columns: 1fr; border-radius: 16px; }
  .work-feature-copy { padding: 27px 24px 22px; }
  .work-feature h3 { font-size: 29px; }
  .work-feature-lead { font-size: 15px; }
  .work-feature-proof { font-size: 13px; }
  .work-feature-media { padding: 13px 20px 19px; }
  .work-feature-media img { max-height: 168px; }
  .work-grid { grid-template-columns: 1fr; gap: 13px; margin-top: 13px; }
  .method-section { padding: 55px 0 60px; }
  .method-grid { grid-template-columns: 1fr; gap: 21px; margin-top: 28px; }
  .method-item { padding: 13px 0 0 28px; border-top: 0; border-left: 1px solid #628b8e; }
  .method-item::before { left: -5.5px; top: 17px; }
  .method-item h3 { font-size: 18px; margin: 8px 0 5px; }
  .method-item p { font-size: 14px; }
  .writing-section { padding: 56px 0 63px; }
  .writing-grid { grid-template-columns: 1fr; gap: 13px; }
  .writing-card { min-height: 0; padding: 23px; gap: 11px; }
  .writing-card h3 { font-size: 18px; margin: 10px 0 7px; }
  .hub-section { padding: 48px 0 45px; }
  .connect-panel { grid-template-columns: 1fr; gap: 19px; }
  .connect-panel h2 { font-size: 27px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 28px; }
}
@media (max-width: 430px) {
  .home-container { width: calc(100% - 32px); }
  .hero-title { font-size: clamp(28px, 8vw, 34px); }
  .hero-footnote { gap: 7px; }
  .hero-actions { gap: 10px 16px; }
  .action-primary { min-height: 46px; padding: 10px 16px; font-size: 14px; gap: 12px; }
  .text-link { font-size: 13px; }
  .work-card { grid-template-columns: minmax(0, 1fr) 82px; padding: 20px; gap: 12px; }
  .work-card h3 { font-size: 18px; }
  .work-card img { height: 78px; }
  .section-header { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .hub-shortcuts { gap: 2px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .action-primary:hover { transform: none; }
}
