/* LUMOTURO product site, identity "Projection".
   base.css: tokens, type, shared components and site chrome. site.css: one block per section, then the phone layout.
   Default state is the static page (no JavaScript). Rules under .js are the enhanced state. */

@font-face {
  font-family: "Geologica";
  src: url("../shared/fonts/geologica-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0E0F12;
  --paper: #F3F1EA;
  --light: #F6F2E4;
  --signal: #FFED00;
  --dim: #8D8C86;

  --gut: clamp(16px, 4vw, 48px);
  --wrap: 1320px;
  --head-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sec-y: clamp(52px, 5.6vw, 80px);

  /* Type floor on a computer: running text 16 px, captions and labels 14 px. */
  --t-run: 1rem;
  --t-cap: .875rem;
  --t-tag: .875rem;
}
/* phones: running text 18 px, captions and labels 15 px, nothing under 14 px */
@media (max-width: 767.98px) {
  :root { --t-run: 1.125rem; --t-cap: .9375rem; --t-tag: .875rem; --sec-y: 28px; }
}
/* text that differs between a computer and a phone: one of the two is shown */
@media (min-width: 768px) { .m-only { display: none !important; } }
@media (max-width: 767.98px) { .d-only { display: none !important; } }

/* Two grounds. Every colour a component needs is derived from the ground it sits on. */
.night {
  --bg: var(--night);
  --fg: var(--light);
  --fg2: var(--dim);
  --rule: rgba(141, 140, 134, .38);
  --rule-strong: rgba(246, 242, 228, .62);
  --focus: var(--signal);
  --mark-stroke: var(--signal);
  --mark-fill: none;
  background: var(--bg);
  color: var(--fg);
}
.paper {
  --bg: var(--paper);
  --fg: var(--night);
  --fg2: rgba(14, 15, 18, .74);
  --rule: rgba(14, 15, 18, .2);
  --rule-strong: rgba(14, 15, 18, .85);
  --focus: var(--night);
  --mark-stroke: var(--night);
  --mark-fill: var(--signal);
  background: var(--bg);
  color: var(--fg);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 16px);
  scrollbar-color: #8D8C86 #0E0F12;
}

body { margin: 0; background: #0E0F12; }

/* The page root carries what a <body> normally would: the page may be shown inside a viewer that drops <body>. */
.page {
  position: relative;
  font-family: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  accent-color: var(--signal);
  caret-color: var(--signal);
}
.page ::selection { background: var(--signal); color: var(--night); }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 2.6vw + 1.1rem, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 2.3vw + 1rem, 3rem); }
h3 { font-size: 1.4rem; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
button { font-family: inherit; }
[hidden] { display: none !important; }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gut));
  margin-inline: auto;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 12px 16px;
  background: var(--signal); color: var(--night);
  font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

:focus-visible {
  outline: 2px solid var(--focus, var(--signal));
  outline-offset: 3px;
}

/* ---------- section scaffolding ---------- */

section { position: relative; }
.band { padding-block: var(--sec-y); }

/* Section marker: the plan-view ring on its centre line. It opens a section without words. */
.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(16px, 2vw, 26px);
}
.mark svg { flex: none; width: 26px; height: 26px; overflow: visible; }
.mk-c { fill: none; stroke: var(--fg2); stroke-width: .8; stroke-dasharray: 5 2 1 2; }
.mk-r { fill: var(--mark-fill); stroke: var(--mark-stroke); stroke-width: 2.6; }
.mark::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 6px;
  background: repeating-linear-gradient(to right, var(--rule-strong) 0 14px, transparent 14px 18px, var(--rule-strong) 18px 20px, transparent 20px 24px);
  opacity: .55;
}

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px clamp(32px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.sec-head p { max-width: 46ch; }

/* Dimension rule: a hairline with the 45 degree tick of a dimension line where each cell starts. */
.dimrow { border-top: 1px solid var(--rule-strong); }
.dimrow > * { position: relative; }
.dimrow > *::before, .dimrow > *:last-child::after {
  content: "";
  position: absolute;
  top: -6.5px; left: -6px;
  width: 12px; height: 12px;
  background: linear-gradient(to top right, transparent calc(50% - .8px), var(--fg) calc(50% - .8px) calc(50% + .8px), transparent calc(50% + .8px));
}
.dimrow > *:last-child::after { left: auto; right: -6px; }

/* ---------- captions ---------- */

/* The page has no captions under pictures; the one caption left stands in the enlarged view of a photo. */
figcaption {
  margin-top: 10px;
  max-width: 64ch;
  font-size: var(--t-cap);
  line-height: 1.45;
  color: var(--fg2);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 4px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 600 1rem/1.15 "Geologica", sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s, border-color .16s, color .16s;
}
.btn-signal { background: var(--signal); color: var(--night); }
.btn-signal:hover { background: var(--light); }
.btn-line { border-color: var(--rule-strong); color: var(--fg); background: transparent; }
.btn-line:hover { border-color: var(--fg); background: rgba(246, 242, 228, .1); }
.btn-small { min-height: 44px; padding-inline: 16px; font-size: .92rem; }
.btn .tri {
  flex: none;
  border-left: 10px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 2px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--fg);
  font: 600 .875rem/1.2 "Geologica", sans-serif;
  cursor: pointer;
  transition: background-color .16s, color .16s;
}
.mini-btn:hover { background: var(--fg); color: var(--bg); }

/* A control without words: it pauses and plays a video, the photo strip or the drawing. Its name is in aria-label;
   the icon shows what a press will do. On a picture it is the bare icon with a soft shadow, with no plate under it. */
.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: none;
  color: var(--fg);
  cursor: pointer;
  transition: background-color .16s, color .16s;
}
.icon-btn svg { display: block; width: 16px; height: 16px; overflow: visible; }
.icon-btn .i-pause { fill: none; stroke: currentColor; stroke-width: 3; }
.icon-btn .i-play { fill: currentColor; stroke: none; display: none; }
.icon-btn.is-paused .i-pause { display: none; }
.icon-btn.is-paused .i-play { display: block; }
.icon-btn:hover { color: var(--signal); }
.icon-btn.on-pic {
  --focus: var(--signal);
  color: var(--light);
  filter: drop-shadow(0 0 2px rgba(14, 15, 18, .9)) drop-shadow(0 0 8px rgba(14, 15, 18, .6));
}
.icon-btn.on-pic:hover { color: var(--signal); }
.icon-btn.is-framed { border: 1px solid var(--rule-strong); }
.icon-btn.is-framed:hover { background: var(--fg); color: var(--bg); }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 0 var(--gut);
  background: var(--night);
  color: var(--light);
  border-bottom: 1px solid rgba(141, 140, 134, .3);
  --fg: var(--light);
  --bg: var(--night);
  --rule-strong: rgba(246, 242, 228, .62);
  --focus: var(--signal);
  transition: background-color .25s, border-color .25s;
}
/* Over the hero photograph the header is clear; the photograph carries its own dark top. */
.js .site-head.is-clear { background: transparent; border-bottom-color: transparent; }
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--light);
}
.wm { display: block; height: 18px; width: auto; aspect-ratio: 808 / 102.4; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  font-size: .92rem;
  text-decoration: none;
}
.site-nav li a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 9px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}
.site-nav li a:hover::after,
.site-nav li a.is-here::after { transform: scaleX(1); }
.nav-toggle { display: none; }
.site-nav .nav-cta { display: none; }
/* A computer shows six links by their short names; on a phone the open menu lists every section by its heading. */
.nav-m { display: none; }
/* "Request a quote" is not shown twice on one screen: the button of the header is put away while the button
   of the hero, the quote section or the closing block is on screen (class set in js/main.js). */
.js .head-cta { transition: opacity .2s, visibility 0s, background-color .16s; }
.cta-near .head-cta { opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }

@media (max-width: 999.98px) {
  .site-head { justify-content: space-between; }
  .head-cta { display: none; }
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--rule-strong);
    border-radius: 2px;
    background: rgba(14, 15, 18, .35);
    color: var(--light);
    font: 600 .92rem/1 "Geologica", sans-serif;
    cursor: pointer;
  }
  .nav-toggle i {
    width: 16px; height: 9px;
    border-top: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
  }
  .js .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    margin: 0;
    padding: 4px var(--gut) 18px;
    background: var(--night);
    border-bottom: 1px solid rgba(141, 140, 134, .3);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-head:has(.site-nav.is-open) { background: var(--night); }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav li a { width: 100%; height: 52px; padding: 0; border-bottom: 1px solid rgba(141, 140, 134, .3); font-size: 1.05rem; }
  .js .site-nav li a::after { display: none; }
  .js .site-nav .nav-cta { display: flex; margin-top: 16px; }

  /* Without JavaScript the links sit in a second row and the header scrolls with the page. */
  html:not(.js) .site-head { position: static; height: auto; flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .site-nav { margin: 0; width: 100%; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
  html:not(.js) .site-nav li a { padding-left: 0; }
}

/* ---------- phone bar ---------- */

.demo-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  background: var(--night);
  border-top: 1px solid rgba(141, 140, 134, .3);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .25s var(--ease), visibility 0s .25s;
}
.demo-bar.is-on { transform: none; visibility: visible; transition: transform .25s var(--ease); }
.demo-bar .btn { width: 100%; }
@media (min-width: 768px) { .demo-bar { display: none !important; } }

/* ---------- pictures ---------- */

.pic { position: relative; display: block; background: #000; overflow: hidden; }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 899.98px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
}
