/* Almax Invest: one design for almaxinvest.com and careers.almaxinvest.com.
   Simple, clean, intentional: white space, large type, one idea per section, photographs carry the mood.
   sx-* = the shared shell (header, footer, buttons); hx-* = the company page. */
:root{
  --bg:#FFFFFF; --grey:#F5F5F7; --ink:#1D1D1F; --muted:#6E6E73; --line:#D2D2D7; --navy:#1B2A41; --gold:#B8935A; --link:#1B2A41;
  --sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,Roboto,"Helvetica Neue",Arial,sans-serif;
  --display:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",system-ui,Roboto,"Helvetica Neue",Arial,sans-serif;
}
@media (prefers-color-scheme: dark){:root{--bg:#000;--grey:#101114;--ink:#F5F5F7;--muted:#A1A1A6;--line:#333336;--link:#C9D3E3;color-scheme:dark}}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:56px}
body.sx{margin:0;background:var(--bg);color:var(--ink);font:17px/1.47 var(--sans);letter-spacing:-.022em;-webkit-font-smoothing:antialiased}
.sx :where(h1,h2,h3,h4){font-family:var(--display);font-weight:600;margin:0;letter-spacing:-.02em;text-wrap:balance}
.sx :where(p){margin:0}
.sx :where(a){color:var(--link)}
.sx-wrap{max-width:1080px;margin:0 auto;padding-inline:22px}
.sx-skip{position:absolute;left:-999px}.sx-skip:focus{left:12px;top:12px;background:var(--bg);padding:8px 12px;z-index:20}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

/* Header: thin, translucent, the same on both sites */
.sx-top{position:sticky;top:0;z-index:15;background:color-mix(in srgb,var(--bg) 80%,transparent);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid color-mix(in srgb,var(--line) 60%,transparent)}
.sx-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;height:52px}
.sx-brand img{display:block;height:22px;width:auto}
.sx-brand .sx-dark{display:none}
@media (prefers-color-scheme: dark){.sx-brand .sx-light{display:none}.sx-brand .sx-dark{display:block}}
.sx-nav{display:flex;align-items:center;gap:26px}
.sx-nav a{color:var(--ink);opacity:.8;text-decoration:none;font-size:13px;letter-spacing:-.01em;display:inline-flex;align-items:center;gap:6px}
.sx-nav a:hover,.sx-nav a[aria-current]{opacity:1}
.sx-nav a[aria-current]{font-weight:600}
.sx-count{background:var(--gold);color:#fff;border-radius:999px;font-size:11px;font-weight:600;min-width:18px;height:18px;padding:0 5px;display:inline-grid;place-items:center}
.sx-lang{border-left:1px solid var(--line);padding-left:18px}

/* Buttons and text links */
.sx-btn{display:inline-block;background:var(--navy);color:#fff!important;border-radius:980px;padding:11px 22px;font-size:17px;text-decoration:none;transition:background .2s}
.sx-btn:hover{background:#26395A}
.sx-more{color:var(--link);text-decoration:none;font-size:17px}
.sx-more::after{content:" ›";font-size:1.1em}
.sx-more:hover{text-decoration:underline}
.sx-more.light{color:#fff}

/* Footer */
.sx-foot{background:var(--grey);color:var(--muted);font-size:12px;padding:40px 0 24px;border-top:1px solid var(--line)}
.sx-foot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.sx-foot-grid div{display:grid;gap:8px;align-content:start}
.sx-foot strong{color:var(--ink);font-weight:600}
.sx-foot a{color:var(--muted);text-decoration:none}.sx-foot a:hover{color:var(--ink);text-decoration:underline}
.sx-legal{margin-top:32px;padding-top:16px;border-top:1px solid var(--line)}

/* ---------- Company page ---------- */
.hx-hero{position:relative;min-height:min(86vh,760px);display:grid;align-items:end;color:#fff;overflow:hidden;background:#111}
.hx-hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.92}
.hx-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05) 30%,rgba(0,0,0,.65) 100%)}
.hx-hero-in{position:relative;z-index:1;max-width:1080px;width:100%;margin:0 auto;padding:0 22px 72px;text-align:center}
.hx-eyebrow{font-size:17px;font-weight:600;opacity:.9;margin-bottom:10px}
.hx-hero h1{font-size:clamp(44px,7vw,80px);line-height:1.05}
.hx-lede{font-size:clamp(19px,2vw,24px);margin-top:14px;opacity:.92}
.hx-links{display:flex;justify-content:center;align-items:center;gap:28px;flex-wrap:wrap;margin-top:28px}

.hx-sec{padding:110px 0}
.hx-grey{background:var(--grey)}
.hx-narrow{max-width:760px;text-align:center}
.hx-h2{font-size:clamp(32px,4.6vw,56px);line-height:1.08;text-align:center;margin-bottom:18px}
.hx-p{font-size:21px;line-height:1.45;color:var(--muted);margin-inline:auto}

/* Houses: three photo tiles */
.hx-houses{list-style:none;margin:56px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.hx-house{position:relative;min-height:560px;border-radius:22px;overflow:hidden;color:#fff;display:flex;background:#111}
.hx-house-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.hx-house:hover .hx-house-img{transform:scale(1.04)}
.hx-house::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.15) 0%,rgba(0,0,0,.25) 40%,rgba(0,0,0,.82) 100%)}
.hx-house-in{position:relative;z-index:1;margin-top:auto;padding:28px;display:grid;gap:10px;width:100%}
.hx-house-logo{height:auto;max-width:62%;max-height:96px;object-fit:contain;object-position:left bottom;margin-bottom:6px;filter:drop-shadow(0 2px 10px rgba(0,0,0,.4))}
.h-stockholm .hx-house-logo{max-width:34%;max-height:120px}
.hx-tag{font-family:var(--display);font-size:24px;font-weight:600;line-height:1.15}
.hx-house-text{font-size:15px;opacity:.88}
.hx-house-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:14px;margin-top:6px;padding-top:12px;border-top:1px solid rgba(255,255,255,.25)}
.hx-house-foot span{opacity:.8}
.hx-house-foot .sx-more{font-size:14px}
.hx-soon{opacity:1!important;color:var(--gold);font-weight:600}

/* About: facts and pillars */
.hx-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:64px 0 0;text-align:center}
.hx-facts div{display:flex;flex-direction:column;gap:6px;padding:8px}
.hx-facts dd{margin:0;font:600 clamp(40px,5vw,64px)/1 var(--display);letter-spacing:-.03em}
.hx-facts dt{color:var(--muted);font-size:15px}
.hx-cols{list-style:none;margin:72px 0 0;padding:40px 0 0;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
.hx-cols h3{font-size:19px;margin-bottom:6px}
.hx-cols p{color:var(--muted);font-size:15px}

/* Vision */
.hx-label{font-size:15px;font-weight:600;color:var(--gold);margin-bottom:14px}
.hx-statement{font:600 clamp(30px,4.2vw,48px)/1.12 var(--display);letter-spacing:-.025em;margin-bottom:56px}
.hx-mission{font-size:21px;line-height:1.5;color:var(--muted)}
.hx-values{margin-top:80px}

/* Growth */
.hx-road{list-style:none;margin:64px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;position:relative}
.hx-road::before{content:"";position:absolute;left:6px;right:0;top:6px;height:2px;background:linear-gradient(90deg,var(--ink) 0 50%,var(--line) 50% 100%)}
.hx-road li{position:relative;padding-top:34px}
.hx-road li::before{content:"";position:absolute;left:0;top:0;width:14px;height:14px;border-radius:50%;background:var(--ink)}
.hx-road li.ahead::before{background:var(--bg);border:2px solid var(--gold)}
.hx-road span{display:block;font-size:14px;font-weight:600;color:var(--gold);margin-bottom:6px}
.hx-road h3{font-size:21px;margin-bottom:6px}
.hx-road p{color:var(--muted);font-size:15px}

/* Careers: the bridge to careers.almaxinvest.com */
.hx-careers{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:#0B0D10;color:#F5F5F7;min-height:640px}
.hx-careers-img{width:100%;height:100%;object-fit:cover;display:block;min-height:420px}
.hx-careers-in{padding:80px clamp(24px,6vw,80px);display:flex;flex-direction:column;justify-content:center}
.hx-careers .hx-eyebrow{color:var(--gold)}
.hx-careers h2{font-size:clamp(30px,3.6vw,44px);line-height:1.1}
.hx-open{color:#A1A1A6;font-size:19px;margin-top:16px}
.hx-roles{list-style:none;margin:28px 0 8px;padding:0;border-top:1px solid #2A2D33}
.hx-roles a{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid #2A2D33;color:#F5F5F7;text-decoration:none}
.hx-roles a:hover b{text-decoration:underline}
.hx-roles span:first-child{display:grid;gap:2px}.hx-roles b{font-weight:600}.hx-roles small{color:#A1A1A6;font-size:14px}
.hx-pay{color:#A1A1A6;font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.hx-careers .hx-links{justify-content:flex-start}
.hx-careers .sx-btn{background:#F5F5F7;color:#1D1D1F!important}.hx-careers .sx-btn:hover{background:#fff}
.hx-careers .sx-more{color:#F5F5F7}

@media (max-width:1000px){
  .hx-houses{grid-template-columns:minmax(0,1fr)}
  .hx-house{min-height:480px}
  .hx-cols,.hx-road,.hx-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hx-road::before{display:none}
  .hx-careers{grid-template-columns:minmax(0,1fr)}
  .hx-careers-img{max-height:420px}
  .sx-foot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .sx-hide-s{display:none!important}
  .sx-nav{gap:18px}.sx-lang{padding-left:14px}
  .hx-sec{padding:72px 0}
  .hx-hero{min-height:78vh}.hx-hero-in{padding-bottom:48px}
  .hx-p,.hx-mission{font-size:19px}
  .hx-cols,.hx-road{grid-template-columns:minmax(0,1fr)}
  .hx-careers-in{padding:56px 22px}
  .sx-foot-grid{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hx-house-img{transition:none}}
.hx-hero .sx-btn{background:#fff;color:#1D1D1F!important}.hx-hero .sx-btn:hover{background:#F5F5F7}
.hx-house::after{background:linear-gradient(180deg,rgba(0,0,0,.1) 0%,rgba(0,0,0,.35) 38%,rgba(0,0,0,.88) 100%)}
.sx-nav a{white-space:nowrap}@media (max-width:640px){.sx-nav{gap:14px}.sx-lang{padding-left:12px}}
