@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&display=swap");

:root {
  --ink: #101312;
  --paper: #eeeae0;
  --cream: #fffdf7;
  --teal: #148b86;
  --coral: #d3634e;
  --yellow: #d0a23f;
  --blue: #0e6f9d;
  --green: #6f8f5b;
  --line: rgba(16,19,18,.15);
  --shadow: 0 24px 65px rgba(16,19,18,.14);
  --sans: "IBM Plex Sans Thai", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.55; }
body.focus-mode .section:not(#matrix), body.focus-mode footer { display: none; }
a { color: inherit; text-decoration: none; }
img, iframe { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
.sticky-summary {
  position: sticky; z-index: 20; top: 0;
  min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 9px clamp(16px,3vw,42px); background: rgba(16,19,18,.96); color: var(--cream);
  box-shadow: 0 8px 24px rgba(0,0,0,.18); backdrop-filter: blur(15px);
}
.sticky-left, .sticky-right { display: flex; align-items: center; gap: 18px; }
.sticky-brand img { width: 112px; height: 38px; object-fit: contain; }
.sticky-metric { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.18); }
.sticky-metric strong, .sticky-metric span { display: block; }
.sticky-metric span { opacity: .6; font-size: .65rem; text-transform: uppercase; }
.sticky-right a, .sticky-right button, .tool-button {
  min-height: 36px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.24); background: transparent; color: inherit; font-weight: 700;
}
.sticky-right button { background: var(--teal); border-color: var(--teal); }
.hero { position: relative; min-height: 680px; overflow: hidden; background: #153c3e; color: white; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,13,13,.88), rgba(5,13,13,.22)), linear-gradient(0deg, rgba(5,13,13,.75), transparent 55%); }
.hero-orbit { position: absolute; right: 8%; top: 18%; width: 330px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.04), 0 0 0 140px rgba(255,255,255,.025); }
.topbar { position: relative; z-index: 3; display: flex; gap: 8px; padding: 24px clamp(20px,4vw,60px); }
.topbar a { padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.35); font-size: .8rem; font-weight: 700; }
.page-tools { position: absolute; z-index: 4; right: clamp(20px,4vw,60px); top: 20px; display: flex; gap: 8px; }
.hero-content { position: relative; z-index: 3; width: min(850px, 88%); padding: 80px clamp(24px,7vw,105px) 120px; }
.hero-logo img { width: 190px; margin-bottom: 28px; }
.hero-live-banner { display: inline-block; margin-bottom: 20px; padding: 7px 10px; background: var(--coral); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.eyebrow, .section-kicker { margin-bottom: 10px; color: var(--coral); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero .eyebrow { color: #f0c967; }
.kinetic-title { margin-bottom: 22px; font-size: clamp(4.6rem,10vw,10.5rem); font-weight: 400; letter-spacing: -.07em; line-height: .75; }
.kinetic-title span { display: block; }
.title-line-thin { font-weight: 300; }
.title-line-solid { font-weight: 700; }
.hero-copy { max-width: 700px; color: rgba(255,255,255,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-actions a { padding: 12px 17px; border: 1px solid white; font-weight: 700; }
.hero-actions .primary-action { background: white; color: var(--ink); }
.hero-system-card { position: absolute; z-index: 3; right: 7%; bottom: 90px; width: 270px; padding: 24px; border: 1px solid rgba(255,255,255,.25); background: rgba(12,32,33,.58); backdrop-filter: blur(12px); }
.hero-system-card span, .hero-system-card strong { display: block; }
.hero-system-card span { opacity: .65; font-size: .72rem; text-transform: uppercase; }
.mini-bars { display: flex; align-items: end; gap: 6px; height: 60px; margin-top: 18px; }
.mini-bars i { width: 22px; height: var(--bar); background: #f0c967; }
.hero-marquee { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,.2); }
.hero-marquee-track { display: flex; width: max-content; animation: marquee 25s linear infinite; }
.hero-marquee span { padding: 15px 25px; border-right: 1px solid rgba(255,255,255,.2); white-space: nowrap; text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(-50%); } }
.section, .metric-section { padding: clamp(60px,8vw,110px) clamp(22px,6vw,90px); border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: end; margin-bottom: 35px; }
.section-heading h2, .intro-grid h2, .metric-section h2 { margin-bottom: 0; font-size: clamp(2.4rem,5vw,5.8rem); letter-spacing: -.055em; line-height: .93; }
.section-heading > p { color: #6b665d; }
.intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px,7vw,110px); }
.objective-points, .criteria-list, .decision-list, .deadline-list, .priority-list, .routine-list { padding: 0; list-style: none; }
.objective-points li { padding: 14px 0; border-top: 1px solid var(--line); }
.overview-copy > p { color: #625e56; }
.overall-card { display: flex; align-items: center; gap: 25px; margin-top: 30px; padding: 25px; background: var(--ink); color: var(--cream); }
.progress-ring {
  flex: 0 0 112px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: conic-gradient(var(--teal) var(--progress, 18%), rgba(255,255,255,.15) 0);
}
.progress-ring::before { content: ""; position: absolute; }
.progress-ring span { display: grid; place-items: center; width: 78px; aspect-ratio: 1; border-radius: 50%; background: var(--ink); font-size: 1.5rem; font-weight: 700; }
.quick-status { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 16px; border: 1px solid var(--line); }
.quick-status span { padding: 12px; border-right: 1px solid var(--line); font-size: .76rem; }
.quick-status strong { display: block; font-size: 1.35rem; }
.status-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; font-size: .78rem; }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; background: #999; }
.dot.in-review { background: var(--yellow); } .dot.ready { background: var(--green); }
.live-note { margin-top: 20px; padding: 15px; border-left: 4px solid var(--teal); background: rgba(20,139,134,.08); }
.live-note strong, .live-note span { display: block; }
.intent-criteria { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 0; background: var(--line); }
.intent-card, .criteria-card { padding: clamp(40px,6vw,85px); background: var(--cream); }
.intent-card h3, .criteria-card h3 { font-size: clamp(1.8rem,3vw,3.4rem); line-height: 1.05; }
.criteria-list li { display: flex; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.criteria-list span { color: var(--coral); font-weight: 700; }
.learning-highlight { display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; background: var(--ink); color: var(--cream); }
.learning-copy h2 { font-size: clamp(2rem,4vw,4.5rem); line-height: 1; }
.learning-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.learning-meta span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.25); font-size: .7rem; }
.learning-video { aspect-ratio: 16/9; }
.learning-video iframe { width: 100%; height: 100%; border: 0; }
.executive-snapshot, .split-layout, .decision-log-grid, .risk-brief { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.snapshot-grid, .metric-grid, .deliverable-grid, .risk-mini-grid, .contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.snapshot-grid article, .metric-grid article, .deliverable-grid article, .risk-mini-grid > div, .support-panel, .routine-panel, .decision-box, .deadline-watch, .monthly-kpi-panel {
  padding: 24px; border: 1px solid var(--line); background: var(--cream);
}
.snapshot-grid strong, .metric-grid strong { display: block; color: var(--teal); font-size: clamp(2.2rem,4vw,4rem); line-height: 1; }
.status-editor { display: grid; grid-template-columns: 1.2fr 1fr .7fr auto auto auto; gap: 10px; align-items: end; margin-bottom: 20px; padding: 16px; background: var(--ink); color: white; }
.status-editor label { display: grid; gap: 5px; font-size: .73rem; font-weight: 700; }
.status-editor select, .status-editor input, .status-editor button { min-height: 42px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.25); }
.status-editor button { background: var(--teal); color: white; font-weight: 700; }
.status-editor button:last-child { background: transparent; }
.matrix-wrap { overflow-x: auto; box-shadow: var(--shadow); }
.action-matrix, .risk-table { width: 100%; border-collapse: collapse; background: var(--cream); font-size: .84rem; }
.action-matrix th, .action-matrix td, .risk-table th, .risk-table td { min-width: 108px; padding: 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.action-matrix thead, .risk-table thead { background: var(--ink); color: white; }
.bar, .pill { display: inline-block; padding: 5px 8px; font-size: .7rem; font-weight: 700; }
.bar { background: #d7e9e7; color: #0d5552; }
.bar-template { background: #f4dfd9; color: #8c392a; }
.bar-guide { background: #f4e9c9; color: #735812; }
.bar-skill { background: #dbe5ef; color: #245372; }
.bar-asset { background: #dfe8d8; color: #425f31; }
.pill { border-radius: 999px; background: #ddd; }
.pill.active { background: #d7e9e7; color: #0d5552; }
.pill.planned { background: #f4e9c9; color: #735812; }
.pill.pending { background: #e4e1da; color: #625e56; }
.timeline-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.month-card { padding: 24px; border-top: 5px solid var(--teal); background: var(--cream); }
.month-top { display: flex; justify-content: space-between; gap: 15px; }
.month { color: var(--coral); font-weight: 800; text-transform: uppercase; }
.progress-track, .kpi-track { height: 9px; margin: 15px 0; background: rgba(16,19,18,.1); overflow: hidden; }
.progress-track i, .kpi-track i { display: block; height: 100%; background: var(--teal); }
.monthly-kpi-head { display: flex; justify-content: space-between; gap: 30px; }
.kpi-chart-row { display: grid; grid-template-columns: 90px 1fr 70px; gap: 12px; align-items: center; margin: 12px 0; }
.kpi-bar { height: 16px; background: rgba(16,19,18,.08); }
.kpi-bar i { display: block; height: 100%; background: var(--coral); }
.decision-list li, .deadline-list li, .priority-list li, .routine-list li { padding: 11px 0; border-top: 1px solid var(--line); }
.contact-footer { padding: clamp(45px,7vw,80px) clamp(22px,6vw,90px); background: var(--ink); color: var(--cream); }
.contact-inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: 45px; }
.footer-logo { width: 190px; margin-bottom: 20px; }
.contact-grid a { display: flex; gap: 13px; padding: 16px; border: 1px solid rgba(255,255,255,.16); }
.contact-icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--teal); color: #6ed0cb; font-size: .66rem; font-weight: 800; }
.contact-text strong, .contact-text { display: block; }
.contact-text { opacity: .72; font-size: .8rem; }
.contact-text strong { opacity: 1; color: white; font-size: .92rem; }
.sync-message { position: fixed; z-index: 50; right: 20px; bottom: 20px; padding: 13px 17px; background: var(--ink); color: white; box-shadow: var(--shadow); }
@media (max-width: 1050px) {
  .sticky-metric:nth-of-type(n+3), .sticky-right a { display: none; }
  .hero-system-card { display: none; }
  .intro-grid, .section-heading, .learning-highlight, .executive-snapshot, .split-layout, .decision-log-grid, .risk-brief, .contact-inner { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: repeat(2,1fr); }
  .status-editor { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 680px) {
  .sticky-summary { position: relative; align-items: flex-start; }
  .sticky-brand, .sticky-metric:not(:first-of-type), .page-tools { display: none; }
  .topbar { overflow-x: auto; }
  .hero { min-height: 630px; }
  .hero-content { padding-top: 80px; }
  .kinetic-title { font-size: clamp(4rem,21vw,7rem); }
  .quick-status, .snapshot-grid, .metric-grid, .deliverable-grid, .risk-mini-grid, .contact-grid, .intent-criteria { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: 1fr; }
  .status-editor { grid-template-columns: 1fr; }
  .learning-highlight { padding-left: 0; padding-right: 0; }
  .learning-copy { padding: 0 22px; }
}
@media print {
  .sticky-summary, .page-tools, .status-editor, .hero-marquee { display: none !important; }
  body { background: white; }
  .hero { min-height: 460px; break-after: page; }
  .section, .metric-section { padding: 32px 24px; }
  * { box-shadow: none !important; }
}
