@font-face {
  font-family: Pridi;
  src: url("pridi-600-thai.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: Pridi;
  src: url("pridi-600-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body.portfolio-front {
  --front-paper:#faf7f2;
  --front-ink:#251d35;
  --front-purple:#38265f;
  --front-rule:#d8cedd;
  max-width:1240px;
  margin-inline:auto;
  background:var(--front-paper);
  color:var(--front-ink);
}
.portfolio-front main, .front-footer { margin-inline:clamp(15px,3vw,40px); }
.portfolio-front .top {
  position:sticky;
  top:0;
  z-index:2;
  padding:10px clamp(15px,3vw,40px);
  background:var(--front-paper);
  border-color:var(--front-rule);
  gap:10px;
}
.portfolio-front .top-actions { gap:clamp(7px,2.1vw,28px); }
.portfolio-front :is(.front-text-link,.work-shortcut,.site-language) {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:inherit;
  text-underline-offset:4px;
}
.portfolio-front .work-shortcut { padding-inline:3px; font-size:13px; font-weight:750; }
.portfolio-front a:focus-visible { outline:3px solid #7864a3; outline-offset:3px; }
.front-line {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 clamp(9px,2.4vw,16px);
  background:var(--front-purple);
  color:white;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
  text-decoration:none;
}
.front-intro {
  display:grid;
  gap:8px;
  padding:clamp(20px,3vw,36px) 0 clamp(11px,2vw,25px);
}
.front-label {
  font-size:12px;
  font-weight:800;
  letter-spacing:.065em;
  text-transform:uppercase;
}
html[lang="th"] .portfolio-front .front-label { letter-spacing:0; }
.portfolio-front :is(h1,h2) {
  font:600 clamp(29px,4.3vw,56px)/1.06 Pridi,Georgia,serif;
  font-synthesis:none;
  letter-spacing:-.012em;
  margin:0;
  text-wrap:balance;
}
html[lang="th"] .portfolio-front :is(h1,h2) { letter-spacing:0; line-height:1.19; }
.thai-phrase { white-space:nowrap; }
.portfolio-front h1 { font-size:clamp(34px,5.3vw,67px); margin-top:6px; }
.front-intro-detail p { max-width:41ch; }
.portfolio-front main :is(#work, [id]) { scroll-margin-top:82px; }
.portfolio-front .front-text-link { font-size:14px; font-weight:800; }
.pinup-feature {
  display:grid;
  background:#652a39;
  color:#fff4e3;
}
.pinup-stage {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:center;
  gap:clamp(4px,1.1vw,11px);
  padding:clamp(11px,3vw,29px);
  background:#47222c;
}
.pinup-page {
  /* Keep the artwork and its border. The last 28 pixels contain the proof footer. */
  aspect-ratio:1191 / 1656;
  overflow:hidden;
  box-shadow:0 5px 10px #1c0b1270;
}
.pinup-stage img { display:block; width:100%; height:auto; }
.pinup-feature-copy { align-self:center; padding:clamp(17px,3.4vw,45px); }
.pinup-feature-copy h2 { margin-top:7px; font-size:clamp(29px,3.4vw,44px); }
.pinup-feature-copy > p:not(.front-label) { margin-top:9px; max-width:38ch; }
.service-head { margin-top:clamp(34px,6vw,78px); padding-top:14px; border-top:3px solid var(--front-ink); }
.front-intro + .service-head { margin-top:clamp(14px,2.5vw,28px); }
.service-head h2 { margin-top:3px; font-size:clamp(27px,3.6vw,46px); }
.service-head > p:not(.front-label) { margin-top:5px; max-width:54ch; font-size:14px; }
.service-head + article { margin-top:clamp(14px,2.4vw,26px); }
.feature-solo { display:grid; gap:0 clamp(20px,3.4vw,42px); border-top:0; }
.support-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(10px,2.2vw,28px); margin:clamp(16px,2.6vw,30px) 0 0; padding:0; list-style:none; }
.support-card { display:block; color:var(--front-ink); text-decoration:none; }
.support-card strong { display:block; margin-top:8px; font-size:15px; line-height:1.2; }
.support-card:hover strong, .support-card:focus-visible strong { text-decoration:underline; text-underline-offset:3px; }
.more-top img { object-position:top; }
.front-flagship { display:grid; margin-top:clamp(22px,4.4vw,56px); background:#141a2b; color:#f3ecdf; }
.flagship-visual { display:block; }
.flagship-visual img { display:block; width:100%; height:100%; object-fit:cover; }
.flagship-copy { align-self:center; padding:clamp(17px,3.4vw,45px); }
.flagship-copy h2 { margin-top:7px; font-size:clamp(28px,3.4vw,44px); }
.flagship-copy > p:not(.front-label) { margin-top:9px; max-width:42ch; }
.front-flagship .front-text-link { color:inherit; }
.front-discovery-solo { grid-template-columns:1fr !important; }
.feature-pair { display:grid; gap:clamp(20px,3.4vw,42px); margin-top:clamp(22px,4.4vw,56px); }
.front-feature { min-width:0; border-top:1px solid var(--front-rule); }
.feature-copy { padding:15px 0 0; }
.feature-copy h2 { margin-top:6px; font-size:clamp(26px,3.25vw,43px); }
.feature-copy > p:not(.front-label) { margin-top:9px; max-width:50ch; }
.feature-links { display:flex; flex-wrap:wrap; column-gap:18px; }
.restaurant-visual {
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
  aspect-ratio:3 / 2;
  align-items:center;
  min-height:0;
  gap:8px;
  padding:clamp(8px,1.6vw,20px);
  background:#262118;
}
.restaurant-photo { height:100%; width:100%; object-fit:cover; object-position:center; min-height:0; }
.restaurant-proof { display:block; width:fit-content; height:100%; margin-inline:auto; }
.restaurant-proof img { width:auto; height:100%; max-width:100%; object-fit:contain; border:1px solid #a99875; }
.club-visual { display:block; }
.club-visual img { width:100%; height:auto; }
.club-observation {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:3px 9px;
  padding:8px 11px;
  background:#eee8f2;
  border-left:3px solid #6a5486;
}
.club-observation span { font-size:12px; }
.front-section-note { margin-top:5px; max-width:52ch; font-size:14px; }
.front-art > h2 { font-size:clamp(24px,3vw,36px); }
.front-garage { display:grid; gap:0 clamp(20px,3.4vw,42px); margin-top:clamp(22px,4.4vw,56px); border-top:1px solid var(--front-rule); }
.front-garage .feature-copy h2 { font-size:clamp(26px,3.25vw,43px); }
.demo-poster {
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:4 / 5;
  padding:0;
  border:0;
  overflow:hidden;
  background:#16121d;
  cursor:pointer;
}
.demo-poster img { display:block; width:100%; height:100%; object-fit:cover; }
.demo-cta {
  position:absolute;
  left:50%;
  bottom:clamp(14px,4vw,26px);
  transform:translateX(-50%);
  padding:13px 20px;
  background:#fff4e3;
  color:#251d35;
  font:800 15px/1.1 Inter, "Helvetica Neue", Arial, sans-serif;
  white-space:nowrap;
  box-shadow:0 4px 0 #251d35;
}
.demo-poster:hover .demo-cta, .demo-poster:focus-visible .demo-cta { background:#fff; }
.demo-link {
  min-height:44px;
  margin:10px 0 0;
  padding:11px 16px;
  border:0;
  background:#fff4e3;
  color:#47222c;
  font:800 14px/1.1 Inter, "Helvetica Neue", Arial, sans-serif;
  cursor:pointer;
}
.pinup-feature-copy .feature-links { align-items:center; gap:4px 18px; }
.demo-frame { display:block; width:100%; height:min(680px,82vh); border:0; background:#16121d; }
.front-art { margin-top:clamp(26px,5vw,62px); padding:clamp(15px,3vw,34px); background:#231a33; color:#f6efe4; }
.front-art .front-section-note { color:#d9cfe6; }
.art-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(10px,2vw,22px); margin:15px 0 0; padding:0; list-style:none; }
.art-grid a { display:block; color:inherit; text-decoration:none; }
.art-grid img { display:block; width:100%; aspect-ratio:1 / 1; object-fit:contain; background:#f9f4ea; }
.art-grid span { display:block; margin-top:6px; font-size:12px; font-weight:700; }
.more-live { display:inline-flex; align-items:center; min-height:44px; font-size:13px; font-weight:800; color:var(--front-ink); text-underline-offset:3px; }
.built-lead { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.36fr); gap:clamp(8px,1.6vw,18px); margin-top:14px; padding:clamp(10px,2vw,22px); background:#17110f; color:#f6ead9; }
.built-lead-art img { display:block; width:100%; height:100%; object-fit:cover; }
.built-lead-phone img { display:block; width:100%; height:auto; border:1px solid #5a4636; }
.built-lead-copy { grid-column:1 / -1; padding:6px 2px 4px; }
.built-lead-copy h3 { margin-top:5px; font-family:Pridi, Georgia, serif; font-weight:600; font-size:clamp(24px,3vw,38px); line-height:1.12; letter-spacing:0; }
.built-lead-copy > p:not(.front-label) { margin-top:8px; max-width:52ch; }
.built-lead .front-text-link { display:inline-flex; margin-top:10px; color:inherit; }
.built-lead + .more-grid { margin-top:clamp(18px,3vw,32px); }
.front-more { margin-top:clamp(26px,5vw,62px); border-top:1px solid var(--front-rule); padding-top:15px; }
.front-more h2 { font-size:clamp(24px,3vw,36px); }
.more-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(16px,2.6vw,30px) clamp(10px,2.2vw,28px);
  margin:13px 0 0;
  padding:0;
  list-style:none;
}
.more-card { display:block; color:var(--front-ink); text-decoration:none; }
.more-visual { display:block; aspect-ratio:3 / 2; overflow:hidden; background:#262118; }
.more-visual img { display:block; width:100%; height:100%; object-fit:cover; }
.more-left img { object-position:left top; }
.more-right img { object-position:right center; transform:scale(1.5); transform-origin:84% 52%; }
.more-contain img { object-fit:contain; }
.more-paper { background:#f9f4ea; }
.more-card strong { display:block; margin-top:8px; font-size:15px; line-height:1.2; }
.more-card:hover strong, .more-card:focus-visible strong { text-decoration:underline; text-underline-offset:3px; }
.more-line { display:block; margin-top:3px; font-size:13px; line-height:1.35; }
.front-discovery {
  display:grid;
  align-items:center;
  gap:12px 40px;
  padding:clamp(17px,3.8vw,44px);
  margin-top:clamp(25px,5vw,60px);
  background:#e8dff0;
}
.front-discovery h2 { margin-top:6px; font-size:clamp(26px,3.7vw,46px); }
.front-discovery p { max-width:45ch; }
.front-discovery-copy > p:not(.front-label) { margin-top:12px; }
.front-discovery-photo { display:block; width:100%; height:auto; }
.front-discovery .feature-links { gap:8px 18px; margin-top:13px; }
.portfolio-front .front-index {
  margin:clamp(26px,5vw,62px) 0 0;
  border:0;
  padding:0;
}
.front-index ol {
  display:grid;
  grid-template-columns:1fr;
  gap:0 clamp(13px,2.5vw,32px);
  margin:12px 0 0;
  padding:0;
  list-style:none;
}
.front-index li { border-top:1px solid var(--front-rule); min-width:0; }
.front-index li:target { background:#efe7f4; }
.front-index li a {
  display:flex;
  min-height:56px;
  padding:8px 2px;
  justify-content:space-between;
  align-items:center;
  gap:6px 12px;
  color:var(--front-ink);
  text-decoration:none;
}
.front-index li a:hover strong, .front-index li a:focus-visible strong { text-decoration:underline; text-underline-offset:3px; }
.front-index li small { display:block; margin-top:2px; font-size:12px; }
.work-status {
  max-width:42%;
  text-align:right;
  font-size:11px;
  line-height:1.23;
  color:#4e3b6c;
}
.front-footer {
  display:flex;
  flex-wrap:wrap;
  gap:8px 20px;
  align-items:center;
  justify-content:space-between;
  padding:14px 0 23px;
  margin-top:25px;
  border-top:1px solid var(--front-rule);
}
.front-footer nav { display:flex; align-items:center; flex-wrap:wrap; gap:5px 18px; }
.front-footer nav a { min-height:44px; display:inline-flex; align-items:center; font-weight:700; }
@media (min-width:740px) {
  .more-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .built-lead { grid-template-columns:minmax(0,1.5fr) minmax(0,.42fr) minmax(0,1fr); align-items:center; }
  .built-lead-copy { grid-column:auto; padding:0 clamp(6px,1.6vw,22px); }
  .feature-solo { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); align-items:center; }
  .feature-solo .feature-copy { padding-top:0; }
  .feature-flip > :first-child { order:2; }
  .support-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .front-flagship { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); }
  .front-garage { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); align-items:center; }
  .front-garage .feature-copy { padding-top:0; }
  .demo-poster { aspect-ratio:1 / 1; }
  .more-grid-four { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .art-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .feature-pair, .front-discovery, .front-index ol { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:950px) {
  .pinup-feature { grid-template-columns:minmax(0,2.05fr) minmax(0,1fr); }
}
@media (max-width:739px) {
  .pinup-stage { grid-template-columns:minmax(0,1fr); }
  .pinup-page-desktop { display:none; }
}
@media (max-width:360px) {
  .portfolio-front .brand { gap:5px; }
  .portfolio-front .name { font-size:17px; }
  .portfolio-front .top-actions { gap:4px; }
  .portfolio-front .top .site-language { min-width:28px; }
}

/* Homepage system. One frame, one button, one link, one heading size, one gap.
   Features are picture then copy on a phone, picture beside copy from 740px, never flipped. */
.home-main { --home-gap:clamp(34px,6vw,76px); }
.home-feature { display:grid; gap:14px clamp(22px,3.6vw,48px); margin-top:var(--home-gap); padding-top:clamp(14px,2.2vw,24px); border-top:1px solid var(--front-rule); }
.front-intro + .home-feature { margin-top:clamp(6px,1.4vw,14px); border-top:3px solid var(--front-ink); }
.home-frame { display:flex; align-items:center; justify-content:center; gap:8px; background:var(--front-ink); min-width:0; }
.home-frame img { display:block; width:100%; height:auto; }
.home-frame > span { display:block; min-width:0; flex:1; }
.home-frame-paper { background:#f9f4ea; }
.home-frame.theft-home-frame { background:#253659; padding:12px; aspect-ratio:auto; }
.home-frame.theft-home-frame picture { display:block; width:100%; }
.home-frame.theft-home-frame img { display:block; width:100%; height:auto; object-fit:contain; }
.home-frame-pages { padding:clamp(8px,1.4vw,16px); background:var(--front-ink); }
.home-frame-systems { flex-wrap:wrap; gap:10px; padding:clamp(10px,1.6vw,18px); }
.home-frame-systems > img { flex:0 0 100%; border:1px solid #d9d0c2; }
.home-frame-systems > span { flex:1 1 0; border:1px solid #d9d0c2; }
.home-frame-phones { gap:5%; padding:6% 5%; }
.home-frame-phones > span { flex:0 0 44%; }
.home-frame iframe, .home-feature .demo-frame { display:block; width:100%; height:min(680px,82vh); border:0; background:var(--front-ink); }
.home-copy .front-label { color:#5b5064; }
.home-copy h2, .home-more > h2, .home-ask h2 { margin-top:6px; font-size:clamp(26px,3.1vw,40px); line-height:1.1; }
.home-copy > p:not(.front-label) { margin-top:10px; max-width:46ch; font-size:16px; line-height:1.5; }
.home-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px 20px; margin-top:16px; }
.home-btn { display:inline-flex; align-items:center; min-height:46px; padding:0 18px; border:0; background:var(--front-purple); color:#fff; font:800 14px/1.2 "Helvetica Neue",Arial,sans-serif; text-decoration:none; cursor:pointer; }
.home-link { display:inline-flex; align-items:center; min-height:46px; color:inherit; font-size:14px; font-weight:800; text-underline-offset:4px; }
.portfolio-front :is(.home-btn,.home-link):focus-visible { outline:3px solid #7864a3; outline-offset:3px; }
.home-more { margin-top:var(--home-gap); padding-top:clamp(14px,2.2vw,24px); border-top:3px solid var(--front-ink); }
.home-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(22px,3vw,36px) clamp(12px,2.4vw,30px); margin:clamp(14px,2.2vw,24px) 0 0; padding:0; list-style:none; }
.home-card { display:block; color:var(--front-ink); text-decoration:none; }
.home-thumb { display:block; aspect-ratio:16 / 9; overflow:hidden; background:var(--front-ink); }
.home-thumb img { display:block; width:100%; height:100%; object-fit:cover; }
.home-thumb-top img { object-position:top; }
.home-card strong { display:block; margin-top:9px; font-size:16px; line-height:1.25; }
.home-card > span:last-child { display:block; margin-top:3px; font-size:14px; line-height:1.4; color:#4d4358; }
.home-card:hover strong, .home-card:focus-visible strong { text-decoration:underline; text-underline-offset:3px; }
.home-ask { margin-top:var(--home-gap); padding-top:clamp(14px,2.2vw,24px); border-top:3px solid var(--front-ink); }
.home-ask .home-copy > p:not(.front-label) { max-width:58ch; }
.home-main .front-index { margin-top:var(--home-gap); }
@media (max-width:739px) { .home-page-wide, .home-phone-wide { display:none !important; } }
@media (min-width:740px) {
  .home-feature { grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); align-items:center; }
  .home-frame { aspect-ratio:3 / 2; overflow:hidden; }
  .home-frame > img { width:100%; height:100%; object-fit:cover; }
  .home-frame-paper > img { object-fit:contain; }
  .home-frame-pages { gap:3%; padding:0; }
  .home-frame-pages > span { flex:0 0 42%; }
  .home-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .home-frame-systems { display:grid; grid-template-columns:minmax(0,2.05fr) minmax(0,1fr); align-content:center; align-items:center; gap:10px; }
  .home-frame-systems > img { grid-row:1 / span 2; height:auto; }
  .home-frame-phones { gap:4%; padding:0 5%; }
  .home-frame-phones > span { flex:0 0 27.5%; }
}

/* Both games get their own visible entry; retain the other projects. */
.home-games .home-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.home-games .home-thumb img { object-fit:contain; }
.home-games > h2 { scroll-margin-top:90px; }
@media(min-width:740px) { .home-grid.home-grid-three { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:599px) { .home-games .home-grid, .home-grid.home-grid-three { grid-template-columns:minmax(0,1fr); } }

/* Keep the complete daylight venue view at phone and desktop widths. */
.home-frame.home-frame-roof { aspect-ratio:auto; }
.home-frame.home-frame-roof > img { height:auto; object-fit:contain; }

/* Prices (D: seaside-prices-20261124) */
.front-price-line { display:inline-flex; align-items:center; min-height:44px; margin-left:18px; font-size:14px; font-weight:700; color:var(--front-ink); text-decoration:underline; text-underline-offset:3px; }
.home-ask:focus { outline:none; }
.home-prices { list-style:none; margin:18px 0 20px; padding:0; max-width:720px; border-top:1.5px solid var(--front-ink); }
.home-prices li { display:grid; grid-template-columns:1fr auto; gap:2px 16px; padding:12px 0; border-bottom:1px solid var(--rule, #d4cbe3); }
.home-prices .price-name { font-weight:700; font-size:16px; }
.home-prices .price-amount { font-weight:700; font-size:16px; text-align:right; white-space:nowrap; }
.home-prices .price-detail { grid-column:1 / -1; font-size:14px; line-height:1.45; max-width:60ch; color:#4b4160; }
.more .home-prices { margin-top:10px; }
.more .home-prices .price-detail { font-size:13px; }
@media (max-width:420px) { .front-price-line { margin-left:0; display:flex; } }

/* Three steps (seaside-three-steps-20261124) */
.home-steps { list-style:none; margin:18px 0 20px; padding:0; max-width:720px; border-top:1.5px solid var(--front-ink); }
.home-steps > li { display:grid; grid-template-columns:1fr auto; gap:4px 16px; padding:14px 0; border-bottom:1px solid var(--rule, #d4cbe3); }
.home-steps .step-name { font-weight:700; font-size:17px; }
.home-steps .step-amount { font-weight:700; font-size:17px; text-align:right; white-space:nowrap; }
.home-steps .step-detail { grid-column:1 / -1; font-size:14px; line-height:1.45; max-width:60ch; color:#4b4160; }
.home-steps .home-prices { grid-column:1 / -1; margin:6px 0 0; border-top:0; }
.home-steps .home-prices li { padding:10px 0 10px 14px; border-bottom:0; border-left:3px solid var(--front-purple, #39256c); margin-top:6px; }
.more .home-steps .step-detail { font-size:13px; }
