/* UpperLive — editorial: light type (Sarabun 300/400/500), wide space, hairlines, one red button. Spec §5 + mockup v4. */
@font-face{font-family:"Sarabun";font-weight:300;font-display:swap;src:url(/assets/fonts/Sarabun-300-thai.woff2) format("woff2");unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC}
@font-face{font-family:"Sarabun";font-weight:300;font-display:swap;src:url(/assets/fonts/Sarabun-300-latin.woff2) format("woff2");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}
@font-face{font-family:"Sarabun";font-weight:400;font-display:swap;src:url(/assets/fonts/Sarabun-400-thai.woff2) format("woff2");unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC}
@font-face{font-family:"Sarabun";font-weight:400;font-display:swap;src:url(/assets/fonts/Sarabun-400-latin.woff2) format("woff2");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}
@font-face{font-family:"Sarabun";font-weight:500;font-display:swap;src:url(/assets/fonts/Sarabun-500-thai.woff2) format("woff2");unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC}
@font-face{font-family:"Sarabun";font-weight:500;font-display:swap;src:url(/assets/fonts/Sarabun-500-latin.woff2) format("woff2");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}

:root{
  --bg:#0A0A0A;--line:#2A2A2A;--line-strong:#3A3A3A;--label:#9A9892;--body:#C9C7C1;--white:#ECEAE6;
  --red:#C9303E;--red-text:#D94452;--red-bright:#E5102E;--inv-bg:#ECEAE6;--inv-text:#0A0A0A;--inv-red:#B8202F;--inv-label:#5E5C57;--inv-line:#C9C7C1;
  --gutter:40px;--label-col:300px;--section-gap:140px;
  --font:"Sarabun","Helvetica Neue",Helvetica,Arial,sans-serif;
  --ease:cubic-bezier(.2,.75,.1,1);--hero-d:.15s;
}
*{box-sizing:border-box}
html{background:var(--bg);-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);font-weight:400;font-size:15px;line-height:1.7;letter-spacing:.01em;color:var(--white);background:var(--bg);overflow-x:hidden}
a{color:inherit;text-decoration:none}
a:hover{color:var(--red-bright)}
img,video{max-width:100%;display:block}
h1,h2,h3,p,ul{margin:0}
ul{padding:0;list-style:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.ico{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.ico--lg{width:30px;height:30px;stroke:var(--white);stroke-width:1.2}

/* skip link + loader (types the brand, then fades while the hero starts) */
.skip{position:absolute;left:-999px;top:8px;background:var(--white);color:var(--bg);padding:8px 12px}
.skip:focus{left:8px;z-index:20}
.loader{position:fixed;inset:0;z-index:30;background:var(--bg);display:flex;align-items:center;justify-content:center;pointer-events:none;transition:opacity .9s var(--ease)}
.loader__type{font-size:clamp(18px,2vw,26px);letter-spacing:.3em;font-weight:300;color:var(--white);padding-left:.3em}
.loader__char{opacity:0;animation:charIn .05s linear var(--d,0ms) forwards}
@keyframes charIn{to{opacity:1}}
.loader.is-done{opacity:0}
html:not(.js) .loader,.no-loader .loader{display:none}

/* header: slides down with the hero */
.site-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:18px var(--gutter);background:rgba(10,10,10,.82);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid rgba(42,42,42,.6)}
.js-rv .site-header{transform:translate3d(0,-120%,0)}
.hero-go .site-header{transform:none;transition:transform 1.25s var(--ease) var(--hero-d)}
.wordmark{display:flex;align-items:center;gap:12px;color:var(--white)}
.wordmark__text{display:flex;flex-direction:column;gap:1px}
.logo-mark{width:34px;height:34px;flex:none;color:var(--white)}
.wordmark__name{font-size:22px;font-weight:500;letter-spacing:-.02em;line-height:1.1}
.wordmark__sub{font-size:9px;letter-spacing:.2em;color:var(--label)}
.site-nav{display:flex;align-items:center;gap:32px;font-size:12px;letter-spacing:.14em;font-weight:400}
.site-nav__lang{color:var(--label)}
.menu-toggle{display:none;flex-direction:column;gap:6px;padding:10px 0 10px 10px}
.menu-toggle span{display:block;width:24px;height:1px;background:var(--white);transition:transform .3s}
.menu-toggle[aria-expanded="true"] span:first-child{transform:translateY(3.5px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] span:last-child{transform:translateY(-3.5px) rotate(-45deg)}

/* buttons: the red pill is the one thing on the page that asks to be pressed */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:999px;font-weight:400;letter-spacing:.02em;line-height:1.2;white-space:nowrap;transition:transform .25s var(--ease),background .25s,border-color .25s,color .25s}
.btn--primary{background:var(--red-bright);color:#fff;padding:16px 28px;font-size:16px}
.btn--primary:hover{background:#F0203C;color:#fff;transform:translateY(-2px)}
.btn--ghost{border:1px solid var(--line-strong);color:var(--white);padding:15px 26px;font-size:16px}
.btn--ghost:hover{border-color:var(--white);color:var(--white)}
.btn--nav{background:var(--red-bright);color:#fff;padding:10px 16px;font-size:12px;letter-spacing:.04em}
.btn--nav:hover{background:#F0203C;color:#fff}
.btn--lg{padding:18px 30px;font-size:17px}
.btn .ico{width:18px;height:18px}
.btn--nav .ico{width:14px;height:14px}

/* hero: breathing sphere behind, text lines rising from a mask */
.hero{position:relative;min-height:calc(100vh - 80px);min-height:calc(100svh - 80px);max-height:1100px;overflow:hidden;isolation:isolate;background:#050504;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:120px var(--gutter) 90px}
.hero__sphere{position:absolute;inset:0;width:100%;height:100%;z-index:-1;opacity:0}
.hero-go .hero__sphere{animation:sphereIn 2s cubic-bezier(.33,0,.2,1) .05s both}
@keyframes sphereIn{from{opacity:0}to{opacity:1}}
.no-webgl .hero__sphere,html:not(.js) .hero__sphere{display:none}
.hero__inner{position:relative;display:flex;flex-direction:column;align-items:center;gap:26px;max-width:1100px}
.hero__emblem{width:72px;height:72px;color:var(--white)}
.hero-go .hero__emblem{animation:heroIn 1.25s var(--ease) var(--hero-d) both,markSpin 12s cubic-bezier(.45,0,.55,1) calc(var(--hero-d) + 2.5s) infinite}
@keyframes heroIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes markSpin{0%,75%{transform:perspective(420px) rotateY(0)}100%{transform:perspective(420px) rotateY(360deg)}}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.2}}
.hero__label{font-size:11px;letter-spacing:.3em;color:var(--label);font-weight:400}
.hero__title{font-size:clamp(38px,5.4vw,78px);line-height:1.18;font-weight:300;letter-spacing:0}
.hero__title em{font-style:normal;color:var(--red)}
.hero__sub{font-size:clamp(14px,1.25vw,18px);color:var(--body);letter-spacing:.02em}
.hero__actions{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin-top:10px}
.hero-go .hero__actions{animation:heroIn 1.25s var(--ease) calc(var(--hero-d) + .5s) both}
.js-rv .hero__actions{opacity:0}
.hero-go .hero__actions{opacity:1}
.hero__corner-l,.hero__corner-r{position:absolute;bottom:40px;font-size:11px;letter-spacing:.22em;color:var(--label);font-weight:400}
.hero__corner-l{left:var(--gutter)}
.hero__corner-r{right:var(--gutter)}
.js-rv .hero__corner-l,.js-rv .hero__corner-r{opacity:0}
.hero-go .hero__corner-l,.hero-go .hero__corner-r{animation:heroIn 1.25s var(--ease) calc(var(--hero-d) + .7s) both}
/* line reveal: main.js wraps each visual line in .ln > .ln__in; the inner slides up from below the mask */
.tx .ln{display:block;overflow:hidden;padding:.18em 0 .2em;margin:-.18em 0 -.2em}
.tx .ln__in{display:block;transform:translate3d(0,calc(100% + .3em),0);transition:transform 1.25s var(--ease);transition-delay:calc(var(--hero-d) + var(--li,0) * 90ms);will-change:transform}
.tx.is-in .ln__in{transform:none}

/* sections: number + name in the left column, hairline on top, equal height */
.section{padding:var(--section-gap) var(--gutter);border-top:1px solid var(--line);display:grid;grid-template-columns:var(--label-col) minmax(0,1fr);gap:40px}
.section--tight{padding-top:120px}
.section__label{display:flex;flex-direction:column;gap:8px;padding-top:10px}
.section__num{font-size:11px;letter-spacing:.24em;color:var(--red-text);font-weight:400}
.section__name{font-size:13px;color:var(--label)}
.section__body{display:flex;flex-direction:column;gap:56px;min-width:0}
.section__body--narrow{max-width:760px;gap:36px}
.label{font-size:11px;letter-spacing:.22em;color:var(--label);font-weight:400}
.h2{font-size:40px;line-height:1.4;font-weight:300;color:var(--red)}
h3{font-size:22px;line-height:1.5;font-weight:300}
.lead{font-size:15px;color:var(--body);line-height:1.9}
.lead--big{font-size:17px}
.prose{display:flex;flex-direction:column;gap:28px;font-size:15px;color:var(--body);line-height:2;max-width:760px}
.intro{display:flex;flex-direction:column;gap:24px;max-width:760px}
.note{font-size:13px;color:var(--label);line-height:1.9}
.note--rule{border-left:1px solid var(--red);padding-left:20px}
.cta{display:inline-flex;align-items:center;gap:12px;font-size:15px;letter-spacing:.04em;color:var(--white);width:fit-content}
.arrow{display:inline-block;color:var(--red-bright);transition:transform .3s ease}
a:hover .arrow,button:hover .arrow{transform:translateX(6px)}
.breadcrumb{display:flex;gap:8px;padding:48px var(--gutter) 0;font-size:11px;letter-spacing:.14em;color:var(--label)}
.breadcrumb a{color:var(--label)}
.facts{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.facts li{padding:18px 0;border-bottom:1px solid var(--line);font-size:15px;display:grid;grid-template-columns:24px 1fr;gap:12px}
.facts li::before{content:"—";color:var(--red-bright)}

/* lists with hairlines */
.list{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.list__row{display:grid;grid-template-columns:80px minmax(0,1fr);gap:24px;padding:36px 0;border-bottom:1px solid var(--line)}
.list__row>div{display:flex;flex-direction:column;gap:10px}
.list__row p{font-size:14px;color:var(--label);max-width:560px}
.list__num{display:flex;flex-direction:column;gap:10px;font-size:13px;color:var(--label);font-weight:400}
.lines{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.lines li{padding:16px 0;border-bottom:1px solid var(--line);font-size:14px}
.lines--between li{display:flex;justify-content:space-between;gap:16px;padding:20px 0;font-size:16px}
.lines--between li span:last-child{font-size:12px;color:var(--label);letter-spacing:.06em;text-align:right;flex:none}
.lines--between li span.is-mixed{color:var(--red-text)}

/* cards */
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.cards--3{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.card{border:1px solid var(--line);padding:36px;display:flex;flex-direction:column;gap:24px}
.card h3{font-size:24px;color:var(--red-text)}
.card p{font-size:14px;color:var(--label)}
.card .lines li{padding:12px 0;font-size:14px}
.card .note{margin-top:auto;font-size:12px}
.card .btn{margin-top:auto}
.card--inverted{background:var(--inv-bg);color:var(--inv-text);border:0}
.card--inverted .label{color:var(--inv-label)}
.card--inverted h3,.card--inverted .price__name{color:var(--inv-red)}
.card--inverted .lines,.card--inverted .lines li{border-color:var(--inv-line)}
.card--inverted .price__meta,.card--inverted .price__amount small{color:var(--inv-label)}
.price{display:flex;flex-direction:column;gap:6px}
.price__name{font-size:20px;color:var(--red-text)}
.price__amount{font-size:36px;line-height:1.2}
.price__amount small{font-size:14px;color:var(--label)}
.price__meta{font-size:13px;color:var(--label)}

/* columns, who, video, profile */
.cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px}
.cols--2{grid-template-columns:repeat(2,minmax(0,1fr));gap:80px;align-items:start}
.col{display:flex;flex-direction:column;gap:20px}
.col h3,.col h2{font-size:24px;line-height:1.5;font-weight:300;color:var(--red-text)}
.col .lines li{padding:14px 0}
.who{display:grid;grid-template-columns:320px minmax(0,1fr);gap:64px;align-items:start}
.who__text{display:flex;flex-direction:column;gap:28px;max-width:620px}
.video{position:relative;border:1px solid var(--line)}
.video video{width:100%;aspect-ratio:9/16;background:#000}
.video__caption{display:block;font-size:11px;letter-spacing:.14em;color:var(--label);padding:10px 12px}
.profile{display:flex;gap:28px;align-items:center;padding-top:16px}
.profile img{width:120px;height:120px;object-fit:cover;object-position:center 20%;filter:grayscale(.6)}
.profile__name{font-size:22px;font-weight:400}
.profile__meta{font-size:13px;color:var(--label);letter-spacing:.04em}

/* faq */
.faq{display:flex;flex-direction:column;border-top:1px solid var(--line);max-width:860px}
.faq__item{border-bottom:1px solid var(--line)}
.faq__item summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:26px 0;cursor:pointer}
.faq__item summary::-webkit-details-marker{display:none}
.faq__item h2,.faq__item h3{font-size:18px;line-height:1.5;font-weight:300;color:var(--white)}
.faq__mark{position:relative;width:14px;height:14px;flex:none}
.faq__mark::before,.faq__mark::after{content:"";position:absolute;left:0;top:6px;width:14px;height:1px;background:var(--label);transition:transform .3s}
.faq__mark::after{transform:rotate(90deg)}
.faq__item[open] .faq__mark::after{transform:rotate(0)}
.faq__item[open] .faq__mark::before,.faq__item[open] .faq__mark::after{background:var(--red)}
.faq__body{padding:0 0 26px;max-width:700px}
.faq__body p{font-size:14px;color:var(--label);line-height:1.9}

/* form + contact */
.contact-links{display:flex;flex-direction:column;gap:18px;border-top:1px solid var(--line);padding-top:28px}
.contact-links a{display:flex;justify-content:space-between;align-items:center;font-size:16px}
.contact-links a>span:first-child{display:inline-flex;align-items:center;gap:12px}
.contact-links a>span:first-child span{color:var(--label)}
.contact-links .ico{stroke:var(--label)}
.form{display:flex;flex-direction:column;gap:30px;position:relative}
.field{display:flex;flex-direction:column;gap:10px}
.field label{font-size:12px;letter-spacing:.12em;color:var(--label)}
.field label b{color:var(--red-text);font-weight:400}
.field input,.field textarea{font:inherit;font-size:16px;color:var(--white);background:transparent;border:0;border-bottom:1px solid var(--line-strong);padding:10px 0;outline:none;width:100%;border-radius:0}
.field input:focus,.field textarea:focus{border-bottom-color:var(--red)}
.field textarea{resize:vertical;min-height:80px}
.form .btn{align-self:flex-start}
.form__hp{position:absolute;left:-9999px;opacity:0;height:0;overflow:hidden}
.form__status{font-size:14px;color:var(--body);min-height:1.5em}
.form__status.is-error{color:var(--red-text)}

/* footer */
.site-footer{padding:56px var(--gutter) 40px;display:flex;flex-direction:column;gap:40px;border-top:1px solid var(--line)}
.site-footer__row{display:flex;justify-content:space-between;align-items:flex-start;gap:40px;flex-wrap:wrap}
.site-footer__nav{display:flex;gap:32px;font-size:12px;letter-spacing:.14em;font-weight:400;flex-wrap:wrap}
.site-footer__link{color:var(--label)}
.site-footer__meta{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:11px;letter-spacing:.08em;color:var(--label)}

/* reveal: blocks fade up 16px once they enter the viewport (only when JS will add .is-in) */
.js .reveal{opacity:0;transform:translate3d(0,16px,0);transition:opacity 1s cubic-bezier(.22,.61,.36,1),transform 1s cubic-bezier(.22,.61,.36,1)}
.js .reveal.is-in{opacity:1;transform:none}

/* mobile */
@media (max-width:900px){
  :root{--gutter:20px;--section-gap:90px}
  .site-header{padding:14px var(--gutter)}
  .wordmark__name{font-size:18px}.wordmark__sub{font-size:8px}.logo-mark{width:28px;height:28px}
  .menu-toggle{display:flex}
  .site-nav{display:none;position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;gap:0;padding:0 var(--gutter) 24px;background:var(--bg);border-bottom:1px solid var(--line)}
  .site-nav.is-open{display:flex}
  .site-nav a{padding:16px 0;border-top:1px solid var(--line);font-size:14px}
  .site-nav .btn--nav{margin-top:16px;padding:14px;border-top:0;font-size:14px}
  .hero{min-height:720px;padding:100px var(--gutter) 70px}
  .hero__inner{gap:20px}
  .hero__title{font-size:38px;line-height:1.25}
  .hero__sub{font-size:14px}
  .hero__actions{flex-direction:column;width:100%}
  .hero__actions .btn{width:100%}
  .hero__corner-l,.hero__corner-r{bottom:28px}
  .hero__corner-r{display:none}
  .section{grid-template-columns:1fr;gap:26px}
  .section__label{flex-direction:row;align-items:baseline;gap:12px;padding-top:0}
  .section__body{gap:32px}
  .h2{font-size:27px;line-height:1.45}
  h3{font-size:18px}
  .lead,.prose{font-size:14px;line-height:1.95}
  .lead--big{font-size:15px}
  .list__row{grid-template-columns:1fr;gap:10px;padding:22px 0}
  .list__num{flex-direction:row;align-items:center}
  .ico--lg{width:24px;height:24px}
  .cards,.cards--3,.cols,.cols--2,.who{grid-template-columns:1fr;gap:16px}
  .cols--2,.who{gap:32px}
  .who .video{max-width:240px}
  .card{padding:26px 22px}
  .card h3,.col h3{font-size:19px}
  .price__amount{font-size:30px}
  .lines--between li{font-size:15px}
  .lines--between li span:last-child{font-size:11px}
  .profile img{width:84px;height:84px}
  .breadcrumb{padding-top:32px}
  .site-footer__nav{gap:20px}
}

/* motion off: everything visible, nothing moves (spec §6) */
@media (prefers-reduced-motion:reduce){
  .loader{display:none}
  .js .reveal{opacity:1;transform:none;transition:none}
  .js-rv .site-header,.js-rv .hero__actions,.js-rv .hero__corner-l,.js-rv .hero__corner-r{transform:none;opacity:1;animation:none}
  .hero-go .hero__emblem,.hero-go .hero__sphere,.hero-go .hero__actions{animation:none;opacity:1}
  .tx .ln__in{transform:none;transition:none}
  .arrow,.btn,.faq__mark::before,.faq__mark::after,.menu-toggle span{transition:none}
}
