html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.story-header {
  background: rgba(247, 243, 232, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23,53,44,.08);
  max-width: none;
  padding-left: max(28px, calc((100vw - 1280px) / 2));
  padding-right: max(28px, calc((100vw - 1280px) / 2));
  position: sticky;
  top: 0;
  z-index: 50;
}

.story-line-nav { align-items: center; display: inline-flex; gap: 7px; }
.story-line-nav span, .story-line-button span { background: #06c755; border-radius: 7px; color: white; font-size: 9px; padding: 4px 6px; }

.story-hero {
  align-items: center;
  display: grid;
  gap: clamp(48px, 8vw, 110px);
  grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
  margin: 0 auto;
  max-width: 1280px;
  min-height: calc(100svh - 95px);
  padding: clamp(52px, 7vw, 90px) 32px clamp(88px, 10vw, 130px);
}

.story-back { color: rgba(23,53,44,.62); display: inline-block; font-size: 13px; font-weight: 700; margin-bottom: 38px; }
.story-hero h1 { font-size: clamp(64px, 8vw, 112px); }
.story-hero-copy > p:not(.eyebrow) { color: rgba(23,53,44,.7); font-size: clamp(18px, 1.55vw, 22px); line-height: 1.85; margin: 30px 0; max-width: 680px; }
.story-jump-links { align-items: center; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.story-jump-links span { color: rgba(23,53,44,.48); font-size: 11px; font-weight: 800; letter-spacing: .08em; margin-right: 3px; text-transform: uppercase; }
.story-jump-links a { background: rgba(255,255,255,.72); border: 1px solid rgba(23,53,44,.12); border-radius: 999px; color: var(--forest); font-size: 12px; font-weight: 750; padding: 8px 12px; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.story-jump-links a:not(.nav-cta) { display: inline-flex; }
.story-jump-links a:hover { background: white; border-color: rgba(23,53,44,.25); transform: translateY(-1px); }
.story-hero-video { background: var(--ink); border: 8px solid white; border-radius: 34px; box-shadow: 0 30px 80px rgba(23,53,44,.18); color: white; overflow: hidden; }
.story-hero-video video { aspect-ratio: 9 / 16; display: block; object-fit: cover; width: 100%; }
.story-hero-video > div { align-items: center; display: flex; gap: 12px; justify-content: space-between; padding: 18px 20px; }
.story-hero-video span { color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.story-hero-video strong { font-size: 14px; }
.story-contact-links .contact-button { flex: 1 1 250px; }
.story-contact-links .youtube-icon { background: #ff0033; }

.story-work { background: #efd6c4; padding: clamp(90px, 11vw, 145px) max(32px, calc((100vw - 1216px) / 2)); }
.story-work-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 58px; }
.story-work-grid article { background: rgba(255,253,248,.72); border: 1px solid rgba(23,53,44,.1); border-radius: 28px; min-height: 280px; padding: 30px; }
.story-work-grid span { color: var(--peach); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.story-work-grid h3 { font-family: "Mitr", "Noto Sans Thai", sans-serif; font-size: 25px; font-weight: 500; margin: 70px 0 12px; }
.story-work-grid p { color: rgba(23,53,44,.68); line-height: 1.75; margin: 0; }
.story-clips { background: #f8f3e7; max-width: none; padding-left: max(32px, calc((100vw - 1216px) / 2)); padding-right: max(32px, calc((100vw - 1216px) / 2)); }
.youtube-feature-copy .contact-button { display: inline-flex; }
.youtube-feature-copy .youtube-icon { background: #ff0033; }

.story-closing { align-items: center; background: var(--ink); color: white; display: flex; flex-direction: column; min-height: 82svh; padding: clamp(90px, 11vw, 150px) 28px; text-align: center; justify-content: center; }
.story-closing > img { height: 72px; margin-bottom: 30px; width: 72px; }
.story-closing .eyebrow { color: var(--lime); }
.story-closing h2 { font-family: "Mitr", "Noto Sans Thai", sans-serif; font-size: clamp(42px, 5.5vw, 76px); font-weight: 600; letter-spacing: -.045em; line-height: 1.08; margin: 0; }
.story-closing h2 span { color: var(--lime); }
.story-closing > div { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }
.story-line-button { align-items: center; background: white; color: var(--ink); display: inline-flex; gap: 9px; justify-content: center; }
.story-home-link { color: rgba(255,255,255,.62); margin-top: 28px; text-decoration: underline; text-underline-offset: 5px; }

.story-footer { align-items: center; background: #102b23; color: white; display: grid; gap: 20px 34px; grid-template-columns: auto 1fr auto; padding: 48px max(32px, calc((100vw - 1280px) / 2)); }
.story-footer p { color: rgba(255,255,255,.6); margin: 0; }
.story-footer > div { display: flex; gap: 18px; font-weight: 700; }

@media (max-width: 900px) {
  .story-header nav a:not(.nav-cta) { display: none; }
  .story-hero { grid-template-columns: 1fr; }
  .story-hero-video { margin: 0 auto; max-width: 430px; width: 100%; }
  .story-work-grid { grid-template-columns: 1fr; }
  .story-work-grid article { min-height: 0; }
  .story-work-grid h3 { margin-top: 36px; }
  .story-footer { grid-template-columns: 1fr; text-align: center; }
  .story-footer > * { justify-self: center; }
}

@media (max-width: 520px) {
  .story-header { padding: 14px 18px; }
  .story-header .brand-logo { height: 40px; width: 40px; }
  .story-line-nav { font-size: 12px; padding: 9px 12px; }
  .story-hero { min-height: 0; padding: 40px 20px 88px; }
  .story-hero h1 { font-size: 62px; }
  .story-hero .hero-actions { align-items: stretch; flex-direction: column; }
  .story-jump-links { gap: 7px; margin-top: 24px; }
  .story-jump-links span { flex-basis: 100%; }
  .story-jump-links a { font-size: 11px; padding: 7px 10px; }
  .story-work { padding-left: 20px; padding-right: 20px; }
  .story-closing > div { align-items: stretch; flex-direction: column; width: 100%; }
  .story-closing .button { width: 100%; }
  .story-footer { padding-left: 22px; padding-right: 22px; }
  .story-footer > div { flex-wrap: wrap; justify-content: center; }
}
