/* Elementium on c2lyn.com (owner 2026-11-05): the rail tab, the family line in the footer, the homepage
   advert and the small cross-sells on the order path. Its own file so site.css stays untouched:
   55 pages load site.css with no ?v=, so a change there can't be cache-busted. site.js adds this file
   to any page that doesn't link it, so the tab and footer line look right everywhere. */

/* ---------- the rail tab: named, because a phone has no hover tooltip ---------- */
.rail { --el-tab: 128px; --item: min(44px, calc((100vh - 150px - var(--el-tab)) / 12)); }
.rail-el { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: color .15s ease, background-color .15s ease; }
.rail-el img { display: block; width: 28px; height: auto; }
.rail-el span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font: 700 12.5px/1.25 var(--body); }
@media (hover: hover) and (pointer: fine) { .rail-el:hover { color: var(--red); background: var(--card); } }
@media (max-width: 760px) { .rail { --item: min(44px, calc((100svh - 130px - var(--el-tab)) / 12)); } }
/* short laptop window: the head alone, so the other twelve don't shrink (the title attribute names it) */
@media (pointer: fine) and (max-height: 720px) {
  .rail { --el-tab: 46px; }
  .rail-el span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
/* touch: every item stays 44px tall and the list scrolls inside the rail on a short phone, the tab stays put */
@media (pointer: coarse) {
  .rail { --item: 44px; }
  .rail-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .rail-nav::-webkit-scrollbar { display: none; }
  .rail-foot { margin-top: 0; }
}
@media (pointer: coarse) and (max-height: 860px) { .rail-foot { display: none; } }

/* ---------- the footer's family line ---------- */
.foot-family { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0; padding: 4px 0; border-top: 1px solid var(--line-d); font: 600 14px/1.4 var(--body); }
.foot-family a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration-color: var(--red); text-underline-offset: 4px; transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .foot-family a:hover { color: var(--red); } }
.el-cross-foot { font-size: 15px; }
.foot-brand .el-cross-foot a { color: #fff; text-decoration-color: var(--red); text-underline-offset: 4px; }

/* ---------- the homepage advert: one block with four faces, spun on its axis like a wheel. Without JS the faces stack as cards. ---------- */
.el-wheel { display: grid; grid-template-areas: "copy" "tabs" "stage" "hint"; min-width: 0; }
.el-copy { grid-area: copy; display: grid; gap: 14px; margin-bottom: clamp(22px, 4vh, 40px); }
.el-copy .h2 { font-size: clamp(30px, 2.7vw, 46px); }
.el-copy .lede { margin: 0; max-width: 40ch; }
/* the stage is a window onto the block; the sides stick out past it as it turns */
.el-stage { --w: 300px; grid-area: stage; position: relative; min-width: 0; perspective: 1100px; perspective-origin: 50% 50%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.el-stage.grabbing { cursor: grabbing; }
.el-cube { display: grid; gap: 18px; min-width: 0; }
/* the block sits behind the page plane by half its depth, so the front face is exactly the box it was laid out in */
.js .el-cube { gap: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--w) / -2)) rotateY(var(--rot, 0deg)); will-change: transform; }
.el-face { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; min-height: 380px; padding: clamp(22px, 3vw, 44px); overflow: hidden; background: var(--night); color: #fff; }
.js .el-face { grid-area: 1 / 1; transform: rotateY(calc(var(--i, 0) * 90deg)) translateZ(calc(var(--w) / 2)); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.el-face > * { position: relative; z-index: 1; }
/* the face's number, a ghost in the corner like the letters behind the other sections */
.el-face::before { content: attr(data-el-n); position: absolute; right: -.02em; bottom: -.16em; z-index: 1; font: 900 clamp(150px, 42vw, 240px)/.8 var(--display); letter-spacing: -.06em; opacity: .09; pointer-events: none; user-select: none; }
/* the shade: a face turning away goes darker, so the block looks lit from the front. Opacity only. */
.js .el-face::after { content: ""; position: absolute; inset: 0; z-index: 2; background: #000; opacity: var(--sh, 0); pointer-events: none; }
.el-face-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 28px; margin-bottom: 6px; }
.el-mark { display: block; width: 26px; height: auto; }
.el-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1.5px solid currentColor; font: 600 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.el-tag-now { background: var(--red); border-color: var(--red); color: #fff; }
.el-face .h3 { margin: 0; font-size: clamp(27px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -.03em; overflow-wrap: anywhere; }
.el-face p { margin: 0; max-width: 36ch; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; color: rgba(255, 255, 255, .76); }
.el-card-foot { margin-top: auto; padding-top: 12px; }
.el-face .fine { max-width: 46ch; margin-top: -2px; font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, .55); }
.el-face .btn { --bg: var(--paper); --fg: var(--ink); }
/* the four faces: black, red, white, then a build photo */
.el-rd { background: var(--red); }
.el-rd p { color: rgba(255, 255, 255, .9); }
.el-rd .fine { color: rgba(255, 255, 255, .74); }
.el-rd .btn { --bg: var(--ink); --fg: #fff; --edge: #fff; --box: #fff; --boxfg: var(--ink); }
.el-lt { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.el-lt p { color: var(--ink-2); }
.el-lt .fine { color: var(--mute); }
.el-lt .btn { --bg: var(--ink); --fg: var(--paper); }
.el-ph { background: #141414; }
/* the photo fades out toward the words, so they read without a shadow */
.el-face > .el-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; -webkit-mask-image: linear-gradient(150deg, rgba(0, 0, 0, .2), #000 75%); mask-image: linear-gradient(150deg, rgba(0, 0, 0, .2), #000 75%); }
.el-ph p { color: rgba(255, 255, 255, .9); }
/* the list: all four, each with what it is, readable before anything moves. Rows are the tabs. */
.el-tabs { grid-area: tabs; display: none; margin: 0 0 22px; border-top: 1px solid var(--line); }
.js .el-tabs { display: grid; }
.el-tab { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); grid-template-areas: "n name" "n what"; column-gap: 12px; row-gap: 3px; align-items: baseline; min-height: 58px; margin: 0; padding: 11px 0 11px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 3px 0 0 transparent; -webkit-tap-highlight-color: transparent; transition: box-shadow .2s ease; }
.el-tab .el-n { grid-area: n; font: 600 11px/1 var(--mono); color: var(--mute); transition: color .2s ease; }
.el-tab-name { grid-area: name; font: 600 16px/1.25 var(--display); letter-spacing: -.015em; transition: color .2s ease; }
.el-tab-what { grid-area: what; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 400 13.5px/1.35 var(--body); color: var(--mute); }
.el-tab-when { padding: 4px 6px; border: 1.5px solid var(--line); font: 600 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.el-tab-when.el-now { background: var(--red); border-color: var(--red); color: #fff; }
.el-tab[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--red); }
.el-tab[aria-selected="true"] .el-n { color: var(--red); }
.el-tab:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.el-hint { grid-area: hint; display: none; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 0; font: 500 11px/1.2 var(--mono); letter-spacing: .05em; color: var(--mute); transition: opacity .3s ease; }
.js .el-hint { display: flex; }
.el-hint .ico { width: 10px; height: 10px; }
.el-hint.gone { opacity: 0; }
/* a laptop: the words and the menu on the left, the block big on the right */
@media (min-width: 901px) {
  .js .el-wheel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; grid-template-areas: "copy stage" "tabs stage" "hint stage"; column-gap: clamp(40px, 5vw, 96px); align-items: start; }
  /* the block stands exactly as tall as the words and the menu beside it */
  .el-stage { display: grid; align-self: stretch; perspective: 1500px; }
  .el-copy { margin-bottom: 30px; }
  .el-tabs { margin: 0; }
  .el-tab { grid-template-columns: 2.6rem minmax(0, 1fr); min-height: 72px; padding: 14px 0 14px 14px; }
  .el-tab-when { margin-left: auto; }
  .el-tab .el-n { font-size: 12px; }
  .el-tab-name { font-size: clamp(19px, 1.6vw, 24px); }
  .el-tab-what { font-size: 14.5px; }
  .el-hint { justify-content: flex-start; margin: 18px 0 0; }
  .el-face { min-height: 480px; gap: 16px; }
  .el-face::before { font-size: clamp(220px, 19vw, 300px); }
}
@media (hover: hover) and (pointer: fine) { .el-tab:hover .el-tab-name { color: var(--red); } .el-strip-item:hover { background: rgba(0, 0, 0, .16); } }
/* the phone: the block is the full width between the rail and the edge */
@media (max-width: 560px) {
  .el-face { min-height: 0; padding: 22px; }
  .el-face .btn { width: 100%; justify-content: space-between; }
  .el-face p { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .el-cube { will-change: auto; }
}

/* ---------- the strip under the works reel: the four things, named, one line each ---------- */
.el-strip { padding: 0 var(--pad); background: var(--red); color: #fff; }
.el-strip-row { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); align-items: stretch; }
.el-strip-k { display: flex; align-items: center; padding: 14px 22px 14px 0; font: 600 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.el-strip-item { display: grid; align-content: center; gap: 3px; min-height: 76px; padding: 14px 18px; border-left: 1px solid rgba(255, 255, 255, .4); color: #fff; text-decoration: none; transition: background-color .2s ease; }
.el-strip-item b { font: 600 15px/1.2 var(--display); letter-spacing: -.015em; }
.el-strip-item span { font: 400 13px/1.3 var(--body); color: rgba(255, 255, 255, .86); }
@media (max-width: 760px) {
  .el-strip-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .el-strip-k { grid-column: 1 / -1; padding: 14px 0 12px; }
  .el-strip-item { align-content: start; min-height: 76px; padding: 12px 0 12px 12px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .4); }
  .el-strip-item:nth-child(odd) { padding-left: 0; }
  .el-strip-item:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .4); }
  .el-strip-item b { font-size: 14px; }
  .el-strip-item span { font-size: 12.5px; }
}

/* ---------- the quiet line on the order path: never a button, never above the form's own actions ---------- */
.el-cross { display: flex; align-items: center; gap: 14px; max-width: var(--wrap); margin: clamp(48px, 8vh, 80px) auto 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.el-cross img { flex: none; width: 28px; height: auto; }
.el-cross a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 4px; padding: 14px 0; }
.sent .el-cross { justify-content: center; width: 100%; margin-top: 10px; text-align: left; font-size: 15px; }
