/* FoxLens front page. Look follows the Ledix pamphlet: carbon, warm glow,
   Baserona headlines, Sequel body, live LED tubes between sections. */

@font-face { font-family: "Baserona"; src: url("fonts/baserona.woff2") format("woff2"); font-display: swap; }
/* baserona.woff2 has č ć š ž đ added from Baserona's own letters and accents (tools/baserona_hr.py) */
@font-face { font-family: "Sequel"; font-weight: 400; src: url("fonts/sequel-45.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Sequel"; font-weight: 700; src: url("fonts/sequel-75.woff2") format("woff2"); font-display: swap; }

:root {
  --carbon: #1b1b1b;
  --gray: #3d3d3d;
  --espresso: #401712;
  --orange: #f18805;
  --gold: #f0a202;
  --cream: #fdfcf3;
  --muted: rgba(253, 252, 243, .64);
  --faint: rgba(253, 252, 243, .42);
  --rule: rgba(253, 252, 243, .12);
  --head: "Baserona", "Arial Black", sans-serif;
  --body: "Sequel", "Century Gothic", "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--carbon); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--carbon); color: var(--cream); font-family: var(--body); font-weight: 400;
  font-size: 15px; line-height: 1.6; overflow-x: hidden; overflow-x: clip; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
b, strong { font-weight: 700; }
/* digits never in Baserona: set them in Sequel, like the pamphlet */
.dg { font-family: var(--body); font-weight: 700; font-size: .9em; letter-spacing: 0; line-height: 0; }
::selection { background: var(--orange); color: var(--carbon); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--cream); color: var(--carbon); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* type */
.kick { font-family: var(--head); font-size: .72rem; letter-spacing: .24em; color: var(--gold); margin-bottom: 18px; line-height: 1.4; }
h1, h2 { font-family: var(--head); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; }
h1 em, h2 em { font-style: normal; color: var(--orange); }
h1 { font-size: clamp(1.75rem, 5vw, 3.9rem); margin-bottom: 26px; }
h1 em { display: block; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.8rem); margin-bottom: 22px; max-width: 18ch; }
.lede { font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.65; color: var(--muted); max-width: 54ch; margin-bottom: 40px; }
.lede b { color: var(--cream); }

/* buttons: square corners, no pills */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--body); font-weight: 700; font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; color: var(--carbon); background: var(--orange);
  padding: 15px 22px 14px; border-radius: 2px; border: 1px solid var(--orange); transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--gold); border-color: var(--gold); }
.btn svg { width: 14px; height: 14px; }
.btn.line { background: transparent; color: var(--cream); border-color: rgba(253, 252, 243, .35); }
.btn.line:hover { background: transparent; border-color: var(--orange); color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.textlink { font-family: var(--body); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 4px; transition: color .2s, border-color .2s; }
.textlink:hover { color: var(--cream); border-color: var(--orange); }

/* top bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.bar.solid { background: rgba(27, 27, 27, .96); border-color: var(--rule); }
.bar-logo { display: block; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; pointer-events: none; }
.bar-logo img { height: 22px; width: auto; }
.bar.show-logo .bar-logo { opacity: 1; transform: none; pointer-events: auto; }
.bar-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); margin-left: auto; }
.bar-nav a { font-family: var(--head); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .2s; }
.bar-nav a:hover { color: var(--cream); }
.bar .btn { padding: 11px 16px 10px; font-size: .74rem; white-space: nowrap; }
@media (max-width: 420px) { .bar .wrap { gap: 12px; } .bar .btn { padding: 10px 11px 9px; font-size: .68rem; letter-spacing: .04em; } .lang a { padding: 7px 5px 6px; } }
.lang { display: flex; align-items: center; gap: 2px; }
.lang a { font-family: var(--body); font-weight: 700; font-size: .72rem; letter-spacing: .06em; color: var(--faint); text-decoration: none; padding: 7px 7px 6px; transition: color .2s; }
.lang a:hover { color: var(--cream); }
.lang a[aria-current] { color: var(--cream); box-shadow: inset 0 -2px 0 var(--orange); }
@media (max-width: 760px) { .bar-nav { display: none; } }

/* sections */
main { overflow-x: hidden; overflow-x: clip; }
section { position: relative; scroll-margin-top: 70px; }
.glow { position: absolute; width: 900px; height: 900px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(241, 136, 5, .13) 0%, rgba(241, 136, 5, .045) 38%, rgba(241, 136, 5, 0) 68%); }
section > .wrap { position: relative; z-index: 1; }
.pad { padding: clamp(48px, 6vw, 84px) 0 clamp(44px, 5.5vw, 76px); }

/* hero */
.hero { min-height: min(86vh, 860px); display: flex; align-items: flex-end; padding: 140px 0 clamp(40px, 6vw, 72px); overflow: hidden; }
/* the brand pattern (sales/Logos/pattern) is one picture with ragged edges, not a tile:
   one copy up and to the right, its own edges faded out (the inner layer) and the whole
   thing faded out above the bottom of the hero (the outer layer), so no edge ever shows */
.hero .pat { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 92%); mask-image: linear-gradient(to bottom, #000 45%, transparent 92%); }
.hero .pat i { position: absolute; right: -12%; top: -30%; width: min(1800px, 125vw); aspect-ratio: 2190 / 1368; opacity: .4;
  background: url("img/pattern.svg") center / contain no-repeat;
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 100%); mask-image: radial-gradient(closest-side, #000 25%, transparent 100%); }
.hero .glow { right: -260px; top: -220px; }
.hero-logo { width: clamp(220px, 36vw, 440px); margin: 0 0 clamp(36px, 5vw, 56px); }
.hero .lede { max-width: 50ch; }
@media (max-width: 620px) { .hero { min-height: 0; padding-top: 112px; } }

/* live LED tube between sections */
.tube { display: block; width: 100%; height: 96px; position: relative; z-index: 2; }
.tube.big { height: 130px; }

/* points: icon and two lines, no boxes */
.pts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 44px; }
.pt { display: grid; grid-template-columns: 26px 1fr; column-gap: 16px; align-content: start; }
.pt svg, .grp-head svg { width: 24px; height: 24px; grid-row: 1 / span 2; margin-top: 1px; color: var(--cream); fill: none; stroke: currentColor;
  stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.pt > b { grid-column: 2; font-family: var(--head); font-weight: 400; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; margin-bottom: 8px; }
.pt > span { grid-column: 2; font-size: .92rem; line-height: 1.55; color: var(--muted); }
@media (max-width: 620px) { .pts { grid-template-columns: 1fr; gap: 28px; } }

/* ledix: the tubes or the software, one at a time, picked with a lit switch */
.ledix .glow { left: -380px; top: 80px; }
.lx-top { margin-bottom: clamp(36px, 5vw, 56px); }
.lx-mark { width: clamp(150px, 16vw, 190px); height: auto; margin-bottom: 26px; }
/* the software side: the Ledix Suite logo is the headline, then one line */
.suite-head { margin: 0 0 18px; }
.suite-head img { width: clamp(270px, 38vw, 500px); height: auto; }
.unlimited { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 40px; }
.unlimited::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px rgba(241, 136, 5, .95); }
/* the switch: two halves, a dim LED strip underneath, the chosen half lit */
.switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding-bottom: 6px; }
html:not(.js) .switch { display: none; }
.switch::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: radial-gradient(circle, #3d332a 0 1.6px, transparent 2.2px) 0 50% / 11px 6px repeat-x; }
.switch button { appearance: none; background: none; border: 0; cursor: pointer; text-align: left; font: inherit;
  display: grid; grid-template-columns: 9px 1fr; column-gap: 14px; align-items: center; padding: 16px 20px 20px 2px; color: var(--faint); transition: color .25s; }
.switch button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #4a3a28; transition: background .3s, box-shadow .3s; }
.switch b { font-family: var(--body); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.2rem); letter-spacing: .05em; text-transform: uppercase; line-height: 1.2; }
.switch button:hover { color: var(--muted); }
.switch button:hover::before { background: #6e5130; }
.switch button[aria-selected="true"] { color: var(--cream); }
.switch button[aria-selected="true"]::before { background: var(--orange); box-shadow: 0 0 10px rgba(241, 136, 5, .95); }
.switch-bar { position: absolute; left: 0; right: 0; bottom: -5px; z-index: 1; height: 16px;
  background: radial-gradient(circle, #ffe6b0 0 1.7px, rgba(241, 136, 5, .9) 2.4px, transparent 3.4px) 0 50% / 11px 16px repeat-x;
  filter: drop-shadow(0 0 4px rgba(241, 136, 5, .9));
  clip-path: inset(0 calc(100% - var(--x, 0px) - var(--w, 0px)) 0 var(--x, 0px));
  transition: clip-path .6s cubic-bezier(.2, .8, .2, 1); }
@media (max-width: 620px) { .switch button { padding: 14px 10px 18px 0; column-gap: 10px; } .switch b { font-size: .9rem; } }
.panel.enter { animation: rise .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.ledix-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px 56px; align-items: center; }
.ledix-grid .lede { margin-bottom: 44px; }
.rig { position: relative; margin-right: calc(-1 * var(--gutter)); }
.rig img { width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 70% 72% at 50% 48%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 70% 72% at 50% 48%, #000 55%, transparent 100%); }
.rig figcaption { font-size: .76rem; color: var(--faint); margin: 4px 0 0 8%; }
.ledix .actions { margin-top: 48px; }
.ledix-grid.flip { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.flip .rig { margin-right: 0; margin-left: calc(-1 * var(--gutter)); }
.flip .rig figcaption { margin-left: calc(var(--gutter) + 4%); }

/* what ledix suite works with: a pad grid like the scene grid, one pad lit */
.support { margin-top: clamp(56px, 7vw, 88px); padding-top: 44px; border-top: 1px solid var(--rule); }
.support h3 { font-family: var(--head); font-weight: 400; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 28px; }
.keys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
html:not(.js) .keys { display: none; }
.key { appearance: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-height: 64px;
  padding: 12px 14px; text-align: center; font: inherit; color: var(--muted); background: #222120; border: 1px solid #34322f; border-radius: 3px;
  transition: background .25s, border-color .25s, color .25s, box-shadow .25s; }
.key span { font-family: var(--head); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; }
.key:hover { color: var(--cream); background: #292725; border-color: rgba(241, 136, 5, .5); }
.key[aria-selected="true"] { color: var(--carbon); background: var(--orange); border-color: var(--orange);
  box-shadow: 0 0 28px rgba(241, 136, 5, .42), inset 0 0 18px rgba(255, 222, 160, .35); }
.keys.boot .key { animation: boot .8s ease-out backwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes boot { 0% { background: #222120; } 30% { background: var(--gold); box-shadow: 0 0 22px rgba(240, 162, 2, .6); color: var(--carbon); } }
.key-panel { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 32px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
html:not(.js) .key-panel { border: 0; margin-top: 0; }
.key-panel li { position: relative; padding: 7px 0 7px 18px; font-size: .92rem; line-height: 1.45; color: var(--muted); }
.key-panel li::before { content: ""; position: absolute; left: 0; top: calc(7px + .72em); width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 8px rgba(241, 136, 5, .8); }
.key-panel.enter li { animation: slide .45s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes slide { from { opacity: 0; transform: translateX(-8px); } }
.ledix .support + .actions { margin-top: 48px; }
@media (max-width: 900px) {
  .ledix-grid, .ledix-grid.flip { grid-template-columns: 1fr; }
  .rig, .flip .rig { order: -1; margin: -10px calc(-1 * var(--gutter)) 0; }
  .rig figcaption, .flip .rig figcaption { margin-left: var(--gutter); }
}
@media (max-width: 1000px) { .keys { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .key { min-height: 58px; } }

/* services */
.services .glow { right: -420px; top: 10%; }
.services .lede { margin-bottom: 40px; }
.services .actions { margin-top: 48px; }

/* services: five rows that open one at a time; the dots light as a row opens */
.svc { border-top: 1px solid var(--rule); }
.grp { border-bottom: 1px solid var(--rule); }
.grp > h3 { font: inherit; margin: 0; }
.grp-head { appearance: none; background: none; border: 0; width: 100%; cursor: pointer; color: inherit; font: inherit; text-align: left;
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 22px; align-items: center; column-gap: 16px; padding: 26px 0; }
.grp-head svg { grid-row: auto; margin: 0; }
.gt { font-family: var(--head); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3; transition: color .25s; }
.gd { display: flex; gap: 7px; padding-right: 12px; }
.gd i { width: 6px; height: 6px; border-radius: 50%; background: #4a3a28; transition: background .3s, box-shadow .3s; transition-delay: calc(var(--i, 0) * 60ms); }
.gx { position: relative; width: 22px; height: 22px; }
.gx::before, .gx::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--muted);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), background .25s; }
.gx::after { transform: rotate(90deg); }
.grp-head:hover .gt { color: var(--gold); }
.grp-head:hover .gd i { background: #6e5130; }
.grp-head:hover .gx::before, .grp-head:hover .gx::after { background: var(--cream); }
.grp.open .gt { color: var(--cream); }
.grp.open .gd i { background: var(--orange); box-shadow: 0 0 8px rgba(241, 136, 5, .85); }
.grp.open .gx::before { transform: rotate(45deg); background: var(--orange); }
.grp.open .gx::after { transform: rotate(135deg); background: var(--orange); }
/* a row opens in one step (no height animation, which re-laid the whole page every frame); the list fades in */
.grp.open .grp-body > div { animation: unfold .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes unfold { from { opacity: 0; transform: translateY(-8px); } }
.grp ul { list-style: none; position: relative; padding: 0 0 28px 30px; margin-left: 42px; }
.grp ul::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 42px; width: 1px;
  background: linear-gradient(to bottom, rgba(241, 136, 5, .5), rgba(241, 136, 5, .1)); }
.grp li { position: relative; display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: 2px 32px; align-items: baseline; padding: 8px 0; }
.grp li::before { content: ""; position: absolute; left: -29px; top: 15px; width: 7px; height: 7px; border-radius: 50%;
  background: #4a3a28; transition: background .35s, box-shadow .35s; transition-delay: calc(var(--i, 0) * 70ms + 150ms); }
.grp.open li::before, html:not(.js) .grp li::before { background: var(--orange); box-shadow: 0 0 9px rgba(241, 136, 5, .85); }
.grp li:hover::before { background: var(--gold); box-shadow: 0 0 14px rgba(240, 162, 2, 1); transition-delay: 0s; }
.grp li > b { font-family: var(--head); font-weight: 400; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.45; transition: color .2s; }
.grp li:hover > b { color: var(--gold); }
.grp li > span { font-size: .93rem; line-height: 1.55; color: var(--muted); }
@media (max-width: 860px) {
  .grp-head { grid-template-columns: 26px minmax(0, 1fr) 22px; padding: 22px 0; }
  .gd { display: none; }
}
@media (max-width: 620px) { .grp ul { margin-left: 4px; } .grp li { grid-template-columns: 1fr; padding: 9px 0 10px; } .grp li > b { margin-bottom: 2px; } }
@media (prefers-reduced-motion: reduce) {
  .grp li::before, .gd i, .gx::before, .gx::after, .switch-bar { transition: none; }
  .panel.enter, .key-panel.enter li, .keys.boot .key, .grp.open .grp-body > div { animation: none; }
}
.mailline { font-size: .9rem; color: var(--muted); }
.mailline a { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--rule); }
.mailline a:hover { border-color: var(--orange); }

/* contact */
.contact { overflow: hidden; }
.contact .glow { right: -300px; bottom: -420px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.contact .lede { margin-bottom: 36px; }
.info { margin-top: 40px; }
.info .kick { color: var(--faint); margin-bottom: 8px; }
.info a { font-family: var(--body); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.6rem); text-decoration: none; color: var(--cream);
  border-bottom: 1px solid var(--rule); padding-bottom: 2px; transition: border-color .2s; }
.info a:hover { border-color: var(--orange); }
.team { list-style: none; border-bottom: 1px solid var(--rule); }
.team li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 20px; padding: 18px 0 17px; border-top: 1px solid var(--rule); }
.team .n { font-family: var(--head); font-size: .86rem; letter-spacing: .12em; }
.team .r { grid-column: 1 / -1; grid-row: 2; font-size: .88rem; color: var(--muted); }
.team a { font-size: .88rem; color: var(--cream); text-decoration: none; }
.team a:hover { color: var(--orange); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* footer */
.foot { border-top: 1px solid var(--rule); padding: 36px 0 44px; position: relative; z-index: 1; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot img { height: 18px; width: auto; opacity: .85; }
.foot p { font-size: .78rem; color: var(--faint); }
.foot .ledix-by { display: flex; align-items: center; gap: 12px; }
.foot .ledix-by img { height: 16px; opacity: 1; }
.social { display: flex; gap: 22px; }
.social a { font-size: .78rem; color: var(--faint); text-decoration: none; transition: color .2s; }
.social a:hover { color: var(--cream); }
.foot p a { text-decoration: none; transition: color .2s; }
.foot p a:hover { color: var(--cream); }
.foot .marks { flex-basis: 100%; font-size: .7rem; }

/* privacy */
.legal { padding: 56px 0 72px; position: relative; z-index: 1; }
.legal .back img { height: 22px; width: auto; }
.legal .langs { display: flex; gap: 22px; margin: 28px 0 8px; }
.legal .langs a { font-family: var(--head); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.legal .langs a:hover { color: var(--cream); }
.legal article { padding-top: 32px; }
.legal article + article { margin-top: 64px; border-top: 1px solid var(--rule); }
.legal h1 { margin-bottom: 10px; }
.legal h2 { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: none; margin: 40px 0 12px; }
.legal p { font-size: .98rem; line-height: 1.7; color: var(--muted); max-width: 68ch; margin-bottom: 14px; }
.legal p b, .legal p a { color: var(--cream); }
.legal .updated { font-size: .78rem; color: var(--faint); margin-bottom: 32px; }

/* 404 */
.lost { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 40px; overflow: hidden; }
.lost .glow { right: -300px; top: -200px; }
.lost .tube { margin-top: 56px; }
