/* Bob Tracey — unlimited voice+
   Desktop sizes are measured from Bob's page designs (792px wide)
   and scaled with --u so the layout keeps its proportions up to 1100px wide. */

:root {
  --frame: min(100vw, 1100px);
  --u: calc(var(--frame) / 792);
  --red: #e0141a;
  --black: #000;
  --white: #fff;
  --text: #fff;
  --fs-body: calc(11.4 * var(--u));
  --fs-title: calc(17 * var(--u));
  --fs-nav: calc(11.6 * var(--u));
  --line: calc(3 * var(--u));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--black); overflow-x: clip; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: "Archivo", Arial, Helvetica, sans-serif;
  font-stretch: 112%;
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: 1.1;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1 { font-size: var(--fs-title); font-weight: 800; margin: 0 0 calc(12 * var(--u)); line-height: 1.1; }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header: logo + red rule running off the right edge ---------- */
.site-header {
  position: relative;
  width: var(--frame);
  margin: 0 auto;
  height: calc(130 * var(--u));
}
.logo {
  position: absolute;
  left: calc(144 * var(--u));
  top: calc(59 * var(--u));
  width: calc(431 * var(--u));
  z-index: 2;
}
.logo img { width: 100%; height: auto; }
.logo-line {
  position: absolute;
  left: 100%;
  top: 84%;
  width: 100vw;
  height: var(--line);
  background: var(--red);
}
.header-photo {
  position: absolute;
  left: calc(24 * var(--u));
  top: calc(63 * var(--u));
  width: calc(122 * var(--u));
  z-index: 1;
}

/* ---------- Main + footer ---------- */
.site-main {
  width: var(--frame);
  margin: 0 auto;
  min-height: calc(418 * var(--u));
}
.site-footer {
  text-align: center;
  padding-bottom: calc(18 * var(--u));
}
.site-footer::before {
  content: "";
  display: block;
  height: calc(4 * var(--u));
  background: var(--red);
  margin-bottom: calc(10 * var(--u));
}
.site-footer.no-line::before { background: transparent; margin-bottom: calc(6 * var(--u)); }
.top-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(22 * var(--u));
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(2 * var(--u)) calc(8 * var(--u));
  font-size: var(--fs-nav);
  font-weight: 700;
}
.top-nav a { text-decoration: none; padding: calc(2 * var(--u)) 0; }
.top-nav a:hover, .top-nav a:focus-visible { color: var(--red); }
.top-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.copyright { font-size: calc(6.4 * var(--u)); margin: calc(10 * var(--u)) 0 0; }

/* ---------- Two-column pages ---------- */
.cols {
  display: grid;
  grid-template-columns: calc(396 * var(--u)) 1fr;
  align-items: start;
}
.col-right { padding: calc(28 * var(--u)) calc(28 * var(--u)) calc(24 * var(--u)) 0; }
.page-demos .col-right, .page-about .col-right { padding-right: calc(64 * var(--u)); }
.copy p + p { margin-top: calc(12 * var(--u)); }

/* ---------- Home ---------- */
.hero {
  position: relative;
  height: calc(201 * var(--u));
}
.hero-photo {
  position: absolute;
  left: calc(347 * var(--u));
  top: calc(32 * var(--u));
  width: calc(127 * var(--u));
}
.trusted {
  position: absolute;
  right: calc(28 * var(--u));
  top: calc(55 * var(--u));
  width: calc(260 * var(--u));
  text-align: right;
  font-size: calc(15.5 * var(--u));
  font-weight: 800;
  line-height: 1.2;
}
.love {
  position: absolute;
  left: calc(46 * var(--u));
  bottom: calc(6 * var(--u));
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: calc(26 * var(--u));
  margin: 0;
}
.clients {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  border-top: calc(4 * var(--u)) solid var(--red);
  padding: calc(6 * var(--u)) 0;
  overflow: hidden;
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee var(--speed, 40s) linear infinite reverse; /* reverse = logos travel left to right */
}
.marquee.rtl { animation-direction: normal; }
.clients:hover .marquee { animation-play-state: paused; }
.marquee-set {
  display: flex;
  align-items: center;
  gap: calc(13 * var(--u));
  padding: 0 calc(13 * var(--u)) 0 0;
  margin: 0;
  list-style: none;
}
.marquee-set img { height: calc(31 * var(--u)); width: auto; max-width: calc(80 * var(--u)); object-fit: contain; }
@keyframes marquee { to { transform: translateX(-25%); } } /* 4 copies of the logo set; moves one copy per loop */

.quotes {
  display: grid;
  align-items: center;
  width: calc(720 * var(--u));
  margin: calc(26 * var(--u)) auto 0;
}
.quote {
  grid-area: 1 / 1;
  margin: 0;
  text-align: center;
  font-family: "Cabin", Arial, sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: calc(19 * var(--u));
  line-height: 1.3;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.quote.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.quote cite { display: block; font-style: italic; }
.home-buttons {
  display: flex;
  justify-content: space-between;
  width: calc(423 * var(--u));
  margin: calc(30 * var(--u)) auto calc(18 * var(--u));
  padding: calc(8 * var(--u));
  border: 2px solid #b3151a;
}
.home-buttons a { width: calc(122 * var(--u)); transition: transform .15s, filter .15s; }
.home-buttons a:hover, .home-buttons a:focus-visible { transform: scale(1.05); filter: brightness(1.15); }

/* ---------- Demos ---------- */
.page-demos .col-left { padding: calc(14 * var(--u)) calc(73 * var(--u)) calc(24 * var(--u)) calc(71 * var(--u)); }
.demo-cats, .demo-list { list-style: none; margin: 0; padding: 0; }
.demo-cat + .demo-cat { margin-top: calc(4 * var(--u)); }
.cat-btn {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
  width: 100%;
  min-height: calc(20.5 * var(--u));
  padding: calc(2 * var(--u)) calc(8 * var(--u));
  border: 1px solid #9a9a9a;
  background: linear-gradient(#ffffff, #e4e4e4 55%, #cfcfcf);
  color: #111;
  font: 700 calc(12 * var(--u)) / 1.1 "Archivo", Arial, sans-serif;
  font-stretch: 106%;
  text-align: left;
  letter-spacing: .01em;
  cursor: pointer;
}
.cat-btn:hover, .cat-btn:focus-visible { background: linear-gradient(#fff, #f2f2f2 55%, #dedede); outline: none; box-shadow: 0 0 0 2px var(--red); }
.bullet {
  flex: none;
  width: calc(11 * var(--u));
  height: calc(11 * var(--u));
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9fc0ea, #3f6fb4 60%, #274e8c);
  position: relative;
}
.bullet::after {
  content: "";
  position: absolute;
  left: 38%; top: 28%;
  border-left: calc(4 * var(--u)) solid #fff;
  border-top: calc(2.4 * var(--u)) solid transparent;
  border-bottom: calc(2.4 * var(--u)) solid transparent;
  transition: transform .2s;
}
.cat-btn[aria-expanded="true"] .bullet::after { transform: rotate(90deg); }
.demo-list {
  background: #151515;
  border: 1px solid #333;
  border-top: 0;
  padding: calc(6 * var(--u)) calc(8 * var(--u));
}
.demo {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: calc(8 * var(--u));
  align-items: center;
  padding: calc(5 * var(--u)) 0;
}
.demo + .demo { border-top: 1px solid #2a2a2a; }
.play {
  width: calc(26 * var(--u));
  height: calc(26 * var(--u));
  min-width: 26px; min-height: 26px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.play span {
  border-left: 9px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}
.play.is-playing span { border: 0; width: 9px; height: 11px; margin: 0; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.play:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.demo-title { font-size: calc(11 * var(--u)); }
.demo-desc { font-size: calc(9.5 * var(--u)); font-weight: 600; color: #bbb; margin-top: 2px; }
.progress { height: 3px; background: #333; margin-top: 5px; cursor: pointer; }
.progress span { display: block; height: 100%; width: 0; background: var(--red); }
.time { font-size: calc(9 * var(--u)); color: #bbb; font-variant-numeric: tabular-nums; }
.feature { margin-top: calc(20 * var(--u)); width: calc(302 * var(--u)); }
.feature video, .feature img { width: 100%; }
.yt { position: relative; aspect-ratio: 16 / 9; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.demo-note { margin-top: calc(10 * var(--u)); font-size: var(--fs-body); }

/* ---------- Credits ---------- */
.credits-video {
  width: calc(690 * var(--u));
  margin: calc(4 * var(--u)) auto calc(20 * var(--u));
}
.credits-video video { width: 100%; }

/* ---------- About ---------- */
.page-about .site-main { position: relative; }
.collage { margin-top: calc(-5 * var(--u)); padding: 0 calc(44 * var(--u)) 0 calc(14 * var(--u)); }
.collage img { width: 100%; }

/* ---------- Contact ---------- */
.contact-art { padding: calc(72 * var(--u)) calc(44 * var(--u)) 0 calc(145 * var(--u)); }
.contact-photo { width: 100%; }
.agent-logo { width: calc(110 * var(--u)); margin: calc(43 * var(--u)) 0 0 calc(3 * var(--u)); }
.social-icons { display: flex; flex-direction: column; gap: calc(10 * var(--u)); margin: calc(40 * var(--u)) 0 0 calc(3 * var(--u)); }
.social-icons img { width: calc(46 * var(--u)); }
.page-contact h1 { margin-bottom: calc(26 * var(--u)); }
.page-contact .block { margin-bottom: calc(12 * var(--u)); }
.page-contact .block.agent { margin-top: calc(28 * var(--u)); }
.contact-row {
  display: grid;
  grid-template-columns: minmax(calc(102 * var(--u)), max-content) 1fr;
  margin: 0 0 calc(12 * var(--u));
}
.contact-row dt { font-weight: 700; white-space: nowrap; padding-right: calc(6 * var(--u)); }
.contact-row dd { margin: 0; display: flex; flex-direction: column; }
.contact-row a { text-decoration: none; }
.contact-row a:hover, .contact-row a:focus-visible { color: var(--red); text-decoration: underline; }
.phone { display: grid; grid-template-columns: calc(92 * var(--u)) auto; }
.contact-row.social { margin-top: calc(24 * var(--u)); }
.contact-row.social + .contact-row.social { margin-top: calc(12 * var(--u)); }
.contact-row.social dd { gap: calc(12 * var(--u)); }
.contact-row.social a { overflow-wrap: anywhere; }

.btn-click {
  font: 800 calc(11.4 * var(--u)) / 1.1 "Archivo", Arial, sans-serif;
  font-stretch: 106%;
  padding: calc(5 * var(--u)) calc(14 * var(--u));
  border: 1px solid #9a9a9a;
  background: linear-gradient(#ffffff, #e4e4e4 55%, #cfcfcf);
  color: #111;
  cursor: pointer;
  justify-self: start;
}
.btn-click:hover, .btn-click:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--red); }
.contact-row dd .btn-click { align-self: flex-start; }
.contact-form {
  display: grid;
  gap: calc(8 * var(--u));
  margin: 0 0 calc(18 * var(--u));
  padding: calc(12 * var(--u));
  border: 1px solid #333;
  background: #111;
}
.contact-form[hidden] { display: none; }
.contact-form label { display: grid; gap: 3px; font-size: calc(10.5 * var(--u)); }
.contact-form input, .contact-form textarea {
  font: 600 calc(11.4 * var(--u)) / 1.3 "Archivo", Arial, sans-serif;
  color: #fff;
  background: #000;
  border: 1px solid #555;
  padding: calc(5 * var(--u)) calc(7 * var(--u));
  width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); }
.contact-form textarea { min-height: calc(90 * var(--u)); resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-status { font-size: calc(10.5 * var(--u)); min-height: 1em; }
.form-status.ok { color: #7ee07e; }
.form-status.err { color: #ff8a8a; }

/* ---------- FAQ ---------- */
.page-faq .cols { grid-template-columns: calc(318 * var(--u)) 1fr; }
.faq-art { padding: calc(58 * var(--u)) 0 0 calc(74 * var(--u)); }
.faq-art .gear { width: calc(257 * var(--u)); margin-left: calc(49 * var(--u)); }
.film { position: relative; margin: calc(4 * var(--u)) 0 0 calc(36 * var(--u)); width: calc(196 * var(--u)); }
.film img { width: 100%; }
.film figcaption {
  margin: calc(-6 * var(--u)) 0 0 calc(-36 * var(--u));
  width: calc(240 * var(--u));
  font-variant: small-caps;
  font-weight: 800;
  font-size: calc(10.5 * var(--u));
  line-height: 1.35;
  position: relative;
  text-shadow: 0 0 4px #000, 0 0 2px #000;
}
.film-title { display: flex; align-items: center; gap: calc(8 * var(--u)); margin-top: calc(4 * var(--u)); }
.film-title span { font-size: calc(19 * var(--u)); font-weight: 800; }
.film-title img { width: calc(133 * var(--u)); }
.page-faq .col-right h1 { margin-left: calc(78 * var(--u)); margin-bottom: calc(20 * var(--u)); }
.faq-items { list-style: none; margin: 0; padding: 0; }
.faq-items li {
  display: grid;
  grid-template-columns: calc(78 * var(--u)) 1fr;
  align-items: center;
  min-height: calc(30 * var(--u));
  margin-bottom: calc(10 * var(--u));
}
.faq-items img { width: calc(46 * var(--u)); justify-self: center; }

/* ---------- Other services ---------- */
.page-services h1 { margin: calc(28 * var(--u)) 0 calc(38 * var(--u)) calc(396 * var(--u)); }
.services { padding: 0 calc(96 * var(--u)) calc(24 * var(--u)) calc(123 * var(--u)); }
.services section + section { margin-top: calc(12 * var(--u)); }
.services h2 { font-size: inherit; font-weight: 800; margin: 0; }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 760px) {
  :root { --fs-body: 15px; --fs-title: 22px; --fs-nav: 15px; }
  body { line-height: 1.3; }
  .site-header { height: auto; padding: 18px 0 18px 16px; }
  .logo { position: relative; left: 0; top: 0; width: min(82%, 431px); }
  .header-photo { display: none; }
  .site-main { width: auto; min-height: 0; padding: 0 16px; }
  .cols, .page-faq .cols { display: flex; flex-direction: column; }
  .col-right { padding: 20px 0 24px; order: -1; }
  .col-left { width: 100%; }
  h1 { margin-bottom: 14px; }
  .copy p + p { margin-top: 14px; }

  .hero { height: auto; display: grid; grid-template-columns: 110px 1fr; gap: 6px 16px; align-items: end; padding-top: 4px; }
  .hero-photo, .trusted, .love { position: static; width: auto; }
  .hero-photo { grid-row: 1; }
  .trusted { font-size: 17px; text-align: left; align-self: center; grid-row: 1; grid-column: 2; }
  .trusted br { display: none; }
  .love { grid-column: 1 / -1; font-size: 26px; margin: 10px 0 6px; }
  .clients { border-top-width: 4px; padding: 8px 0; }
  .marquee-set { gap: 16px; padding-right: 16px; }
  .marquee-set img { height: 38px; }
  .quotes { width: 100%; margin-top: 24px; }
  .quote { font-size: 19px; }
  .home-buttons { width: 100%; max-width: 440px; gap: 8px; padding: 8px; margin: 26px auto 22px; }
  .home-buttons a { width: 32%; }

  .page-demos .col-left { padding: 0 0 24px; }
  .cat-btn { font-size: 15px; min-height: 44px; gap: 12px; padding: 6px 12px; }
  .bullet { width: 14px; height: 14px; }
  .bullet::after { border-left-width: 5px; border-top-width: 3px; border-bottom-width: 3px; }
  .demo-cat + .demo-cat { margin-top: 6px; }
  .play { width: 40px; height: 40px; }
  .demo-title { font-size: 15px; }
  .demo-desc { font-size: 13px; }
  .time { font-size: 12px; }
  .feature { width: 100%; }

  .credits-video { width: 100%; margin: 0 0 20px; }

  .collage { margin: 0 0 24px; padding: 0; }

  .page-contact .col-right { order: 0; }
  .contact-art { order: 1; padding: 0 0 24px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; }
  .contact-photo { grid-column: 1 / -1; max-width: 360px; }
  .agent-logo, .social-icons { margin: 0; }
  .agent-logo { width: 110px; }
  .social-icons { flex-direction: row; }
  .social-icons img { width: 44px; }
  .contact-row { grid-template-columns: 1fr; gap: 2px; margin-bottom: 16px; }
  .btn-click, .contact-form input, .contact-form textarea { font-size: 16px; }
  .contact-form label, .form-status { font-size: 14px; }
  .btn-click { padding: 10px 18px; }
  .contact-form textarea { min-height: 140px; }
  .contact-row dt { color: #bbb; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
  .phone { grid-template-columns: 130px auto; padding: 3px 0; }
  .page-contact h1 { margin-bottom: 16px; }

  .faq-art { order: 1; padding: 0 0 24px; }
  .faq-art .gear, .film { margin-left: 0; }
  .faq-art .gear { width: 100%; max-width: 320px; }
  .film { width: 100%; max-width: 360px; margin-top: 16px; }
  .film figcaption { margin: 8px 0 0; width: auto; font-size: 15px; }
  .film-title span { font-size: 24px; }
  .film-title img { width: 140px; }
  .page-faq .col-right h1 { margin-left: 0; }
  .faq-items li { grid-template-columns: 52px 1fr; gap: 12px; margin-bottom: 16px; }
  .faq-items li > span { display: none; }
  .faq-items li:has(> span) { grid-template-columns: 1fr; }
  .faq-items img { width: 48px; }

  .page-services h1 { margin: 20px 0 20px; }
  .services { padding: 0 0 24px; }
  .services section + section { margin-top: 18px; }

  .site-footer::before { height: 4px; margin-bottom: 14px; }
  .top-nav { position: static; gap: 2px 16px; padding: 0 16px 12px 0; justify-content: flex-start; }
  .top-nav a { padding: 6px 0; }
  .copyright { font-size: 11px; margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; }
  .clients { overflow-x: auto; }
}
