/* Holdco seller site: shared styles for every page. © 2026 Aleksandrs Kļaviņš · alex@10x.lv */
/* --- the font, served from this site (no call to Google). Inter, SIL Open Font License; one file per alphabet, every weight inside --- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 200 700; font-display: swap; src: url(/assets/fonts/inter-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: "Inter"; font-style: normal; font-weight: 200 700; font-display: swap; src: url(/assets/fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* --- colours and timing: one place, so the whole page changes together --- */
:root {
  --mid: #14081C;      /* midnight: dark sections */
  --mid2: #1C0E27;     /* cards on midnight */
  --mid3: #241033;     /* text colour on light sections */
  --plum: #2A1636;     /* the big background slash */
  --dline: #35223F;    /* hairlines on dark */
  --dline2: #4A2D5E;   /* stronger lines on dark */
  --dink: #F1ECF4;     /* text on dark */
  --dmut: #C9BED1;     /* secondary text on dark */
  --dmut2: #A99BB3;    /* captions on dark */
  --bone: #F6F4F1;     /* light sections */
  --lilac: #EEE8F1;    /* the figures strip */
  --mut: #5B5563;      /* secondary text on light */
  --line: #DDD9E0;     /* hairlines on light */
  --line2: #C4BCCB;
  --ro: #D42A35;       /* the one accent: slash, main buttons */
  --ro2: #B01E28;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --f: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bone); color: var(--mid3); font: 17px/1.65 var(--f); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--ro); outline-offset: 3px; }
.in { max-width: 1120px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.sl { color: var(--ro); font-weight: 400; }
.ph { outline: 1px dashed currentColor; outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--mid); color: var(--dink); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }
section[id] { scroll-margin-top: 72px; }
.dark { background: var(--mid); color: var(--dink); position: relative; overflow: hidden; }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.027em; font-weight: 600; max-width: 22ch; text-wrap: balance; }
.lead { font-size: 18px; max-width: 62ch; color: var(--mut); }
.dark .lead { color: var(--dmut); }
.sec { padding-top: clamp(64px, 9vw, 104px); padding-bottom: clamp(64px, 8vw, 96px); display: flex; flex-direction: column; gap: 16px; }

/* --- buttons: the slash slides a little on hover, the button gives a little on press --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 24px; background: var(--ro); color: #fff; border: 1px solid var(--ro); border-radius: 2px; font: 600 16px/1.2 var(--f); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .12s; touch-action: manipulation; }
.btn:hover { background: var(--ro2); border-color: var(--ro2); }
.btn:active { transform: scale(.98); }
.btn .arr { display: inline-block; font-weight: 300; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: transparent; color: inherit; border-color: var(--line2); }
.dark .btn.ghost { border-color: var(--dline2); }
.btn.ghost:hover { border-color: currentColor; }

/* --- top bar: turns solid with a hairline once you scroll; the thin red line shows how far down you are --- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(246, 244, 241, .86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.top.scrolled { border-bottom-color: var(--line); background: rgba(246, 244, 241, .95); }
.top .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.wm { font-weight: 600; font-size: 19px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.wm .sl { margin: 0 .2em; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav .lnk { text-decoration: none; color: var(--mut); transition: color .2s; }
.nav .lnk:hover { color: var(--mid3); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang a { display: inline-flex; align-items: center; justify-content: center; font: 600 12px/1 var(--f); letter-spacing: .08em; color: var(--mut); text-decoration: none; min-width: 40px; min-height: 32px; border-radius: 999px; }
.lang a:hover { color: var(--mid3); }
.lang a[aria-current="page"] { background: var(--mid3); color: var(--bone); }
/* the slim bar under the header that offers the other language: "Lasīt latviski" on English pages, "Read in English" on Latvian ones */
.langbar { display: block; text-align: center; font-size: 14px; font-weight: 600; padding: 10px 16px; min-height: 44px; background: var(--mid3); color: var(--bone); text-decoration: none; }
.langbar:hover { background: var(--mid); }
.langbar .sl { margin-left: 6px; }
/* anything marked hidden stays hidden, even where a rule above gives it a display value */
[hidden] { display: none !important; }
.tel { font-weight: 600; text-decoration: none; white-space: nowrap; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ro); transform: scaleX(0); transform-origin: left; }
/* on narrow screens the section links fold away; About stays, since phones have no other way to it from the top */
@media (max-width: 900px) { .nav .lnk:not(.about) { display: none; } }
@media (max-width: 520px) { .top .tel { display: none; } }

/* --- the letter --- */
.hero .in { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 104px); }
.portrait { position: relative; width: 210px; margin: 0; }
.portrait .frame { width: 210px; height: 252px; overflow: hidden; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); background: var(--mid3); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait svg { position: absolute; right: -26px; top: -10px; width: 48px; height: 272px; overflow: visible; }
.portrait figcaption { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--mut); }
.hero h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.12; letter-spacing: -.026em; font-weight: 600; text-wrap: balance; }
.hero h1 .sub { display: block; color: var(--mut); font-weight: 400; margin-top: 10px; }
.letter { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
.letter p { font-size: 19px; line-height: 1.72; max-width: 62ch; }
.sign { margin-top: 26px; display: flex; flex-direction: column; gap: 2px; }
.sign .name { font-size: 28px; font-weight: 200; letter-spacing: -.01em; }
.sign .ct { font-size: 15px; color: var(--mut); }
.sign .ct a { text-decoration: none; }
.hero .cta { margin-top: 28px; display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .hero .in { grid-template-columns: minmax(0, 1fr); }
  .portrait { width: 150px; }
  .portrait .frame { width: 150px; height: 180px; }
  .portrait svg { height: 200px; right: -22px; }
}

/* --- the big background slash in dark sections (moves a little slower than the page) --- */
.bgslash { position: absolute; right: -60px; top: -170px; font-size: min(60vw, 720px); line-height: 1; font-weight: 200; color: var(--plum); pointer-events: none; will-change: transform; }

/* --- commitments --- */
.rows { border-top: 1px solid var(--dink); margin-top: 16px; }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--dline); align-items: baseline; }
.row .n { font-size: 32px; font-weight: 200; }
.row .n b { display: inline-block; color: var(--ro); font-weight: 400; transform-origin: 50% 100%; }
.row h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.row p { color: var(--dmut); max-width: 64ch; }
.after { font-size: 15px; color: var(--dmut2); margin-top: 20px; }
.after a { color: var(--dink); }
@media (max-width: 760px) { .row { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; } }

/* --- cards (owner role) --- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.card { background: #fff; border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(36, 16, 51, .35); border-color: var(--line2); }
.card h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.card p { color: var(--mut); }
.note { font-size: 14px; color: var(--mut); margin-top: 8px; }
@media (max-width: 900px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* --- who decides what: three columns, the top rules draw left to right --- */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 24px; }
.col { position: relative; padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.col .rule { position: absolute; left: 0; right: 0; top: 0; height: 2px; transform-origin: left; }
.col h3 { font-size: 20px; font-weight: 600; }
.col li { color: var(--dmut); border-bottom: 1px solid var(--dline); padding-bottom: 11px; }
.col li:last-child { border-bottom: 0; }
.col details { border-bottom: 1px solid var(--dline); }
.col details:last-of-type { border-bottom: 0; }
.col summary { list-style: none; cursor: pointer; color: var(--dink); padding: 0 28px 11px 0; position: relative; min-height: 44px; }
.col summary::-webkit-details-marker { display: none; }
.col summary::after { content: "+"; position: absolute; right: 2px; top: -2px; font-size: 22px; font-weight: 300; color: var(--ro); transition: transform .25s var(--ease); }
.col details[open] summary::after { transform: rotate(45deg); }
.col details p { color: var(--dmut); font-size: 15px; padding-bottom: 14px; animation: open .35s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.share { margin-top: 32px; font-size: 17px; max-width: 70ch; }
@media (max-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* --- figures strip: numbers count up once --- */
.figs { background: var(--lilac); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figs .in { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.figs h2 { font-size: clamp(24px, 2.6vw, 30px); max-width: 30ch; }
.figrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.fig .num { font-size: clamp(38px, 4.4vw, 52px); font-weight: 200; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fig .num .sl { margin: 0 .12em; }
.fig p { margin-top: 12px; }
.fig .src { margin-top: 8px; font-size: 13px; color: var(--mut); }
@media (max-width: 900px) { .figrow { grid-template-columns: minmax(0, 1fr); } }

/* --- what does change: a line draws across, then the three marks appear one by one --- */
.rhythm { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; padding-top: 26px; }
.rhythm .track { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--mid3); transform-origin: left; }
.step { position: relative; display: flex; flex-direction: column; gap: 8px; }
.step .tick { position: absolute; top: -40px; left: 0; font-size: 26px; font-weight: 400; color: var(--ro); line-height: 1; background: var(--bone); padding-right: 6px; }
.step .when { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--mut); }
.closing { margin-top: 28px; max-width: 72ch; }
@media (max-width: 900px) { .rhythm { grid-template-columns: minmax(0, 1fr); } }

/* --- what we look for --- */
.buy { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
.buy .k { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.buy .blk { border-top: 1px solid var(--line2); padding-top: 16px; }
.buy .blk + .blk { margin-top: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 7px 12px; border: 1px solid var(--line2); background: #fff; font-size: 14px; }
@media (max-width: 900px) { .buy { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* --- contact --- */
.forms { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; margin-top: 20px; align-items: stretch; }
.fbox { padding: 28px; display: grid; gap: 16px; align-content: start; border: 1px solid var(--dline); }
.fbox.main { background: var(--mid2); border-color: var(--dline2); border-top: 3px solid var(--ro); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fbox .full { grid-column: 1 / -1; }
.fbox > .btn { justify-self: start; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.fld input, .fld select { font: 400 16px/1.4 var(--f); padding: 12px 14px; min-height: 48px; border-radius: 2px; border: 1px solid var(--dline2); background: var(--mid); color: var(--dink); }
.fld input:focus, .fld select:focus { border-color: var(--dink); outline: none; }
.small { font-size: 13px; color: var(--dmut2); }
.status { font-size: 15px; color: var(--dink); border-left: 2px solid var(--ro); padding-left: 12px; }
.status:empty { display: none; }
/* the bot trap: a box people never see, so only robots fill it in */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 900px) { .forms { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .fbox.main { grid-template-columns: minmax(0, 1fr); } }

/* --- footer --- */
footer { background: var(--mid); color: var(--dmut2); border-top: 1px solid var(--dline); }
footer .in { display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 40px; font-size: 14px; }
footer a { text-decoration: none; }
footer details summary { cursor: pointer; display: inline; }
footer details p { margin-top: 8px; max-width: 64ch; }
footer details[open] { display: block !important; margin-top: 4px; }
.fw { color: var(--dink); font-weight: 600; }

/* --- phone bar: only on narrow screens, after the letter, hidden near the forms --- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: 10px; padding: 10px max(14px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)); background: rgba(20, 8, 28, .96); border-top: 1px solid var(--dline2); transform: translateY(110%); transition: transform .3s var(--ease); }
.mbar.show { transform: none; }
.mbar .btn { flex: 1; padding: 12px 10px; font-size: 15px; }
.mbar .btn.ghost { color: var(--dink); }
/* on phones the footer gets extra room so the bar never covers the contact details */
@media (max-width: 760px) { .mbar { display: flex; } footer .in { padding-bottom: 104px; } }

/* --- motion. Only switched on by the script, and never for people who asked for less motion. --- */
.js-motion [data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js-motion [data-reveal].armed { opacity: 0; transform: translateY(18px); }
.js-motion .draw { transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js-motion .armed .draw, .js-motion .draw.armed { transform: scaleX(0); }
.js-motion .row .n b { transition: transform .55s var(--ease) .15s; }
.js-motion .armed .row .n b, .js-motion .row.armed .n b { transform: scaleY(0); }
.js-motion .step .tick { transition: opacity .4s var(--ease), transform .4s var(--ease); transition-delay: var(--t, .5s); }
.js-motion .armed .step .tick { opacity: 0; transform: translateY(6px); }
/* the slash beside the portrait draws itself once when the page opens */
.portrait line { stroke-dasharray: 300; stroke-dashoffset: 0; }
.js-motion .portrait.go line { animation: drawline 1.1s var(--ease) .25s both; }
@keyframes drawline { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }
.js-motion .portrait.go .frame { animation: wipe .9s var(--ease) both; }
@keyframes wipe { from { clip-path: polygon(14% 0, 14% 0, 0 100%, 0 100%); } to { clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* --- About page --- */
.story .in { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 96px); }
.story .lab { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--mut); margin-bottom: 14px; }
.story h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.12; letter-spacing: -.026em; font-weight: 600; text-wrap: balance; max-width: 22ch; }
.story .body { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
.story .body p { font-size: 19px; line-height: 1.72; max-width: 62ch; }
@media (max-width: 760px) { .story .in { grid-template-columns: minmax(0, 1fr); } }
/* the name: two words, each with what it means; the slash between them draws in */
.name { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 28px; }
.name .w { font-size: clamp(40px, 6vw, 72px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.name .m { color: var(--dmut); margin-top: 14px; max-width: 34ch; }
.name svg { width: 80px; height: 120px; overflow: visible; }
.name line { stroke-dasharray: 140; stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease) .2s; }
.js-motion .armed .name line, .js-motion .name.armed line { stroke-dashoffset: 140; }
@media (max-width: 760px) { .name { grid-template-columns: minmax(0, 1fr); } .name svg { height: 60px; width: 48px; } }
.person { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 20px; }
.person .frame { width: 180px; height: 216px; overflow: hidden; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); background: var(--mid3); }
.person .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.person h3 { font-size: 24px; font-weight: 600; letter-spacing: -.015em; }
.person .role { color: var(--mut); margin-top: 4px; }
.person p + p { margin-top: 12px; }
@media (max-width: 760px) { .person { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.band p { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -.015em; max-width: 30ch; }
