/* Shared styles for trixium.net */
body{margin:0;background:#000000}
a{color:#ffffff}a:hover{color:#dbe4ff}
a:focus-visible{outline:1px solid #ffffff;outline-offset:4px}
.tx-link{transition:background-color .25s ease,color .25s ease}
.tx-link:hover{background-color:rgba(255,255,255,0.1)}
.tx-btn{transition:transform .25s ease,background-color .25s ease}
.tx-btn:hover{transform:translateY(-2px)}
/* Responsive */
@supports (min-height:100dvh){.tx-motion{min-height:100dvh !important}}
#hero-title{white-space:nowrap}
/* Nav: links, then the language picker + menu button (menu button is mobile-only) */
.tx-links{margin-left:auto !important}
.tx-tools{display:flex;align-items:center;gap:6px;margin-left:-20px}
.tx-burger{display:none;position:relative;flex:none;width:44px;height:44px;padding:0;border-radius:999px;border:1px solid rgba(255,255,255,0.28);background:transparent;color:#ffffff;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .25s ease,border-color .25s ease}
.tx-burger span{position:absolute;left:13px;right:13px;height:1.5px;border-radius:2px;background:currentColor;transition:transform .25s ease}
.tx-burger span:first-child{top:17px}
.tx-burger span:last-child{top:24px}
.tx-burger[aria-expanded="true"]{background-color:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.6)}
.tx-burger[aria-expanded="true"] span:first-child{transform:translateY(3.5px) rotate(45deg)}
.tx-burger[aria-expanded="true"] span:last-child{transform:translateY(-3.5px) rotate(-45deg)}
.tx-burger:focus-visible{outline:1px solid #ffffff;outline-offset:3px}
.tx-motion::after{content:"";position:absolute;inset:0;z-index:2;background:rgba(0,0,0,0.55);opacity:0;pointer-events:none;transition:opacity .25s ease}
@media (max-width:760px){
header{padding:12px 12px 0 !important}
nav[aria-label="Main"]{flex-wrap:nowrap !important;gap:8px !important;padding:6px 6px 6px 20px !important}
.tx-brand>span>span:first-child{font-size:21px !important}
.tx-brand>span>span:last-child{font-size:9.5px !important;margin-top:-2px !important}
.tx-tools{margin-left:auto}
.tx-tools .tx-lang{margin-left:0;padding:0 10px;gap:5px}
html.tx-js .tx-burger{display:inline-flex}
html.tx-js .tx-links{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:20;flex-direction:column !important;flex-wrap:nowrap !important;gap:2px !important;padding:8px !important;box-sizing:border-box;border-radius:24px;background:#0a0c0b;backdrop-filter:blur(24px) saturate(160%);-webkit-backdrop-filter:blur(24px) saturate(160%);border:1px solid rgba(255,255,255,0.18);box-shadow:inset 0 1px 0 rgba(226,244,231,0.25),0 18px 44px rgba(0,0,0,0.6);opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .2s ease,transform .2s ease,visibility 0s linear .2s}
html.tx-js nav.tx-open .tx-links{opacity:1;visibility:visible;transform:none;transition:opacity .2s ease,transform .2s ease}
html.tx-js .tx-links .tx-link{display:flex !important;justify-content:space-between;gap:16px;min-height:56px !important;padding:0 22px !important;border-radius:16px !important;font-size:22px !important;letter-spacing:0.02em !important}
html.tx-js .tx-links .tx-link::after{content:"";flex:none;width:8px;height:8px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg);opacity:.55}
html.tx-menu-open .tx-motion::after{opacity:1;pointer-events:auto}
html:not(.tx-js) nav[aria-label="Main"]{flex-wrap:wrap !important}
html:not(.tx-js) .tx-links{order:3;width:100%;justify-content:center}
html:not(.tx-js) .tx-links .tx-link{padding:0 13px !important;font-size:15px !important}
}
@media (max-width:640px){
main{padding:48px 16px 96px !important;gap:32px !important}
#hero-title{font-size:min(120px,26vw) !important}
#hero-title+p{margin-top:calc(min(120px,26vw) * -0.2) !important;font-size:clamp(12px,3.9vw,16px) !important}
.tx-cta{flex-direction:column;align-items:stretch;width:100%;max-width:320px;gap:12px !important}
.tx-cta .tx-btn{justify-content:center;min-height:56px !important}
main h1:not(#hero-title){font-size:min(64px,15vw) !important}
.tx-lede{font-size:18px !important;line-height:1.5 !important}
.tx-split{gap:36px !important}
.tx-split>div:first-child{gap:16px !important}
.tx-stack{gap:40px !important}
.tx-stack>div:first-child{gap:12px !important}
.tx-card{padding:24px 20px !important}
.tx-card button[type="submit"]{align-self:stretch !important;justify-content:center;min-height:52px !important}
.tx-foot{flex-direction:column;justify-content:center !important;gap:6px !important;padding:20px 16px max(22px,env(safe-area-inset-bottom)) !important;text-align:center;font-size:13px !important;text-wrap:balance}
}
@media (max-height:500px) and (orientation:landscape){
main{padding-top:40px !important;padding-bottom:72px !important;gap:28px !important}
#hero-title{font-size:clamp(72px,22vh,216px) !important}
#hero-title+p{margin-top:calc(clamp(72px,22vh,216px) * -0.2) !important}
}
main h1:not(#hero-title){white-space:nowrap}
html[lang="cy"] main h1.tx-talk{font-size:clamp(44px,5.5vw,84px) !important}
@media (max-width:640px){html[lang="cy"] main h1.tx-talk{font-size:min(64px,11vw) !important}}
.tx-lang-wrap{position:relative}
.tx-lang{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;margin-left:6px;padding:0 12px;box-sizing:border-box;border-radius:999px;border:1px solid rgba(255,255,255,0.28);background:transparent;color:rgba(255,255,255,0.86);font-family:inherit;cursor:pointer;transition:background-color .25s ease,border-color .25s ease}
.tx-lang:hover,.tx-lang[aria-expanded="true"]{background-color:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.6)}
.tx-lang:focus-visible,.tx-lang-menu button:focus-visible{outline:1px solid #ffffff;outline-offset:3px}
.tx-flag{display:block;width:26px;height:16px;border-radius:3px;box-shadow:0 0 0 1px rgba(255,255,255,0.3);flex:none}
.tx-caret{transition:transform .2s ease}
.tx-lang[aria-expanded="true"] .tx-caret{transform:rotate(180deg)}
.tx-lang-menu{position:absolute;top:calc(100% + 10px);right:0;z-index:20;display:flex;flex-direction:column !important;gap:2px;min-width:176px;margin:0;padding:6px;list-style:none;box-sizing:border-box;border-radius:16px;background:#0a0c0b;backdrop-filter:blur(24px) saturate(160%);-webkit-backdrop-filter:blur(24px) saturate(160%);border:1px solid rgba(255,255,255,0.18);box-shadow:inset 0 1px 0 rgba(226,244,231,0.25),0 18px 44px rgba(0,0,0,0.6)}
.tx-lang-menu[hidden]{display:none}
.tx-lang-menu button{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:#ffffff;font-family:inherit;font-size:16px;letter-spacing:0.03em;text-align:left;cursor:pointer;transition:background-color .2s ease}
.tx-lang-menu button:hover{background:rgba(255,255,255,0.1)}
.tx-lang-menu button[aria-checked="true"]{background:rgba(255,255,255,0.14)}
.tx-lang-menu button[aria-checked="true"]::after{content:"";margin-left:auto;width:12px;height:7px;border-left:1.5px solid #ffffff;border-bottom:1.5px solid #ffffff;transform:translateY(-2px) rotate(-45deg)}
nav[aria-label="Main"]{position:relative}
@media (prefers-reduced-motion: reduce){.tx-motion *{animation:none !important}}
