:root {
  color-scheme: light;
  --coconut: #fffdf8;
  --orange: #ff673f;
  --cobalt: #2445cf;
  --ink: #162b51;
  --pale-orange: #ffdfd2;
  --pale-blue: #e1e8ff;
  --line: 2px solid var(--ink);
  --soft-square: 24px;
  --pill: 999px;
  --hard-shadow: 6px 6px 0 var(--ink);
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* Layers: page content 0; skip link 1; native dialog uses the top layer. */
  font-family: "Anuphan", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--coconut);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; min-width: 280px; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
button, .button { touch-action: manipulation; }
::selection { color: var(--coconut); background: var(--cobalt); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 6px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, .service-sticker h3 { font-family: "Mitr", sans-serif; font-weight: 600; }
h2 { font-size: clamp(2.4rem, 4.2vw, 4.2rem); line-height: 1.4; letter-spacing: -.02em; }
p { font-size: 1.125rem; line-height: 1.8; }
.page-width { width: min(100% - 96px, 1232px); margin-inline: auto; }
.section-space { padding-block: 100px; }
.cobalt-text { color: var(--cobalt); }
.skip-link { position: absolute; top: 12px; left: 20px; z-index: 1; padding: 12px 20px; border: var(--line); border-radius: var(--pill); background: var(--coconut); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 80px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 8px; flex-shrink: 0; }
.wordmark-thai { font-family: "Mitr", sans-serif; font-size: 2.25rem; line-height: 1.6; font-weight: 700; letter-spacing: -.02em; }
.wordmark-en { font-size: .8rem; font-weight: 700; letter-spacing: -.03em; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 28px; margin-left: auto; white-space: nowrap; font-weight: 600; }
.main-nav a { padding-block: 10px; text-underline-offset: 6px; }
.main-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 30px; min-height: 62px; width: fit-content; flex-shrink: 0; padding: 12px 28px; border: var(--line); border-radius: var(--pill); background: var(--orange); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); font-size: 1.125rem; font-weight: 700; white-space: nowrap; }
.arrow-icon { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.button-small { min-height: 44px; gap: 16px; padding: 8px 19px; font-size: .95rem; }
.button-blue { color: var(--coconut); background: var(--cobalt); }
.button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.hero { display: grid; grid-template-columns: 1.18fr 1fr; align-items: center; gap: 34px; min-height: 610px; padding-block: 38px 76px; }
.hero h1 { font-size: clamp(3.5rem, 6vw, 5.4rem); line-height: 1.42; letter-spacing: -.02em; font-weight: 700; }
.hero h1 span { display: block; white-space: nowrap; }
.hero-copy p { margin-top: 20px; margin-bottom: 27px; font-size: 1.25rem; }
.hero-visual { position: relative; display: grid; place-items: center; min-width: 0; aspect-ratio: 1; isolation: isolate; }
.mascot-stage { position: absolute; inset: 7% 2% 4%; border: var(--line); border-radius: 48% 48% 24px 24px; background: var(--orange); transform: rotate(4deg); box-shadow: var(--hard-shadow); overflow: hidden; }
.stage-circle { position: absolute; width: 68%; aspect-ratio: 1; border: var(--line); border-radius: 50%; background: var(--pale-orange); top: 15%; left: 15%; }
.stage-pill { position: absolute; width: 68px; height: 20px; border: var(--line); border-radius: var(--pill); background: var(--cobalt); top: 14%; right: 8%; transform: rotate(-35deg); }
.hero-mascot { position: relative; width: 105%; max-width: none; transform: rotate(-3deg); filter: none; }

.work-section { padding-top: 68px; }
.section-heading p { margin-top: 18px; }
.work-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .6fr); align-items: center; gap: 40px; }
.pencil-sticker { width: min(100%, 270px); justify-self: center; }
.pencil-mascot { width: 100%; transform: rotate(-3deg); }
.sample-note { display: inline-block; padding-left: 16px; border-left: 4px solid var(--orange); font-size: 1rem; }
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 84px 42px; padding: 50px 12px 12px; }
.work-piece { min-width: 0; }
.work-banner { grid-column: span 7; align-self: center; }
.work-butter { grid-column: span 5; }
.work-dew { grid-column: span 4; }
.work-playday { grid-column: span 8; }
.work-mellow { grid-column: span 5; }
.work-yum { grid-column: span 7; }
.work-image { display: block; position: relative; padding: 9px; border: var(--line); border-radius: var(--soft-square); background: var(--coconut); box-shadow: var(--hard-shadow); transform: rotate(var(--tilt)); }
.work-image > img { width: 100%; border-radius: 12px; }
.work-piece figcaption { display: grid; grid-template-columns: minmax(0, 1fr) 24px; grid-template-rows: auto auto; align-items: center; column-gap: 16px; padding: 27px 10px 0; }
.work-piece h3 { grid-column: 1; grid-row: 1; font-size: 1.075rem; font-weight: 700; letter-spacing: .01em; }
.work-piece figcaption > span { grid-column: 1; grid-row: 2; display: block; margin-top: 3px; font-size: .95rem; line-height: 1.7; }
.caption-arrow { grid-column: 2; grid-row: 1; align-self: center; }

.services-section { margin-top: 8px; background: var(--pale-blue); border-block: var(--line); }
.services-section .section-heading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); align-items: end; gap: 40px; }
.services-section .section-heading h2 { font-size: clamp(2.4rem, 4.8vw, 4.6rem); }
.services-section .section-heading p { max-width: 26ch; margin-top: 0; padding-bottom: 12px; }
.service-stickers { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 32px 34px; margin: 48px 18px 8px; padding: 0; list-style: none; }
.service-stickers li { min-width: 0; }
.service-banner { grid-column: 1 / span 4; }
.service-social { grid-column: 5 / span 6; }
.service-ad { grid-column: 1 / span 5; }
.service-landing { grid-column: 6 / span 5; }
.service-logo { grid-column: 3 / span 6; }
.service-sticker { padding: 32px 26px; border: var(--line); border-radius: var(--soft-square); box-shadow: var(--hard-shadow); transform: rotate(var(--tilt)); text-align: center; }
.service-sticker h3 { font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.5; letter-spacing: -.015em; }
.service-sticker p { font-size: 1rem; }
.sticker-orange { color: var(--ink); background: var(--orange); border-radius: var(--pill); }
.sticker-blue { background: var(--cobalt); color: var(--coconut); }
.sticker-pale-blue { background: var(--pale-blue); }
.sticker-pale-orange { background: var(--pale-orange); border-radius: var(--pill); }
.sticker-white { background: var(--coconut); }

.process-section { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; gap: 100px; padding-bottom: 64px; }
.process-intro { display: flex; flex-direction: column; align-items: flex-start; }
.process-intro h2 { font-size: clamp(2rem, 3.4vw, 3.4rem); }
.peek-window { width: 240px; height: 192px; align-self: center; margin-top: 24px; overflow: hidden; border: var(--line); border-radius: 120px 120px var(--soft-square) var(--soft-square); background: var(--pale-blue); }
.peek-window img { width: 100%; margin-top: -40px; }
.process-list { margin: 0; padding: 8px 0 0; list-style: none; }
.process-list li { padding: 23px 0 27px; border-bottom: var(--line); }
.process-list li:first-child { padding-top: 0; }
.process-list h3 { margin-bottom: 9px; font-family: "Mitr", sans-serif; font-size: 1.75rem; font-weight: 500; line-height: 1.5; }
.process-list p { font-size: 1rem; }

.contact-section { padding-top: 44px; padding-bottom: 72px; }
.contact-sticker { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: auto auto auto; align-items: center; padding: 42px 5%; border: var(--line); border-radius: 48px; background: var(--pale-orange); box-shadow: 8px 8px 0 var(--ink); column-gap: 26px; }
.contact-action { display: contents; }
.contact-mascot { grid-column: 1; grid-row: 1 / span 3; width: 100%; }
.contact-copy { grid-column: 2; grid-row: 1; justify-self: center; text-align: center; }
.contact-copy h2 { font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1.3; }
.contact-copy p { margin-top: 14px; margin-bottom: 26px; }
.contact-action .button { grid-column: 2; grid-row: 2; justify-self: center; }
.contact-handle { grid-column: 2; grid-row: 3; justify-self: center; display: block; margin-top: 18px; font-size: .95rem; line-height: 1.6; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 26px 0 32px; border-top: var(--line); font-size: .9375rem; line-height: 1.6; }
.site-footer a { font-weight: 700; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.lightbox { width: min(1100px, calc(100% - 40px)); max-height: calc(100dvh - 40px); margin: auto; padding: 22px; overflow: auto; border: var(--line); border-radius: var(--soft-square); color: var(--ink); background: var(--coconut); box-shadow: 8px 8px 0 var(--ink); }
.lightbox::backdrop { background: rgb(22 43 81 / .78); }
.lightbox-toolbar, .lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.lightbox-toolbar { margin-bottom: 16px; font-size: .9375rem; line-height: 1.6; }
.close-button { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; flex-shrink: 0; padding: 6px 16px; border: var(--line); border-radius: var(--pill); background: var(--orange); font-weight: 700; cursor: pointer; }
.close-button span { font-size: 1.75rem; line-height: 1; }
.close-button:active { transform: scale(.97); }
.lightbox-view { min-height: 120px; display: grid; place-items: center; border-radius: 12px; background: var(--pale-blue); }
.lightbox-image { width: auto; max-width: 100%; max-height: calc(100dvh - 250px); object-fit: contain; }
.lightbox-image[hidden], .lightbox-status:empty { display: none; }
.lightbox-status { padding: 40px 22px; text-align: center; font-size: 1rem; }
.lightbox-bottom { margin-top: 18px; }
#lightbox-caption { font-size: 1rem; font-weight: 600; line-height: 1.6; }
.original-link { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: .9375rem; line-height: 1.6; text-decoration: underline; text-underline-offset: 4px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .close-button { transition: transform 180ms var(--ease); }
  .button:hover { transform: translate(-2px, -3px) rotate(-1deg); box-shadow: 6px 7px 0 var(--ink); }
  .button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
  .hero-copy { animation: hero-arrive 700ms var(--ease) both; }
  .hero-visual { animation: hero-arrive 850ms 90ms var(--ease) both; }
  .hero-mascot, .pencil-mascot { animation: mascot-hello 4.5s 1s ease-in-out infinite; }
  .work-image { transition: transform 320ms var(--ease); }
  .work-image:hover, .work-image:focus-visible { transform: translateY(-8px) rotate(0deg); box-shadow: 9px 12px 0 var(--ink); }
  .work-image:active { transform: translateY(-2px) rotate(0deg); box-shadow: var(--hard-shadow); }
  [data-reveal] { transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
  .reveal-pending { opacity: 0; transform: translateY(28px) scale(.96); }
  @keyframes hero-arrive { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes mascot-hello { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-11px) rotate(-1deg); } }
}

@media (max-width: 1100px) and (min-width: 768px) {
  .page-width { width: calc(100% - 64px); }
  .site-header { gap: 20px; }
  .wordmark-en { display: none; }
  .main-nav { gap: 20px; font-size: .9rem; }
  .hero { min-height: 540px; gap: 20px; }
  .hero h1 { font-size: clamp(2.8rem, 5.9vw, 4rem); }
  .hero-copy p { font-size: 1.125rem; }
  .work-grid { gap: 65px 30px; }
  .process-section { gap: 42px; }
  .process-intro h2 { font-size: 2.1rem; }
  .contact-sticker { padding-inline: 3% 6%; }
}

@media (max-width: 767px) {
  .page-width { width: calc(100% - 48px); }
  .section-space { padding-block: 64px; }
  h2 { font-size: clamp(2rem, 8.8vw, 3.5rem); }
  .site-header { gap: 12px; min-height: 76px; }
  .wordmark { gap: 0; }
  .wordmark-thai { font-size: 1.9rem; }
  .wordmark-en, .desktop-nav { display: none; }
  .main-nav { font-size: .875rem; gap: 0; }
  .button-small { min-height: 42px; padding: 7px 13px; gap: 10px; font-size: .875rem; box-shadow: 3px 3px 0 var(--ink); }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; gap: 18px; padding-top: 24px; padding-bottom: 30px; }
  .hero h1 { font-size: clamp(2.3rem, 10.9vw, 4.9rem); line-height: 1.44; }
  .hero-copy p { margin-top: 12px; margin-bottom: 19px; font-size: 1.0625rem; line-height: 1.7; }
  .button { min-height: 54px; padding: 10px 23px; gap: 24px; font-size: 1rem; }
  .button-small { min-height: 42px; padding: 7px 13px; gap: 10px; font-size: .875rem; }
  .hero-visual { width: min(100%, 350px); justify-self: center; }
  .hero-mascot { width: 100%; }
  .mascot-stage { inset: 6% 5% 4%; box-shadow: 5px 5px 0 var(--ink); }
  .stage-pill { width: 51px; height: 16px; }
  .work-section { padding-top: 38px; }
  .section-heading p { margin-top: 15px; }
  .work-heading { grid-template-columns: minmax(0, 1fr) 96px; align-items: start; gap: 12px; }
  .pencil-sticker { width: 96px; margin-top: 14px; }
  .work-heading > div:first-child { min-width: 0; }
  .sample-note { font-size: .9375rem; padding-left: 12px; }
  .work-heading .sample-note { width: calc(100% + 108px); }
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 38px; padding: 33px 5px 4px; }
  .work-piece { grid-column: 1; }
  .work-image { padding: 7px; box-shadow: 4px 4px 0 var(--ink); }
  .work-piece figcaption { padding: 23px 3px 0; }
  .work-piece h3 { font-size: 1rem; }
  .work-piece figcaption > span { font-size: .9375rem; line-height: 1.7; }
  .services-section { margin-top: 0; }
  .services-section .section-heading { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .services-section .section-heading h2 { font-size: clamp(2rem, 8.8vw, 3.5rem); }
  .services-section .section-heading p { max-width: none; padding-bottom: 0; }
  .service-stickers { grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 32px 10px 7px; }
  .service-stickers li { grid-column: 1; }
  .service-sticker { padding: 22px 18px; transform: rotate(calc(var(--tilt) * .5)); box-shadow: 4px 4px 0 var(--ink); }
  .service-sticker h3 { font-size: 2.1rem; }
  .service-sticker p { font-size: .95rem; }
  .process-section { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 40px; }
  .process-intro { display: grid; grid-template-columns: minmax(0, 1fr); }
  .process-intro h2 { font-size: clamp(1.9rem, 8.1vw, 3rem); }
  .peek-window { width: 175px; height: 140px; margin: 18px 12px 0 auto; justify-self: end; }
  .peek-window img { margin-top: -30px; }
  .process-list { padding-top: 14px; }
  .process-list li { padding-block: 24px; }
  .process-list h3 { font-size: 1.5rem; }
  .process-list p { font-size: 1rem; }
  .contact-section { padding-top: 30px; padding-bottom: 56px; }
  .contact-sticker { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; gap: 0; padding: 26px 22px 30px; border-radius: var(--soft-square); box-shadow: 5px 5px 0 var(--ink); }
  .contact-copy { grid-column: 1; grid-row: 1; justify-self: start; padding: 0; text-align: left; }
  .contact-copy h2 { font-size: clamp(2.25rem, 10vw, 3.4rem); }
  .contact-copy p { font-size: 1rem; margin-top: 12px; margin-bottom: 6px; }
  .contact-action { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 8px; }
  .contact-mascot { grid-column: 1; grid-row: 1; width: 100%; margin: 0; }
  .contact-action .button { grid-column: 2; grid-row: 1; min-height: 50px; padding: 10px 14px; gap: 12px; font-size: .9375rem; }
  .contact-handle { grid-column: 1 / -1; grid-row: 2; justify-self: start; font-size: .9375rem; line-height: 1.6; margin-top: 2px; }
  .site-footer { flex-direction: column; gap: 6px; padding: 22px 0 26px; font-size: .9375rem; }
  .lightbox { width: calc(100% - 24px); max-height: calc(100dvh - 28px); padding: 14px; box-shadow: 4px 4px 0 var(--ink); }
  .lightbox-toolbar { gap: 12px; font-size: .9375rem; align-items: flex-start; }
  #lightbox-note { padding-top: 10px; }
  .close-button { gap: 8px; padding-inline: 12px; font-size: .9375rem; line-height: 1.6; }
  .lightbox-bottom { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 14px; }
  .lightbox-image { max-height: calc(100dvh - 270px); }
  #lightbox-caption { font-size: .9375rem; line-height: 1.6; }
}

@media (max-width: 350px) {
  .page-width { width: calc(100% - 36px); }
  .site-header { gap: 8px; }
  .wordmark-thai { font-size: 1.65rem; }
  .main-nav { font-size: .8rem; }
  .button-small { padding-inline: 10px; gap: 7px; }
  .hero h1 { font-size: 10.5vw; }
  .service-sticker h3 { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-pending { opacity: 1; transform: none; }
}
