/* The 3D version - the site's main version since 29.09 (Ariel: "3D is our main version").
   Loaded on the home page only, after site.css: the tool explorer for the twelve plugins (explorer.js), and the live 3D
   mark behind frosted-glass panels (glass.js, three.js). The 2D journey it grew out of stays in lab/ (and frozen in
   lab/backup-2d). The lab page loads this same file. */

/* ---------- the tool explorer: one window for the twelve plugins ---------- */
.xp {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border: 1px solid var(--line-2);
  background: var(--bg);
}
/* the list on the start side (right in Hebrew), the window beside it - the order of the GPT concept */
.xpl { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: var(--gutter); align-items: start; margin-top: 48px; }
/* Ariel's six groups (29.09): the list is grouped, and the window names the group and the problem it removes */
.xp-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.xp-grp ol { margin: 0; padding: 0; list-style: none; }
.xp-grp-name { display: block; padding: 18px 12px 6px; border-bottom: 1px solid var(--line); color: var(--accent-ink); font: 500 13px/1.3 var(--font); }
html[lang="en"] .xp-grp-name { font-family: var(--latin); }
.xp-grp:first-child .xp-grp-name { padding-top: 12px; }
.xp-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-inline-start: 2px solid transparent;
  background: none;
  color: var(--text);
  font: 500 15px/1.3 var(--mono);
  text-align: start;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.xp-row:hover { background: rgba(116, 84, 232, 0.07); }
/* a press gives way a little (30.09) - on a phone, where there is no hover, it is the only answer to the finger */
@media (prefers-reduced-motion: no-preference) {
  .xp-row { transition: background-color 0.2s ease, border-color 0.2s ease, scale 0.15s var(--ease-out); -webkit-tap-highlight-color: transparent; }
  .xp-row:active { scale: 0.96; }
}
.xp-row[aria-pressed="true"] { border-inline-start-color: var(--accent); background: rgba(116, 84, 232, 0.15); }
.xp-row img { width: 28px; height: 28px; }
.xp-row-n { color: var(--text-3); font-size: 12px; }
.xp-row[aria-pressed="true"] .xp-row-n { color: var(--text-2); } /* on the violet of the chosen row the faint grey fell under 4.5:1 */
.xp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.06em;
  direction: ltr;
}
.xp-count { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.xp-view { position: relative; width: 100%; aspect-ratio: 16 / 10; background: #0D1226; overflow: hidden; }
.xp-meta { padding: 20px 22px 22px; border-top: 1px solid var(--line); }
.xp-cat { color: var(--accent-ink); font: 500 13px/1.4 var(--font); } /* Hebrew in the line - the mono face has no Hebrew letters */
html[lang="en"] .xp-cat { font-family: var(--latin); }
.xp-pain { margin: 4px 0 0; max-width: 52ch; color: var(--text-3); font-size: 14px; } /* the group's problem, quiet: the tool comes after it */
.xp-name { margin: 6px 0 10px; font: 500 clamp(1.5rem, 2.4vw, 2rem)/1.15 var(--mono); }
.xp-desc { max-width: 52ch; color: var(--text-2); }
.xp-note { margin-top: 14px; color: var(--text-3); font-size: 13px; }
/* tablets and phones (Ariel, 29.09): the window used to sit on top while the list scrolled under it, and slid away at
   the end of the list. Now it is one screen: the plugins' own icons in a narrow column on the start side (right in
   Hebrew), the window beside them. The names stay in the buttons for screen readers; the window shows the chosen one */
@media (max-width: 1024px) {
  .xpl { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: stretch; margin-top: 32px; }
  .xp-list { display: grid; gap: 12px; border-top: 0; } /* a wider gap between the groups... */
  .xp-grp ol { display: grid; gap: 4px; }               /* ...than between the icons inside a group */
  .xp-grp-name { display: none; }                        /* the window says the group's name */
  .xp-row { position: relative; grid-template-columns: 1fr; place-items: center; width: 46px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; }
  .xp-row[aria-pressed="true"] { border-color: var(--accent); background: rgba(116, 84, 232, 0.2); }
  .xp-row :is(.xp-row-name, .xp-row-n) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .xp { position: relative; top: auto; display: flex; flex-direction: column; }
  .xp-bar-long { display: none; } /* "AC_PLUGINS" is enough in a narrow window */
  .xp-view { flex: 1; aspect-ratio: auto; min-height: 170px; }
  .xp-meta { padding: 12px 14px 14px; }
  .xp-name { margin: 2px 0 6px; font-size: 1.15rem; }
  .xp-desc { font-size: 14px; }
  .xp-note { display: none; }
}
.xp-art { position: absolute; inset: 0; width: 100%; height: 100%; direction: ltr; } /* a drawing reads left to right: "18.0 m²", not "m² 18.0" */
.xp-grid line { stroke: rgba(163, 169, 191, 0.06); stroke-width: 1; }
.xp-grid line.major { stroke: rgba(163, 169, 191, 0.14); }
.xp-layer { transition: opacity 0.35s ease; }
.xp-base { transition: opacity 0.35s ease; } /* the plugin's base (schematic plan, real plan or none) shows, the others fade */

.xp-art .xs { fill: none; stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.xp-art .wall { stroke: var(--text-2); stroke-width: 5; stroke-linecap: square; }
.xp-art .wall.thin { stroke-width: 2; }
.xp-art .glass, .xp-art .leaf, .xp-art .swing, .xp-art .rule { stroke: var(--text-3); }
.xp-art .glassline { stroke: var(--text-2); }
.xp-art .dim, .xp-art .ext, .xp-art .lead, .xp-art .tagline, .xp-art .acc { stroke: var(--accent-ink); }
.xp-art .ext { stroke-opacity: 0.55; }
.xp-art .tick { stroke: var(--accent-ink); stroke-width: 1.6; }
.xp-art .drawn { stroke: var(--accent-ink); stroke-dasharray: 1; }
.xp-art .alert { stroke: var(--accent-ink); stroke-width: 2; }
.xp-art .added { stroke: var(--accent-ink); stroke-width: 5; stroke-linecap: square; }
.xp-art .erase { stroke: #0D1226; stroke-width: 9; }
.xp-art .removed { stroke: var(--accent-ink); stroke-width: 1.5; }
.xp-art .boundary { stroke: var(--accent-ink); stroke-width: 1.5; }
.xp-art .sheet { fill: #111831; }
.xp-art .xf { opacity: 0; }
.xp-art .hatch { fill: rgba(116, 84, 232, 0.16); }
.xp-art .unit { fill: rgba(116, 84, 232, 0.1); }
.xp-art .xt { opacity: 0; fill: var(--text); font-family: var(--mono); font-size: 11px; }
.xp-art .head { fill: var(--text-3); font-size: 10px; letter-spacing: 0.06em; }
.xp-art .acc-text { fill: var(--accent-ink); }
.xp-art .tagtext { font-size: 10px; }
/* AC_Export_Excel: each program in its own look - Revit's schedule and blue, Excel's green bar, chosen cell and tab */
.xp-art .rv-title { fill: #1B2442; }
.xp-art .xs.rv-accent { stroke: #0696D7; stroke-width: 1.5; }
.xp-art .xl-title { fill: #107C41; }
.xp-art .xs.xl-sel { stroke: #21A366; stroke-width: 2; }
.xp-art .xs.xl-tab { stroke: #21A366; stroke-width: 1.5; }
.xp-art .xl-handle { fill: #21A366; }
.xp-art .band { fill: rgba(163, 169, 191, 0.1); }
.xp-art .band-on { fill: rgba(163, 169, 191, 0.24); }
.xp-art .wtitle { fill: var(--text-2); font-size: 8.5px; letter-spacing: 0.04em; }
.xp-art .wtitle.on-green { fill: #fff; }
.xp-art .strong-t { font-weight: 600; }
.xp-art .fx { font-style: italic; }
.xp-art .warn { fill: var(--accent-ink); font-size: 15px; font-weight: 700; } /* AC_Headroom: the exclamation mark */
.xp-art .warn-text { fill: var(--accent-ink); font-size: 13px; font-weight: 600; }
/* AC_Pro_Sheet: the sheet's strip, and the three files it becomes - their formats stand out */
.xp-art .faint { stroke-opacity: 0.5; }
.xp-art .dot { fill: var(--text-3); }
.xp-art .sheetno { fill: var(--text-2); font-size: 6.5px; font-weight: 600; }
.xp-art .badge { fill: var(--accent); }
.xp-art .badge-t { fill: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.xp-art .fname { fill: var(--text-2); font-size: 9px; }
.xp-art .bar { fill: var(--text-3); } /* the sheets' (AC_Mecher, AC_Pro_Sheet) lines of text, schematic */
.xp-art .bar.strong { fill: var(--text-2); }
.xp-art .bar.accent { fill: var(--accent-ink); }
/* Ariel's real plan (plans.js, in PDF points): the walls trace themselves and fill in the site's grey - the grey he
   exported them in; the plugin's dimensions in violet, with the same ticks as the schematic drawings */
.xp-art .r-wall { stroke: var(--text-2); stroke-width: 0.5; }
.xp-art .r-fill { fill: var(--text-2); }
.xp-art .r-heavy { stroke: var(--text-2); stroke-width: 0.9; }
.xp-art .r-mid { stroke: var(--text-2); stroke-width: 0.45; }
.xp-art .r-thin { stroke: var(--text-3); stroke-width: 0.45; }
.xp-art .r-hatch { stroke: var(--text-3); stroke-opacity: 0.5; stroke-width: 0.4; }
.xp-art .r-pane { fill: rgba(163, 169, 191, 0.35); }
.xp-art .r-glass { fill: var(--text-2); stroke: var(--text-2); stroke-width: 0.6; } /* the panes in AC_Mecher's small plan: thick enough to close a window's gap */
.xp-art .r-dim { stroke: var(--accent-ink); stroke-width: 0.6; }
.xp-art .r-ext { stroke: var(--accent-ink); stroke-opacity: 0.55; stroke-width: 0.5; }
.xp-art .r-tick { stroke: var(--accent-ink); stroke-width: 1; }
.xp-art .r-click { stroke: var(--accent-ink); stroke-width: 0.8; }
.xp-art .r-draft { stroke: var(--text); stroke-width: 0.45; } /* AC_Dimension_Line: the line being stretched, before it turns violet */
.xp-art .r-num { font-size: 7.9px; }
.xp-art .r-tag { stroke: var(--accent-ink); stroke-width: 0.6; }
/* AC_Area_Frame (Ariel, 29.09): the walls the area's frame runs along turn violet, and the frame stays black */
.xp-art .xs.r-wallv { stroke: var(--accent); stroke-width: 0.5; }
.xp-art .xf.r-wallv { fill: var(--accent); }
.xp-art .r-frame { stroke: #000; }
.xp-art .r-colour { stroke-width: 0.5; } /* Heter_Change: the colour itself comes from the file, blue, yellow and red */

/* ---------- the 3D version: a live 3D mark behind frosted panels (html.glass) ----------
   glass values from the motionsites.ai lesson Ariel sent: blur 18px, saturate 1.4, brightness 1.05, an inner glow;
   a little more white in the fill than theirs, because our background is dark navy, not a bright video */
/* the canvas scrolls with the page, and glass.js moves it back over the screen every frame. Fixed to the screen, it
   lagged on a phone: the phone scrolls the page before the script can follow, and in a quick flick the violet arch
   came away from its glass door (Ariel, 29.09). Now the phone carries the arch and the door together.
   It sits in a stage as tall as the page that clips it, so moving it never makes the page longer */
.gl-stage { position: absolute; top: 0; left: 0; z-index: -1; width: 100%; overflow: hidden; pointer-events: none; }
.gl-canvas { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100vh; will-change: transform; }
html.glass { background: #0B1020; }
html.glass body,
html.glass .contact { background: transparent; }
html.glass .about-mark { visibility: hidden; } /* the 3D mark stands where it was... */
/* ...until the end: the pen turns the arches back into the violet lines of this very image, and then the image shows */
html.glass .about-grid { position: relative; }
.gl-endlines { position: absolute; overflow: visible; pointer-events: none; visibility: hidden; }
.gl-endlines path { fill: none; stroke: #7454E8; stroke-width: 9.8; stroke-dasharray: 1; }
html.glass.gl-ending .gl-endlines { visibility: visible; }
html.glass.gl-ended .about-mark { visibility: visible; }
/* the opening: the site's own drawing plays, then copies of its lines (split at the arches) take over and hand the
   arches to the 3D; when the rest is erased the whole 2D mark steps aside for good */
html.glass .hero-mark :is(.cells, .cell-video) { display: none; } /* the storyboard Ariel approved: lines only */
html.glass .hero-mark .part { animation: none; } /* the lines stay put until the 3D takes them */
.gl-lines { visibility: hidden; }
.gl-lines path { fill: none; stroke: var(--text); stroke-width: 9.8; stroke-dasharray: 1; }
html.glass.gl-swap .hero-mark .lines { visibility: hidden; }
html.glass.gl-swap .gl-lines { visibility: visible; }
html.glass.gl-done .hero-mark .mark,
html.glass.gl-done .gl-lines { visibility: hidden; } /* the copies too: a child set to visible shows through a hidden parent */
/* in one column the logo spans the screen, and the 3D band grows outward from the drawn line (and turns once):
   a narrower logo keeps the arches whole inside the screen */
@media (max-width: 860px) {
  html.glass .hero-mark { width: min(calc(100% - 56px), 400px); }
}
html.glass :is(.site-header, .door, .t-video, .t-card, .xp, .contact-form, .site-footer) {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.022) 40%, rgba(255, 255, 255, 0.012) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(1.4) brightness(1.05);
  backdrop-filter: blur(18px) saturate(1.4) brightness(1.05);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.09);
  border-color: transparent;
}
html.glass .site-header,
html.glass .xp { position: sticky; } /* the glass rule above made them relative: the header lost its place and the
                                         tool window sat a header's height too low (29.09) */
/* the edge: a 1.5px ring, bright at the top and the bottom and faint on the sides (their ::before, drawn on ::after here
   because the doors already use ::before for the wall's inner line). Values raised for the dark background */
html.glass :is(.site-header, .door, .t-video, .t-card, .xp, .contact-form, .site-footer)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.08) 15%, rgba(255, 255, 255, 0.025) 40%, rgba(255, 255, 255, 0.025) 60%, rgba(255, 255, 255, 0.08) 85%, rgba(255, 255, 255, 0.2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
html.glass .site-header::after { padding: 0 0 1px; }
html.glass .site-footer::after { padding: 1px 0 0; }
html.glass .door::before { border-color: rgba(233, 235, 243, 0.08); }
html.glass .t-video { border-radius: 22px; background: var(--hatch), linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012)); }
html.glass .t-card { border-radius: 18px; }
html.glass :is(.door-cell, .door-grid-12 img) { border-color: rgba(233, 235, 243, 0.12); border-radius: 10px; }
html.glass .xp { border-radius: 18px; overflow: hidden; }
html.glass .xp-view { background: rgba(8, 11, 26, 0.55); }
html.glass .contact-form { padding: 28px; border-radius: 22px; }
html.glass .field input,
html.glass .field textarea { background-color: rgba(11, 16, 32, 0.55); } /* the colour only: a field's check mark is its background image */
/* a door rises on hover (site.css) and its glass casts a soft violet shadow under it (30.09) */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  html.glass .door:hover { box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.09), rgba(116, 84, 232, 0.28) 0 24px 48px -20px; }
}
@media (prefers-reduced-transparency: reduce) {
  html.glass .site-header, html.glass .door, html.glass .t-video, html.glass .t-card,
  html.glass .xp, html.glass .contact-form, html.glass .site-footer {
    -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(15, 21, 40, 0.94);
  }
}
