/* MILVERS · Revit tools landing.
   Brand (Manual de marca): charcoal #2C2C2C, light grey #f0f0f0, blue #6c9dd5; Lato for text, the logotype is an image.
   Blue only accompanies (the active row's bar); it is never used for text because it gives about 2.6:1 on #f0f0f0. */

:root {
  --charcoal: #2C2C2C;
  --light: #f0f0f0;
  --blue: #6c9dd5;
  --muted: #666666;                          /* 5.0:1 on #f0f0f0 */
  --line: rgba(44, 44, 44, .14);
  --hover: rgba(44, 44, 44, .04);
  --pad: clamp(28px, 5vw, 72px);             /* at least the width of the logo's "M" (about 26 px) on both sides */
  --font: 'Lato', 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(--light);
  color: var(--charcoal);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
}
[hidden] { display: none !important; }
img { display: block; }
a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px var(--pad);                  /* the logo keeps a safe margin of at least its "M" on every side */
}
.contact { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 32px; }
.logo img { height: 22px; width: auto; }     /* natural 700x119 proportions, never stretched or recoloured */
.site-link { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; letter-spacing: .03em; text-decoration: none; }
.site-link svg { flex: none; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.site-link:hover { text-decoration: underline; }

/* ---------- intro ---------- */
.intro { max-width: 1440px; margin: 0 auto; padding: 48px var(--pad) 40px; }
.eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); font-weight: 300; line-height: 1.08; letter-spacing: -.01em; }
.lead { margin: 20px 0 0; font-size: clamp(16px, 1.4vw, 20px); font-weight: 300; color: var(--muted); }

/* ---------- list + panel ---------- */
.tools-area {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad) 72px;
}

.tools { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.tools__item { border-bottom: 1px solid var(--line); }
.tool {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  padding: 20px 16px 20px 20px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s;
}
.tool::before {                              /* the active row's bar */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: transparent;
  transition: background-color .2s;
}
.tool:hover { background: var(--hover); }
.tool.is-active::before { background: var(--blue); }
.tool:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.tool__n { flex: 0 0 auto; min-width: 26px; padding-top: 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.tool.is-active .tool__n { color: var(--charcoal); }
.tool__text { display: block; min-width: 0; }
.tool__name { display: block; font-size: 20px; font-weight: 400; line-height: 1.25; overflow-wrap: anywhere; }
.tool.is-active .tool__name { font-weight: 700; }
.tool__sum { display: block; margin-top: 4px; font-size: 15px; font-weight: 300; color: var(--muted); overflow-wrap: anywhere; }

.panel { position: sticky; top: 24px; overflow: hidden; border-radius: 2px; background: var(--charcoal); color: var(--light); }
.stage { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--charcoal); }
.stage::before {                             /* the "+" pattern of the brand notebook, behind the message and the video */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14 10v8M10 14h8' stroke='%23f0f0f0' stroke-opacity='.25' stroke-width='1'/%3E%3C/svg%3E");
}
.video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.stage__msg { position: relative; margin: 0; padding: 24px; text-align: center; font-size: clamp(16px, 1.6vw, 20px); font-weight: 300; color: var(--light); }
.stage__msg--pending { white-space: pre-line; line-height: 1.9; }
.stage__msg--pending::first-line { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.caption { padding: 20px 24px 24px; }
.caption__name { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.caption__sum { margin: 6px 0 0; font-size: 15px; font-weight: 300; line-height: 1.5; overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer { max-width: 1440px; margin: 0 auto; padding: 24px var(--pad) 40px; font-size: 13px; font-weight: 300; color: var(--muted); }

/* ---------- narrow desktops and tablets (769–1100 px): the list takes a share, so the video panel stays large ---------- */
@media (min-width: 769px) and (max-width: 1100px) {
  .tools-area { grid-template-columns: minmax(260px, 38%) minmax(0, 1fr); gap: 32px; }
}

/* ---------- phones: one column, the panel first ---------- */
@media (max-width: 768px) {
  .intro { padding-top: 32px; }
  .contact { justify-content: flex-start; gap: 4px 24px; }
  .site-link { font-size: 18px; }
  .tools-area { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .panel { position: static; order: -1; }
  .tool { padding: 16px 12px 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  /* `*` does not reach pseudo-elements, and the active row's bar is a ::before */
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
