:root {
  --font-display: 'Anuphan', 'IBM Plex Sans Thai', sans-serif;
  --font-body: 'IBM Plex Sans Thai', 'Anuphan', sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --z-sticky: 60;
  --z-menu: 70;
  --z-modal-backdrop: 90;
  --z-modal: 100;
}

body { overflow-x: hidden; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { text-wrap: balance; overflow-wrap: break-word; }
p, li { text-wrap: pretty; }
#site > div[aria-hidden="true"] { display: none; }

#header {
  z-index: var(--z-sticky) !important;
  min-height: 68px;
  background: rgba(11, 11, 13, .92) !important;
  backdrop-filter: blur(14px) !important;
}
#mobile-menu { z-index: var(--z-menu) !important; background: rgba(11, 11, 13, .98) !important; }

button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button:not(.dr-close), [role="button"], .dr-link { min-height: 44px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cyan) !important;
  outline-offset: 3px !important;
}
button:active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: .58; }

main section[data-reveal] { opacity: 1; transform: none; transition: none; }
main section[data-reveal][data-shown] { animation: drSectionArrive .65s var(--ease-out) both; }
@keyframes drSectionArrive {
  from { opacity: .78; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.dr-hero > div:not(.dr-hero-photo):not(.dr-hero-copy) { display: none !important; }
.dr-hero-copy { padding-block: clamp(56px, 8vw, 96px) !important; }
.dr-hero-copy h1 { max-width: 760px; letter-spacing: -.025em !important; }
.dr-hero-copy p { max-width: 68ch !important; color: #c5c5cb !important; }
.dr-rise { animation: drHeroArrive .65s var(--ease-out) both; }
@keyframes drHeroArrive {
  from { opacity: .8; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.dr-proof-section > div:first-child { gap: 1px !important; background: rgba(255,255,255,.1); }
.dr-proof-section > div:first-child > div { min-height: 122px; padding: 24px 18px; background: #0d0d10; display: flex; flex-direction: column; justify-content: center; }
.dr-proof-section [data-countup] { font-size: clamp(18px, 2vw, 24px) !important; line-height: 1.3 !important; }
.dr-proof-note { margin: 24px 0 0; color: #b9b9c0; text-align: center; font-size: 14px; }

.dr-card, .dr-card-cyan, .dr-card-gold { border-radius: 14px !important; box-shadow: none !important; }
.dr-card:hover, .dr-card-cyan:hover { box-shadow: none !important; transform: translateY(-3px); }
.dr-card p, .dr-card-cyan p, .dr-card-gold p { max-width: 68ch; }
.dr-service-feature, .dr-home-work, .dr-work-item, .dr-experts-media, .dr-how-media { border-radius: 0; }
.dr-package-grid > div { border-radius: 14px !important; box-shadow: none !important; }
.dr-package-grid > div[style*="box-shadow"] { box-shadow: none !important; }

.dr-expert-row { transition: transform .25s var(--ease-out), border-color .25s ease; }
.dr-expert-row:hover { padding-left: 0; transform: translateX(6px); }
.dr-course-round { transition: background-color .22s ease, transform .22s var(--ease-out); }
.dr-course-round:hover { padding-inline: 0; transform: translateX(4px); }
.dr-principle { opacity: 1; transform: none; }
.dr-principles-section[data-shown] .dr-principle { animation: drPrinciplePolish .55s var(--ease-out) both; animation-delay: var(--principle-delay); }
@keyframes drPrinciplePolish { from { opacity: .72; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.dr-article-takeaway { border: 1px solid rgba(201,163,106,.28); border-left-width: 1px; border-radius: 12px; }
.dr-review-verified { color: var(--cyan); font-size: 12px; font-weight: 600; }
[role="dialog"] { border-radius: 16px !important; scrollbar-width: thin; scrollbar-color: #5d5d64 #121216; }
.dr-project-modal-body, .dr-article { max-width: 78ch; }

.dr-field::placeholder, textarea::placeholder { color: #a9a9b0; opacity: 1; }
.dr-field, select, textarea { min-height: 48px; }
.dr-field[aria-invalid="true"], select[aria-invalid="true"] { border-color: #f0a07a !important; }

@media (max-width: 900px) {
  #header { padding-inline: 20px !important; }
  .dr-hero { min-height: calc(100svh - 68px); }
  .dr-hero-copy { padding-block: 48px !important; }
  .dr-hero-copy h1 { font-size: clamp(38px, 10vw, 58px) !important; line-height: 1.08 !important; }
  .dr-service-feature { grid-template-columns: 1fr; }
  .dr-service-image { min-height: 380px; }
  .dr-principles-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
  .dr-principles-flow::before { display: none; }
}

@media (max-width: 600px) {
  :root { --gx: 20px; }
  body { font-size: 16px; }
  #header { min-height: 64px; padding-block: 12px !important; }
  #mobile-menu { top: 64px !important; }
  main > section { scroll-margin-top: 74px; }
  .dr-hero { min-height: calc(100svh - 64px); align-items: flex-end; }
  .dr-hero-photo img { object-position: 70% center; }
  .dr-hero-copy { padding-block: 72px 44px !important; }
  .dr-hero-copy h1 { font-size: clamp(36px, 11.2vw, 48px) !important; }
  .dr-hero-copy p { font-size: 16px !important; line-height: 1.72 !important; }
  .dr-hero-copy button { width: 100%; justify-content: center; }
  .dr-proof-section > div:first-child { grid-template-columns: 1fr 1fr !important; }
  .dr-proof-section > div:first-child > div { min-height: 132px; padding: 20px 12px; }
  .dr-home-work-grid, .dr-work-grid { grid-template-columns: 1fr; }
  .dr-home-work, .dr-work-item, .dr-work-item:nth-child(3n + 1) { grid-column: auto; min-height: 390px; }
  .dr-work-copy { left: 20px; right: 62px; bottom: 20px; }
  .dr-work-arrow { right: 18px; bottom: 18px; }
  .dr-service-copy { padding: 34px 24px; }
  .dr-principles-flow { grid-template-columns: 1fr; }
  .dr-project-modal-body { padding: 28px 22px 30px; }
  .dr-project-modal-media { height: 260px; }
  .dr-project-story { grid-template-columns: 1fr; gap: 22px; }
  #fab { right: 12px !important; bottom: 12px !important; }
  #footer { padding-bottom: 110px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  main section[data-reveal][data-shown], .dr-rise, .dr-principles-section[data-shown] .dr-principle { animation: none; }
}
