/* Homepage presentation. Shared navigation dimensions stay in styles.css. */
.home {
  --home-ink: #1d1d1f;
  --home-muted: #626268;
  --home-blue: #0071e3;
  --home-link: #0066cc;
  --home-line: #dcdce0;
  background: #fff;
  color: var(--home-ink);
}
.home main, .home-footer { font-family: "Anuphan", Tahoma, sans-serif; letter-spacing: 0; overflow-wrap: anywhere; }
.home :is(h1, h2, h3) { margin: 0; color: var(--home-ink); font-family: "Anuphan", Tahoma, sans-serif; }
.home :is(a, summary):focus-visible { outline: 3px solid var(--home-blue); outline-offset: 5px; }
.home-wrap { width: min(100% - 64px, 1080px); margin-inline: auto; }
.home-band { padding-block: 72px; }
.home-band h2 { font-size: 40px; font-weight: 600; line-height: 1.3; }
.home-muted { color: var(--home-muted); }
.home-kicker { margin: 0 0 12px; color: var(--home-muted); font-size: 15px; font-weight: 600; }
.home-text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--home-link); font-size: 17px; text-decoration: none; }
.home-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-text-link > span { font-family: Arial, sans-serif; font-size: 24px; line-height: 1; }
.home-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 26px; margin-top: 20px; }
.home-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; max-width: 100%; padding: 10px 24px; border: 1px solid var(--home-blue); border-radius: 28px; background: var(--home-blue); color: #fff; font-size: 16px; line-height: 1.5; text-decoration: none; }
.home-button:hover { background: #0064ca; border-color: #0064ca; }

.home-notice { padding: 10px 24px; background: #f5f5f7; text-align: center; color: #55555b; }
.home-notice p { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0 8px; margin: 0; font-size: 13px; line-height: 1.7; }
.home-notice a { color: var(--home-link); text-decoration: none; white-space: nowrap; }
.home-notice a:hover { text-decoration: underline; }
.home-status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #a43f2b; }
.home-hero { position: relative; margin: 0; padding: 24px 24px 18px; background: #fff; text-align: center; }
.home-hero-copy { position: relative; z-index: 1; }
.home-hero h1 { font-size: 58px; font-weight: 600; line-height: 1.15; }
.home-hero-tagline { margin: 4px 0 0; color: var(--home-ink); font-size: 26px; line-height: 1.5; font-weight: 600; }
.home-hero-description { margin: 5px 0 0; color: var(--home-muted); font-size: 17px; line-height: 1.6; }
.home-hero .home-actions { margin-top: 16px; }
.home-hero-visual { position: relative; width: min(100%, 740px); margin: 18px auto 0; }
.home-hero-visual img { width: 100%; height: 350px; object-fit: cover; object-position: center bottom; }
.home-hero-visual figcaption { margin: 0; padding: 0; border: 0; background: none; color: #727278; font-size: 12px; line-height: 1.6; }

.home-overview { background: #f5f5f7; }
.home-section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 42px; }
.home-section-intro > p { flex: 0 1 400px; margin: 0 0 4px; color: var(--home-muted); font-size: 17px; line-height: 1.8; }
.home-section-intro > .home-text-link { flex-shrink: 0; }
.home-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.home-pillars article { padding-top: 22px; border-top: 1px solid #d2d2d7; }
.home-pillar-number { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--home-link); font-size: 14px; font-weight: 600; }
.home-pillar-number > span { color: var(--home-muted); font-size: 14px; font-weight: 400; }
.home-pillars h3 { font-size: 26px; line-height: 1.4; font-weight: 600; }
.home-pillars p { margin: 16px 0 10px; color: var(--home-muted); font-size: 16px; line-height: 1.85; }
.home-pillars .home-text-link { font-size: 16px; }

.home-solutions { background: #fff; }
.home-business-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home-business { min-width: 0; overflow: hidden; border-radius: 8px; background: #f5f5f7; }
.home-business-copy { padding: 32px 24px 24px; text-align: center; }
.home-business h3 { font-size: 34px; line-height: 1.4; font-weight: 600; }
.home-business .home-kicker { margin-bottom: 6px; font-size: 14px; }
.home-business-copy > p:not(.home-kicker) { margin: 10px 0 6px; color: var(--home-muted); font-size: 17px; line-height: 1.7; }
.home-business > img { width: 100%; height: auto; aspect-ratio: 1.75; object-fit: cover; object-position: center 50%; }
.home-footnote { margin: 16px 0 0; color: var(--home-muted); font-size: 13px; line-height: 1.7; text-align: center; }
.home-related { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 32px; margin-top: 14px; }
.home-related a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--home-link); font-size: 15px; text-decoration: none; }
.home-related a:hover { text-decoration: underline; }

.home-ai { background: #151517; color: #f5f5f7; }
.home-ai-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 88px; }
.home-ai h2 { color: #f5f5f7; font-size: 44px; }
.home-ai h2 span { color: #58cbe9; }
.home-ai .home-kicker { color: #b3b3bc; }
.home-ai-copy > p:not(.home-kicker) { margin: 22px 0 10px; color: #b3b3bc; line-height: 1.85; font-size: 17px; }
.home-ai .home-text-link { color: #72b8ff; }
.home-ai-example { padding-block: 8px; }
.home-ai-example-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 15px; }
.home-ai-example-top img { width: 44px; height: 44px; border-radius: 50%; }
.home-ai-example-top small { flex-basis: 100%; padding-left: 56px; margin-top: -7px; color: #a1a1aa; font-size: 12px; }
.home-ai-example blockquote { margin: 30px 0; padding: 0; color: #fff; font-size: 30px; line-height: 1.55; font-weight: 600; }
.home-ai-principles p { display: flex; gap: 20px; margin: 0; padding: 13px 0; border-top: 1px solid #3b3b40; color: #c7c7cf; font-size: 15px; }
.home-ai-principles span { color: #67cae3; font-size: 13px; }

.home-faq-layout { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 64px; }
.home-faq-layout > div > .home-text-link { margin-top: 16px; }
.home-faq-list details { margin: 0; border-bottom: 1px solid var(--home-line); }
.home-faq-list details:first-child { border-top: 1px solid var(--home-line); }
.home-faq-list summary { position: relative; gap: 24px; justify-content: space-between; padding: 21px 0; color: var(--home-ink); font-size: 17px; font-weight: 600; line-height: 1.7; list-style: none; cursor: pointer; }
.home-faq-list summary::-webkit-details-marker { display: none; }
.home .home-faq-list summary::before { content: none; display: none; }
.home-faq-list summary::after { content: "+"; flex: 0 0 22px; color: #77777d; font: 26px/1 Arial, sans-serif; text-align: center; }
.home-faq-list details[open] summary::after { content: "−"; }
.home-faq-list p { margin: 0 34px 22px 0; padding: 0; color: var(--home-muted); font-size: 16px; line-height: 1.85; }
.home-faq-list details > .home-text-link { margin: -6px 0 20px; font-size: 16px; }

.home-contact { background: #f5f5f7; text-align: center; }
.home-contact h2 { font-size: 44px; }
.home-contact .home-wrap > p:not(.home-kicker, .home-contact-note) { margin: 18px 0 0; color: var(--home-muted); font-size: 18px; line-height: 1.85; }
.home-contact .home-actions { margin-top: 25px; }
.home-contact-note { margin: 24px 0 0; color: var(--home-muted); font-size: 13px; }

.home-footer { background: #f5f5f7; padding: 0 0 24px; color: var(--home-muted); }
.home-footer-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 26px 0; border-block: 1px solid var(--home-line); }
.home-footer-brand { color: var(--home-ink); font-size: 17px; font-weight: 600; text-decoration: none; }
.home-footer-heading p { margin: 0; font-size: 13px; }
.home-footer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding: 28px 0; }
.home-footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.home-footer-grid h2 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.home-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-footer-grid nav > a { display: flex; align-items: center; min-height: 36px; padding-block: 5px; font-size: 13px; text-decoration: none; }
.home-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding-top: 14px; border-top: 1px solid var(--home-line); font-size: 12px; }
.home-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.home-footer-bottom a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }

@media (min-width: 1500px) {
  .home-hero { padding-top: 36px; }
  .home-hero-visual { width: 880px; }
  .home-hero-visual img { height: 420px; }
}
@media (min-width: 901px) and (max-height: 800px) {
  .home-hero { padding-top: 20px; padding-bottom: 12px; }
  .home-hero-visual { width: 660px; margin-top: 12px; }
  .home-hero-visual img { height: 310px; }
  .home-overview { padding-top: 40px; }
}
@media (max-width: 900px) {
  .home-band { padding-block: 56px; }
  .home-wrap { width: calc(100% - 48px); }
  .home-hero h1 { font-size: 56px; }
  .home-hero-visual { max-width: 640px; }
  .home-hero-visual img { height: 310px; }
  .home-section-intro { gap: 24px; }
  .home-section-intro > p { flex-basis: 340px; font-size: 16px; }
  .home-band h2 { font-size: 34px; }
  .home-pillars { gap: 24px; }
  .home-pillars h3 { font-size: 23px; }
  .home-business h3 { font-size: 29px; }
  .home-ai-layout { gap: 42px; }
  .home-ai h2 { font-size: 36px; }
  .home-ai-example blockquote { font-size: 26px; }
  .home-faq-layout { gap: 32px; grid-template-columns: 0.7fr 1.3fr; }
}
@media (max-width: 640px) {
  .home-wrap { width: calc(100% - 40px); }
  .home-band { padding-block: 42px; }
  .home-notice { padding: 9px 20px; }
  .home-notice p { font-size: 12px; }
  .home-notice .notice-detail { flex-basis: 100%; order: 1; }
  .home-hero { padding: 24px 12px 22px; }
  .home-hero h1 { font-size: 46px; }
  .home-hero-tagline { font-size: 23px; line-height: 1.5; }
  .home-hero-description { font-size: 16px; padding-inline: 8px; }
  .home-hero .home-actions { gap: 10px 20px; margin-top: 16px; }
  .home-hero .home-text-link { font-size: 16px; }
  .home-hero-visual { width: min(100%, 560px); margin-top: -65px; }
  .home-hero-visual img { height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
  .home-hero-visual figcaption { margin-top: -4px; font-size: 11px; }
  .home-section-intro { display: block; margin-bottom: 28px; }
  .home-section-intro > p { margin-top: 18px; }
  .home-section-intro > .home-text-link { margin-top: 12px; }
  .home-band h2 { font-size: 32px; }
  .home-kicker { font-size: 14px; margin-bottom: 9px; }
  .home-pillars { grid-template-columns: 1fr; gap: 24px; }
  .home-pillars article { padding-top: 18px; }
  .home-pillar-number { margin-bottom: 12px; }
  .home-pillars h3 { font-size: 25px; }
  .home-pillars h3 br { display: none; }
  .home-pillars p { margin-top: 12px; }
  .home-business-grid { grid-template-columns: 1fr; gap: 20px; }
  .home-business-copy { padding: 26px 20px 18px; }
  .home-business h3 { font-size: 30px; }
  .home-business-copy > p:not(.home-kicker) { font-size: 16px; }
  .home-related { gap: 0 20px; }
  .home-related a { font-size: 14px; }
  .home-footnote { font-size: 12px; text-align: left; }
  .home-ai-layout, .home-faq-layout { grid-template-columns: 1fr; gap: 30px; }
  .home-ai h2 { font-size: 36px; }
  .home-ai-copy > p:not(.home-kicker) { font-size: 16px; }
  .home-ai-example { border-top: 1px solid #3b3b40; padding-top: 26px; }
  .home-ai-example blockquote { margin-block: 24px; font-size: 28px; }
  .home-faq h2 br { display: none; }
  .home-faq-layout > div > .home-text-link { margin-top: 8px; }
  .home-faq-list summary { padding-block: 18px; font-size: 16px; }
  .home-faq-list p { margin-right: 20px; font-size: 15px; }
  .home-contact h2 { font-size: 32px; }
  .home-contact .home-wrap > p:not(.home-kicker, .home-contact-note) { font-size: 16px; }
  .home-contact .home-actions { gap: 12px 20px; }
  .home-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .home-footer-grid nav > a, .home-footer-bottom a { min-height: 44px; font-size: 14px; }
  .home-footer-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 380px) {
  .home-hero h1 { font-size: 42px; }
  .home-hero-tagline { font-size: 21px; }
  .home-hero-visual { margin-top: -52px; }
  .home-hero .home-actions { gap: 8px 14px; }
  .home-button { padding-inline: 18px; font-size: 15px; }
  .home-band h2 { font-size: 29px; }
  .home-business h3 { font-size: 27px; }
  .home-contact .home-actions { flex-direction: column; }
}
.home-motion-control { display: none; }

/* Content stays visible by default; only transform and opacity follow scroll. */
@keyframes home-scroll-reveal {
  from { opacity: 0.82; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes home-device-scroll {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, 16px, 0) scale(0.93); }
}

@supports (animation-timeline: view()) and (animation-range: entry 0% entry 100%) {
  @media (prefers-reduced-motion: no-preference) {
    .home {
      --home-reveal-animation: home-scroll-reveal;
      --home-device-animation: home-device-scroll;
    }
  }

  .home:has(#home-motion:checked) {
    --home-reveal-animation: home-scroll-reveal;
    --home-device-animation: home-device-scroll;
  }

  .home-hero { view-timeline: --home-hero-scroll block; }
  .home-hero-visual img {
    animation-name: var(--home-device-animation, none);
    animation-duration: auto;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: --home-hero-scroll;
    animation-range: exit 0% exit 80%;
    transform-origin: center bottom;
  }

  .home :is(.home-section-intro, .home-pillars > article, .home-business, .home-ai-copy, .home-ai-example, .home-faq-layout > div:first-child, .home-contact .home-wrap) {
    animation-name: var(--home-reveal-animation, none);
    animation-duration: auto;
    animation-timing-function: ease-out;
    animation-fill-mode: both;
    animation-timeline: view(block);
    animation-range: entry 0% entry 100%;
  }

  .home :is(.home-section-intro, .home-pillars > article, .home-business, .home-ai-copy, .home-ai-example, .home-faq-layout > div:first-child, .home-contact .home-wrap):focus-within {
    animation-name: none;
  }

  @media (prefers-reduced-motion: reduce) {
    .home-motion-control {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
      gap: 7px;
      margin-inline: 10px;
      color: var(--home-link);
      font-size: 12px;
      cursor: pointer;
    }
    .home-motion-control input { width: 16px; height: 16px; margin: 0; accent-color: var(--home-blue); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.home) { scroll-behavior: auto; }
}
