/* chaotic-monkey.com — the capture's own stylesheet, extracted verbatim from
   the homepage's inline <style> so it is fetched once and cached rather than
   repeated in every page. Do not hand-edit: new rules belong in site.css. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  background: #fff;
  color: #000;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── HEADER ── */
.site-header {
  border-bottom: 3px solid #000;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75vw 3vw;
  gap: 2vw;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 1vw;
  flex-shrink: 0;
}
.site-logo img {
  height: clamp(40px, 5vw, 72px);
  width: auto;
  display: block;
}
.site-title-text {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(0.9rem, 1.4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.site-title-text a:hover { text-decoration: underline; }

/* nav */
.main-nav ul { list-style: none; display: flex; gap: 2vw; align-items: center; }
.main-nav a {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(0.85rem, 1.1vw, 1.1rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}
.main-nav a:hover { border-bottom-color: #000; }

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid #000;
  cursor: pointer;
  padding: 6px 8px;
  line-height: 1;
}
.menu-toggle svg { display: block; width: 20px; height: 20px; }

@media (max-width: 640px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 200;
    padding: 4vw;
    flex-direction: column;
    border: 3px solid #000;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 2px solid #000; }
  .main-nav a { display: block; padding: 4vw 0; font-size: 5vw; }
  .nav-close {
    align-self: flex-end;
    background: none;
    border: 2px solid #000;
    cursor: pointer;
    padding: 6px 8px;
    margin-bottom: 4vw;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
  }
}

/* ── HERO ── */
.hero {
  display: flex;
  flex-direction: row;
  position: relative;
  border-bottom: 3px solid #000;
  min-height: clamp(400px, 55vw, 700px);
}
.hero-left {
  flex: 0 0 45%;
  background-image: url('/img/hero-slideshow.jpg');
  background-size: cover;
  background-position: center;
  min-height: clamp(300px, 48vw, 600px);
}
.hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4vw;
  gap: 0;
}
.hero-tag {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(0.8rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1;
  color: #000;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  padding: 0.3vw 1vw;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: calc(1vw + 3px);
}
.hero-headline {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(1.4rem, 3.8vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  color: #000;
  margin-bottom: 2vw;
}
.hero-body {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(0.85rem, 1.8vw, 1.6rem);
  font-weight: 300;
  line-height: 1.2;
  color: #000;
  margin-bottom: 0;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1vw;
  margin-top: 4vw;
  align-items: center;
}
.btn {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(0.75rem, 1.8vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
  border: 3px solid #000;
  border-radius: 0;
  padding: 0.5vw 2vw;
  cursor: pointer;
  display: inline-block;
  transition: background 0.15s, color 0.15s;
}
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #333; }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: #000; color: #fff; }

/* MONKEY IN CHARGE overlay */
.monkey-badge {
  position: absolute;
  bottom: 0;
  left: 20%;
  background: #fff;
  padding: 0.5vw 4vw;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(1.8rem, 8vw, 8rem);
  font-weight: 600;
  letter-spacing: -2.8px;
  color: #000;
  line-height: 1;
  z-index: 2;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .hero { flex-direction: column; }
  .hero-left { flex: none; height: 50vw; min-height: 200px; }
  .hero-right { padding: 6vw 4vw; }
  .hero-tag { font-size: 4vw; }
  .hero-headline { font-size: 7vw; }
  .hero-body { font-size: 4vw; }
  .btn { font-size: 4vw; padding: 2vw 5vw; }
  .monkey-badge { font-size: 9vw; letter-spacing: -1px; left: 0; padding: 1vw 3vw; }
}

/* ── TICKER ── */
.ticker {
  background: #000;
  padding: 0.5vw 0;
  overflow: hidden;
  border-bottom: 3px solid #000;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 18s linear infinite;
}
.ticker-item {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(1rem, 4vw, 3.5rem);
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  padding: 0 4vw;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTION COMMON ── */
.section-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4vw 4vw 1vw 4vw;
  border-bottom: 3px solid #000;
  gap: 2vw;
}
.section-title {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(1.4rem, 3.8vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  color: #000;
  padding-bottom: 1vw;
}
.ring-svg { opacity: 0.15; flex-shrink: 0; }

/* ── NEWS / POSTS GRID ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vw;
  padding: 0 4vw 4vw 4vw;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 1px solid #ccc;
  padding-right: 2vw;
}
.post-card:last-child { border-right: none; padding-right: 0; }
.post-date {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  font-weight: 400;
  color: #666;
  margin-bottom: 0.5vw;
  margin-top: 2vw;
}
.post-title {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1.7rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  color: #000;
  margin-bottom: 1vw;
}
.post-excerpt {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(0.75rem, 1.1vw, 1rem);
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  flex: 1;
  margin-bottom: 1.5vw;
}
.post-card .btn {
  align-self: flex-start;
  font-size: clamp(0.65rem, 1.2vw, 1rem);
  padding: 0.4vw 1.5vw;
}

@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; gap: 0; }
  .post-card { border-right: none; border-bottom: 2px solid #000; padding: 4vw 0; }
  .post-card:last-child { border-bottom: none; }
  .post-date, .post-title, .post-excerpt { font-size: revert; }
  .post-date { font-size: 3vw; margin-top: 0; }
  .post-title { font-size: 5vw; margin-bottom: 2vw; }
  .post-excerpt { font-size: 3.5vw; margin-bottom: 3vw; }
  .post-card .btn { font-size: 3.5vw; padding: 2vw 4vw; }
  .section-row-header { padding: 6vw 4vw 3vw; }
}

/* ── AI AGENTS SECTION ── */
.agents-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4vw 4vw 0 4vw;
  gap: 2vw;
}
.agents-label {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(1.8rem, 5vw, 5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #000;
  line-height: 1;
}
.agents-subtitle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw 1vw 4vw;
  border-bottom: 3px solid #000;
  gap: 2vw;
}
.agents-subtitle {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(0.85rem, 2vw, 2rem);
  font-weight: 300;
  color: #000;
  padding-bottom: 1vw;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vw;
  padding: 0 4vw 4vw 4vw;
}
.agent-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 1px solid #ccc;
  padding-right: 2vw;
}
.agent-card:last-child { border-right: none; padding-right: 0; }
.agent-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
  border: 1px solid #ddd;
  margin-bottom: 1vw;
  margin-top: 2vw;
}
.agent-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1vw;
  margin-top: 2vw;
  overflow: hidden;
}
.agent-img-placeholder svg { width: 40%; opacity: 0.2; }

@media (max-width: 768px) {
  .agents-grid { grid-template-columns: 1fr; gap: 0; }
  .agent-card { border-right: none; border-bottom: 2px solid #000; padding: 4vw 0; }
  .agent-card:last-child { border-bottom: none; }
}

/* ── FOOTER ── */
.site-footer {
  border-top: 3px solid #000;
  padding: 3vw 4vw;
  display: flex;
  flex-direction: column;
  gap: 1.5vw;
}
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 3vw;
}
.footer-nav a {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(0.75rem, 1.4vw, 1.2rem);
  font-weight: 400;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}
.footer-nav a:hover { border-bottom-color: #000; }
.footer-social {
  display: flex;
  gap: 2vw;
  align-items: center;
}
.footer-social a {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(0.75rem, 1.2vw, 1.1rem);
  font-weight: 400;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.footer-social a:hover { border-bottom-color: #000; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ccc;
  padding-top: 1.5vw;
  flex-wrap: wrap;
  gap: 1vw;
}
.footer-copyright {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  color: #555;
}
.footer-scroll-top {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  text-transform: uppercase;
  border-bottom: 1px solid #000;
}
.footer-scroll-top:hover { border-bottom-color: transparent; }
