/* CAD Creative Studio - additions on top of the exported portfolio theme CSS. */

/* Typeface: the original used a licensed web font registered as "shzc". That licence is
   domain-locked to the old host, so the same family name is mapped to the
   open-licence (SIL OFL) condensed face Bebas Neue, hosted here. */
@font-face {
  font-family: "shzc";
  src: url("/assets/fonts/BebasNeue-Regular.woff2") format("woff2"),
       url("/assets/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Without JavaScript the theme would leave the page invisible. */
.no-js .transition-enabled { opacity: 1; }

/* ---------- contact form additions ---------- */
.contact-form .cad-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cad-form-status { min-height: 1.4em; padding-top: 14px; color: #ddd; font: 15px/1.4 Arial, Helvetica, sans-serif; }
.cad-form-status-error { color: #ff8a80; }
.modules .form .submit-button[aria-disabled="true"] { opacity: 0.6; cursor: default; }
.modules .form .contact-form-sent:focus { outline: none; }

/* ---------- 360 page / project placements ---------- */
.pano-block { margin: 0 auto; max-width: 100%; }

/* ---------- footer ---------- */
.site-footer .footer-text a { text-decoration: underline; }

/* ---------- Welcome page (/): layout from CAD-Creative-Studio-Black.pdf (1200 x 800 design) ----------
   Anton (SIL OFL) is the face in the design. --s is the design's 120.9 pt headline size, scaled to the
   window (limited by width or height so the whole composition stays on screen); everything else is in em of it. */
@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/Anton-Regular.woff2") format("woff2"),
       url("/assets/fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
html:has(body.cad-welcome-page), body.cad-welcome-page { background: #090909; }
.cad-welcome {
  --s: min(10.075vw, 15.1vh);
  --red: #d52d27;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 7.9vh 0 7.8vh 6vw;
  background: #090909;
  color: #fff;
  font-family: "Anton", Impact, "Arial Narrow", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}
.cad-welcome__stage { align-self: center; }
.cad-welcome__title {
  margin: 0;
  font: inherit;
  font-size: var(--s);
  line-height: 0.925;
  letter-spacing: 0;
  color: #fff;
}
.cad-welcome__tagline {
  margin: calc(var(--s) * 0.3035) 0 0;
  font-size: calc(var(--s) * 0.488);
  line-height: 0.915;
  letter-spacing: 0;
  color: #fff;
}
.cad-welcome__title span, .cad-welcome__tagline span { display: block; }
.cad-welcome__tagline .cad-welcome__accent { color: var(--red); }
.cad-welcome__btn {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--s) * 0.393);
  box-sizing: border-box;
  height: calc(var(--s) * 0.405);
  margin-top: calc(var(--s) * 0.183);
  padding: 0 calc(var(--s) * 0.14);
  border: 1.5px solid #fff;
  color: #fff;
  background: transparent;
  font-size: max(15px, calc(var(--s) * 0.1985));
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.cad-welcome__btn svg {
  width: calc(var(--s) * 0.149);
  min-width: 14px;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3px;
  overflow: visible;
}
.cad-welcome__btn path { vector-effect: non-scaling-stroke; }
.cad-welcome__btn:hover, .cad-welcome__btn:focus-visible { background: #fff; color: #090909; }
.cad-welcome__btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.cad-welcome__foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-right: 13.4vw;
  font-family: Helvetica, Arial, sans-serif;
  text-transform: none;
  line-height: 1.2;
}
.cad-welcome__tagline { position: relative; }
/* Emblem (brand sheet v4.0), visible hexagon as tall as the capitals of the title (Anton cap height 0.86 em), bottom on the
   last tagline line ("they exist."). The SVG viewBox carries ~8% margin, so the negative margin puts the hexagon's right
   edge on the footer text's right edge (13.4vw in). */
.cad-welcome__emblem {
  position: absolute;
  right: 13.4vw;
  bottom: 0;
  width: calc(var(--s) * 0.88);
  height: auto;
  margin-right: calc(var(--s) * -0.068);
}
.cad-welcome__foot span:first-child { font-size: max(12px, calc(var(--s) * 0.1075)); }
.cad-welcome__foot span:last-child { font-size: max(10px, calc(var(--s) * 0.0827)); text-transform: uppercase; }
@media (max-width: 700px) {
  .cad-welcome { --s: 21vw; padding-right: 6vw; }
  .cad-welcome__foot { flex-direction: column; gap: 8px; padding-right: 0; }
  .cad-welcome__emblem { right: 6vw; }
}
