@font-face { font-family: lineSeed; src: url(fonts/LINESeed-Rg.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: lineSeed; src: url(fonts/LINESeed-Bd.ttf) format("truetype"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: lineSeed; src: url(fonts/LINESeed-XBd.ttf) format("truetype"); font-weight: 800 900; font-display: swap; }

:root {
  --bg: #101010;
  --raised: #1a1a1a;
  --card: rgba(255, 255, 255, .05);
  --card-hover: rgba(255, 255, 255, .07);
  --text: #fff;
  --soft: rgba(255, 255, 255, .7);
  --muted: rgba(255, 255, 255, .6);
  --faint: rgba(255, 255, 255, .48);
  --line: rgba(255, 255, 255, .06);
  --accent: #ff9440;
  --on-accent: #1a0c00;
  --font: "Inter", "Noto Sans Thai", system-ui, sans-serif;
  --display: lineSeed, "Inter", "Noto Sans Thai", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%; scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }
body { min-width: 320px; background: var(--bg); color: var(--text); font: 15.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
ol, ul { list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.card { background: var(--card); border-radius: 24px; transition: background-color .25s; }

.ico { flex: none; width: 18px; height: 18px; }
.ico.filled { fill: currentColor; stroke: none; }
.pill .ico { width: 18px; height: 18px; margin-left: -2px; }
.pill.sm .ico { width: 16px; height: 16px; }
.pill:hover .ico { transform: none; }
.pill .ico { transition: transform .35s var(--ease); }
.pill.accent:hover [data-icon="send"] .ico, .pill.accent:hover .ico.send { transform: translate(2px, -2px) rotate(8deg); }
.pill.soft:hover .ico.arrow-down { transform: translateY(2px); }

html.custom-cursor, html.custom-cursor * { cursor: none !important; }
.cursor-dot {
  position: fixed; left: 0; top: 0; z-index: 90; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); pointer-events: none; transition: opacity .15s, width .2s var(--ease), height .2s var(--ease);
}
.cursor-ring {
  position: fixed; z-index: 90; pointer-events: none; border: 1px solid rgba(255, 148, 64, .55); border-radius: 18px;
  transition: border-color .2s, opacity .15s, transform 90ms cubic-bezier(.4, 0, .2, 1);
}
.cursor-ring.on-target { border-color: rgba(255, 255, 255, .55); }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background-color .2s, transform .2s var(--ease);
}
.pill:active { transform: scale(.95); }
.pill.accent { background: var(--accent); color: var(--on-accent); }
.pill.accent:hover { background: #ffa25a; }
.pill.soft { background: rgba(255, 255, 255, .08); }
.pill.soft:hover { background: rgba(255, 255, 255, .13); }
.pill.sm { height: 36px; padding: 0 16px; font-size: 14px; }

.top { position: sticky; top: 0; z-index: 20; transition: background-color .35s, box-shadow .35s; }
.top.scrolled { background: rgba(16, 16, 16, .97); box-shadow: 0 1px 0 var(--line); }
.top .wrap { max-width: none; padding: 0 clamp(20px, 3vw, 44px); height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { justify-self: start; font-family: var(--display); font-size: 18px; font-weight: 800; }
.hash { display: inline-block; color: var(--accent); transition: transform .5s var(--ease); }
.brand:hover .hash { transform: rotate(-12deg) scale(1.12); }
.top-right { justify-self: end; display: flex; align-items: center; gap: 8px; }

.lang-switch { position: relative; display: flex; align-items: center; gap: 2px; border-radius: 999px; background: rgba(255, 255, 255, .05); }
.lang-btn {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 0; height: 36px; padding: 0 5px;
  border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text); transition: background-color .2s;
}
.lang-btn:not(.active):hover { background: rgba(255, 255, 255, .08); }
.lang-btn img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.lang-btn .lang-name { overflow: hidden; white-space: nowrap; transition: width .25s var(--ease), opacity .25s var(--ease); }
.lang-btn.active { padding: 0 14px 0 5px; gap: 8px; }
.lang-highlight {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: rgba(255, 255, 255, .1);
  transition: transform .4s var(--ease), width .4s var(--ease);
}

.cursor-dot .paw { display: none; width: 100%; height: 100%; fill: currentColor; stroke: none; }
html.meow .cursor-dot { width: 20px; height: 20px; border-radius: 0; background: none; color: var(--accent); }
html.meow .cursor-dot .paw { display: block; }

.rain { position: fixed; inset: 0; z-index: 70; overflow: hidden; pointer-events: none; }
.rain span { position: absolute; top: 0; font-family: var(--display); font-weight: 800; color: var(--accent); will-change: transform; }
.rain svg { display: block; width: 1em; height: 1em; fill: currentColor; stroke: none; }

.nav {
  position: relative; display: flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: 999px; background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
  font-size: 14px; font-weight: 500;
}
.nav a { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; color: var(--muted); transition: color .25s; }
.nav a:hover, .nav a.on { color: var(--text); }
.nav a .ico { width: 15px; height: 15px; opacity: .55; transition: opacity .25s, color .25s, transform .35s var(--ease); }
.nav a:hover .ico { opacity: 1; transform: translateY(-1px); }
.nav a.on .ico { opacity: 1; color: var(--accent); }
.nav a:active { transform: scale(.95); }
.nav a:focus-visible { outline-offset: -2px; }
.nav-pill {
  position: absolute; left: 0; top: 4px; bottom: 4px; border-radius: 999px; pointer-events: none;
  background: rgba(255, 255, 255, .08); opacity: 0;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
}
.nav.lit .nav-pill { opacity: 1; }

.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; overflow: hidden; opacity: 0; transition: opacity .35s; }
.top.scrolled .progress { opacity: 1; }
.progress i {
  display: block; height: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(255, 148, 64, 0), var(--accent));
}

.atmos {
  position: absolute; left: 0; right: 0; top: 0; z-index: -1; height: min(1100px, 125vh);
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
  mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
.rays { position: absolute; inset: 0; }
.rays canvas { display: block; width: 100%; height: 100%; }
.glow {
  display: none; position: absolute; left: 50%; top: -30%; width: 80vw; aspect-ratio: 1; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(255, 148, 64, .2), transparent);
}
.atmos.no-gl .glow { display: block; }
.grid {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 23v10M23 28h10' stroke='%23fff' stroke-opacity='.11' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 38%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 38%, #000, transparent 72%);
}
.grid.lit {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 23v10M23 28h10' stroke='%23ff9440' stroke-opacity='.7' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(200px circle at var(--mx, -999px) var(--my, -999px), #000, transparent);
  mask-image: radial-gradient(200px circle at var(--mx, -999px) var(--my, -999px), #000, transparent);
  opacity: 0; transition: opacity .4s;
}
.atmos.pointer .grid.lit { opacity: 1; }

.hero {
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px;
  min-height: calc(100svh - 68px); padding-top: 40px; padding-bottom: 72px;
}
.hero h1 { font-family: var(--display); font-size: clamp(40px, 5vw, 62px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.lede { max-width: 42ch; margin-top: 20px; font-size: 17px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.rotator {
  position: relative; display: inline-block; vertical-align: top; overflow: hidden;
  height: 1.5em; margin: -.16em 0 -.24em; color: var(--accent);
  transition: width .55s var(--ease);
}
.rot-word { position: absolute; left: 0; top: .16em; white-space: nowrap; }
.rot-ch { display: inline-block; will-change: transform; }

.stack-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.stack { position: relative; width: 100%; aspect-ratio: 16 / 10.5; margin-top: 36px; touch-action: pan-y; outline: none; }
.stack:focus-visible .stack-card:first-child { outline: 2px solid var(--accent); outline-offset: 4px; }
.stack-card {
  position: absolute; inset: 0; padding: 8px; border-radius: 22px;
  background: var(--raised); box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  cursor: grab; user-select: none; transform-origin: 50% 90%;
  transition: transform .6s cubic-bezier(.2, 1.2, .35, 1), filter .4s, opacity .4s;
}
.stack-card.dragging { cursor: grabbing; transition: none; }
.stack-card img { width: 100%; height: 100%; object-fit: cover; object-position: top left; border-radius: 15px; pointer-events: none; }
.hint { margin-top: 22px; font-size: 13px; color: var(--faint); }

.section { padding: 112px 0 0; }
.head { max-width: 560px; margin: 0 auto 44px; text-align: center; }
.head h2 { font-family: var(--display); font-size: 36px; font-weight: 800; line-height: 1.15; }
.head p { margin-top: 10px; color: var(--muted); }

.work { display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: start; }
.work-list { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; }
.work-item {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: 16px; text-align: left;
  transition: background-color .2s;
}
.work-item:hover { background: rgba(255, 255, 255, .03); }
.work-item[aria-selected="true"] { background: var(--card); }
.work-item .name { font-size: 15px; font-weight: 600; color: var(--muted); transition: color .2s; }
.work-item .kind { font-size: 13px; color: var(--faint); }
.work-item:hover .name, .work-item[aria-selected="true"] .name { color: var(--text); }
.work-item[aria-selected="true"] .kind { color: var(--accent); }

.viewer-card { padding: 12px; will-change: transform; }
.viewer {
  position: relative; overflow: hidden; aspect-ratio: 2 / 1; border-radius: 16px;
  background: rgba(0, 0, 0, .25); cursor: pointer; outline: none;
  transition: aspect-ratio .5s var(--ease);
}
.viewer:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.viewer img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .45s var(--ease); user-select: none;
}
.viewer img.in { opacity: 1; }
.ctrl {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  display: flex; align-items: center; padding: 4px; border-radius: 999px;
  background: rgba(16, 16, 16, .88); font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: default;
}
.ctrl button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px; color: var(--text); transition: background-color .2s; }
.ctrl button:hover { background: rgba(255, 255, 255, .1); }
.ctrl .ico { width: 16px; height: 16px; }
.count { min-width: 58px; text-align: center; font-variant-numeric: tabular-nums; }

.days { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.day { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); transition: background-color .3s; }
.day.on { background: var(--accent); }
.scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--faint); }
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.phase { position: relative; overflow: hidden; padding: 24px; }
.phase::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 148, 64, .13), transparent 70%);
}
.phase:hover::before { opacity: 1; }
.phase > * { position: relative; }
.phase:hover, .phase.on { background: var(--card-hover); }
.phase .when { font-size: 13px; font-weight: 600; color: var(--muted); transition: color .25s; }
.phase.on .when { color: var(--accent); }
.phase { cursor: pointer; }
.phase::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  transform-origin: left; transform: scaleX(var(--p, 0));
}
.day.past { background: rgba(255, 148, 64, .3); }
.phase h3 { margin: 6px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.phase p { font-size: 14px; color: var(--muted); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { display: flex; flex-direction: column; padding: 12px; }
.tier:hover { background: var(--card-hover); }
.tier { position: relative; }
.tier.featured {
  background: linear-gradient(180deg, rgba(255, 148, 64, .10), rgba(255, 255, 255, .04) 45%);
  box-shadow: inset 0 0 0 1px rgba(255, 148, 64, .28), 0 30px 80px -30px rgba(255, 148, 64, .35);
}
.tier.featured:hover { background: linear-gradient(180deg, rgba(255, 148, 64, .14), rgba(255, 255, 255, .06) 45%); }
.tier.featured .go { background: var(--accent); color: var(--on-accent); }
.tier-shot { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 16px; background: rgba(0, 0, 0, .25); }
.tier-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s var(--ease); }
.tier:hover .tier-shot img { transform: scale(1.03); }
.flag {
  position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600;
}
.tier-body { display: flex; flex: 1; flex-direction: column; padding: 18px 10px 6px; }
.tier-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tier h3 { font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.tag { font-size: 13px; color: var(--faint); }
.tier p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.tier-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 20px; }
.price { font-size: 24px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.go {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px;
  background: rgba(255, 255, 255, .08); transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.go .ico { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.tier:hover .go .ico { transform: translateX(2px); }
.tier:hover .go { background: var(--accent); color: var(--on-accent); }
.go:active { transform: scale(.92); }
.fine { margin-top: 20px; text-align: center; font-size: 13px; color: var(--faint); }

.faq { display: flex; flex-direction: column; gap: 8px; interpolate-size: allow-keywords; }
.qa { border-radius: 18px; }
.qa:hover { background: var(--card-hover); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 600; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ico { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform .35s var(--ease), color .2s; }
.qa[open] summary .ico { transform: rotate(180deg); color: var(--text); }
.qa p { padding: 0 22px 20px; color: var(--muted); }
.qa::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
.qa[open]::details-content { height: auto; }

.ribbon { overflow: hidden; margin-top: 112px; }
.ribbon svg { display: block; width: 100%; }
.ribbon .band { fill: none; stroke-linecap: butt; stroke-linejoin: round; }
.ribbon .lane-front .band { stroke: var(--accent); }
.ribbon .lane-back .band { stroke: var(--raised); }
.ribbon text { font-family: var(--display); font-weight: 800; letter-spacing: .03em; stroke: none; }
.ribbon .lane-front text { fill: var(--on-accent); }
.ribbon .lane-back text { fill: var(--faint); }

.contact { padding: 72px 0 96px; text-align: center; }
.contact h2 { font-family: var(--display); font-size: clamp(32px, 4vw, 44px); font-weight: 800; line-height: 1.15; }
.contact p { margin-top: 10px; color: var(--muted); }
.contact .actions { justify-content: center; }

.foot { overflow-x: clip; }
.bigmark { overflow: visible; }
.bigmark {
  padding-top: 16px; white-space: nowrap; user-select: none; text-align: center;
  font-family: var(--display); font-size: clamp(72px, 19vw, 240px); font-weight: 800; line-height: .8; letter-spacing: -.04em;
  color: rgba(255, 255, 255, .045);
}
.sharp { position: relative; font: inherit; letter-spacing: inherit; color: var(--accent); }
.sharp:focus-visible { outline-offset: -4px; }
.note { position: absolute; left: 50%; top: 0; pointer-events: none; font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: 0; color: var(--accent); }
.foot-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 28px; padding: 22px 0 32px; box-shadow: 0 -1px 0 var(--line);
  font-size: 13px; color: var(--faint);
}
.foot-row nav { display: flex; gap: 20px; }
.foot-row a { transition: color .2s; }
.foot-row a:hover { color: var(--text); }

.scrollbar { position: fixed; top: 8px; right: 4px; bottom: 8px; z-index: 40; width: 14px; }
.scrollbar .thumb {
  position: absolute; right: 2px; width: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .22); opacity: 0;
  transition: opacity .4s, width .2s var(--ease), background-color .2s;
}
.scrollbar.on .thumb, .scrollbar:hover .thumb, .scrollbar.dragging .thumb { opacity: 1; }
.scrollbar:hover .thumb, .scrollbar.dragging .thumb { width: 8px; background: rgba(255, 255, 255, .35); }
.scrollbar.dragging .thumb { background: var(--accent); }

.spark-layer { position: fixed; inset: 0; z-index: 60; width: 100vw; height: 100vh; pointer-events: none; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; translate: -50% 0;
  padding: 12px 20px; border-radius: 999px; background: var(--raised);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5); font-size: 14px; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.in { opacity: 1; transform: none; }

.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].shown { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 72px; gap: 8px; }
  .stack { max-width: 560px; }
  .work { grid-template-columns: 1fr; gap: 12px; }
  .work-list { position: static; flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px; }
  .work-list::-webkit-scrollbar { display: none; }
  .work-item { padding: 9px 16px; white-space: nowrap; border-radius: 999px; }
  .work-item .kind { display: none; }
  .work-item .name { font-size: 14px; }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .work-list { margin: 0 -16px; padding: 0 16px; }
  .nav { display: none; }
  .top .wrap { grid-template-columns: 1fr auto; }
  .lang-btn .lang-name { display: none; }
  .lang-btn.active { padding: 0 5px; }

  .hero { padding-top: 56px; }
  .section { padding-top: 88px; }
  .head h2 { font-size: 30px; }
  .viewer-card { padding: 8px; }
  .viewer { border-radius: 14px; }
  .ctrl { right: 8px; bottom: 8px; padding: 2px; font-size: 12px; }
  .ctrl button { width: 26px; height: 26px; }
  .count { min-width: 44px; }
  .stack { margin-top: 48px; }
  .phases { grid-template-columns: 1fr; }
  .ribbon { margin-top: 88px; }
}
@media (pointer: coarse) { .scrollbar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
