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

:root {
  --ink: #101312;
  --paper: #eeeae0;
  --cream: #fffdf7;
  --teal: #148b86;
  --coral: #d3634e;
  --yellow: #d0a23f;
  --line: rgba(16, 19, 18, .15);
  --shadow: 0 26px 70px rgba(16, 19, 18, .13);
  --sans: "IBM Plex Sans Thai", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16,19,18,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,19,18,.035) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
  font-family: var(--sans);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img, video, iframe { display: block; max-width: 100%; }
main { width: min(1480px, 100%); margin: auto; overflow: hidden; }
.topbar {
  min-height: 116px;
  display: flex;
  align-items: center;
  padding: 18px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(238,234,224,.88);
  backdrop-filter: blur(18px);
}
.brand img { width: 190px; height: auto; max-height: 88px; object-fit: contain; object-position: left; }
.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 50px;
  padding: clamp(46px, 7vw, 100px) clamp(24px, 5vw, 76px);
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--coral);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 30px;
  font-size: clamp(4rem, 7.5vw, 8.8rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .92;
}
.hero-word { display: block; }
.hero-word.serif, .display-serif { font-family: "Playfair Display", Georgia, serif; font-style: italic; }
.hero-word.subtle { color: var(--teal); }
.hero-copy > div > p:not(.eyebrow) { max-width: 620px; color: #625e56; }
.hero-copy > div > p:not(.clean-copy) { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-3px); }
.button.secondary { background: transparent; color: var(--ink); }
.button.photo { border-color: var(--teal); background: var(--teal); }
.hero-image { position: relative; min-height: 560px; overflow: hidden; background: #0d3336; }
.hero-video { width: 100%; height: 100%; object-fit: cover; opacity: .83; }
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4,22,24,.65));
  pointer-events: none;
}
.sea-type { position: absolute; z-index: 2; left: 0; right: 0; bottom: 28px; overflow: hidden; color: white; }
.sea-title-track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.sea-type-title { display: flex; gap: 22px; padding-right: 22px; font-size: clamp(3rem, 6vw, 7rem); line-height: .9; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.ticker > div { padding: 20px clamp(18px, 3vw, 38px); border-right: 1px solid var(--line); }
.ticker span { display: block; color: #777168; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.ticker strong { font-size: 1rem; }
.section-head {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 50px;
  align-items: end;
  padding: clamp(60px, 8vw, 110px) clamp(24px, 5vw, 76px) 34px;
}
.section-head h2 { max-width: 850px; margin-bottom: 0; font-size: clamp(2.2rem, 5vw, 5.7rem); letter-spacing: -.03em; line-height: 1; }
.section-head > p { color: #6f695f; }
.section-head .clean-copy + p, .tool-card .clean-copy + p, .insight-card .clean-copy + p { display: none; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 clamp(24px, 5vw, 76px); }
.tool-card {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 50px;
  padding: clamp(26px, 4vw, 50px);
  border: 1px solid var(--line);
  background: var(--cream);
  transition: transform .25s, box-shadow .25s;
}
.tool-card + .tool-card { border-left: 0; }
.tool-card:hover { z-index: 2; transform: translateY(-8px); box-shadow: var(--shadow); }
.tool-card.dark { background: var(--ink); color: var(--cream); }
.tool-card.gallery { background: var(--teal); color: white; }
.tool-card h2 { font-size: clamp(2rem, 3vw, 3.5rem); line-height: 1.06; letter-spacing: -.02em; }
.tool-card p { color: inherit; opacity: .72; }
.tool-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.tag { padding: 6px 9px; border: 1px solid currentColor; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.tool-footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid currentColor; }
.kpi-spotlight {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 1px;
  margin: 0 clamp(24px, 5vw, 76px);
  background: var(--line);
  border: 1px solid var(--line);
}
.kpi-panel { padding: clamp(28px, 5vw, 64px); background: var(--ink); color: var(--cream); }
.kpi-panel h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1; }
.kpi-score { display: flex; align-items: baseline; gap: 10px; margin: 35px 0; }
.kpi-score strong { color: #f0c967; font-size: clamp(5rem, 10vw, 10rem); line-height: .8; }
.kpi-score span { text-transform: uppercase; }
.kpi-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid rgba(255,255,255,.2); }
.kpi-mini-grid > div { padding: 14px; border: 1px solid rgba(255,255,255,.12); }
.kpi-mini-grid span { display: block; opacity: .65; font-size: .75rem; }
.kpi-link { display: inline-flex; margin-top: 24px; padding: 12px 15px; background: var(--cream); color: var(--ink); font-weight: 700; }
.kpi-executive-note { margin-top: 35px; }
.kpi-executive-note ul { padding: 0; list-style: none; }
.kpi-executive-note li { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.15); }
.kpi-months { display: grid; background: var(--paper); }
.kpi-month-card { display: grid; grid-template-columns: 1fr 170px; gap: 20px; align-items: center; padding: 25px 30px; border-bottom: 1px solid var(--line); }
.kpi-month-card h3 { margin-bottom: 4px; font-size: 1.4rem; }
.kpi-month-card p { margin-bottom: 0; color: #6f695f; font-size: .88rem; }
.kpi-month-card span { color: var(--coral); font-size: .72rem; font-weight: 700; }
.kpi-meter { height: 10px; background: rgba(16,19,18,.1); overflow: hidden; }
.kpi-meter i { display: block; width: 71%; height: 100%; background: var(--teal); }
.kpi-meter i.empty { width: 12%; background: #b8b2a7; }
.kpi-note { padding: 24px 30px; background: #dfdacf; color: #625e56; }
.learning-hub { display: grid; grid-template-columns: 1.4fr .6fr; margin: 0 clamp(24px, 5vw, 76px); background: var(--ink); color: var(--cream); }
.learning-video { aspect-ratio: 16 / 9; }
.learning-video iframe { width: 100%; height: 100%; border: 0; }
.learning-panel { display: flex; align-items: end; padding: clamp(28px, 4vw, 55px); background: linear-gradient(145deg, #173f40, var(--teal)); }
.learning-panel h3 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1; }
.insights { display: grid; grid-template-columns: repeat(3, 1fr); padding: clamp(60px, 8vw, 110px) clamp(24px, 5vw, 76px); }
.insight-card { padding: 26px; border-top: 1px solid var(--ink); }
.insight-card h3 { font-size: 1.45rem; }
.insight-card p { color: #6f695f; }
@media (max-width: 950px) {
  .hero, .section-head, .kpi-spotlight, .learning-hub { grid-template-columns: 1fr; }
  .hero-image { min-height: 480px; order: -1; }
  .tools, .insights { grid-template-columns: 1fr; }
  .tool-card + .tool-card { border-left: 1px solid var(--line); border-top: 0; }
}
@media (max-width: 640px) {
  .topbar { min-height: 72px; }
  .brand img { width: 150px; max-height: 70px; }
  .hero { min-height: auto; }
  .hero-copy { padding-top: 48px; }
  h1 { font-size: clamp(3.4rem, 19vw, 5.5rem); }
  .hero-image { min-height: 360px; }
  .ticker { grid-template-columns: repeat(2, 1fr); }
  .kpi-month-card { grid-template-columns: 1fr; }
  .kpi-mini-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; }
}
