/* Portfolio-only rules on top of the shared site stylesheet (assets/theme/style.css). Keep this file small. */

/* top bar: the phone and place lines read like the bar's links */
.topbar .tb-place { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: #fff; }
.topbar .tb-place svg { width: 15px; height: 15px; }

/* hero: the owner's artwork across the full width as the background, the same height as before; dimmed behind the
   name, the highlights and the buttons. Wide screens show the N part of the artwork (its own lettering is cropped
   off, the real name is the h1). Tablets and phones show the whole artwork above the words. */
.hero-canvas { position: relative; display: flex; align-items: center; min-height: clamp(470px, 46vw, 660px); background: #02050c; }
.hero-canvas .hero-art { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.hero-canvas .hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.hero-canvas .hero-art::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 58% 62% at 50% 46%, rgba(3, 8, 28, .66) 0%, rgba(3, 8, 28, .4) 60%, rgba(3, 8, 28, .18) 100%),
              linear-gradient(180deg, rgba(2, 5, 12, 0) 55%, rgba(2, 5, 12, .85) 100%); }
.hero-canvas .hero-text { position: relative; z-index: 1; width: 100%; text-align: center; padding-top: 56px; padding-bottom: 132px; }
.hero-canvas .hero-text > * { margin-left: auto; margin-right: auto; }
.hero-canvas h1 { max-width: none; font-size: clamp(2.2rem, 4.4vw, 3.7rem); line-height: 1.1; margin-bottom: 16px;
  letter-spacing: -.01em; text-shadow: 0 2px 28px rgba(0, 0, 0, .65); }
.hero-canvas .hero-sub { max-width: 48em; margin-bottom: 22px; font-size: 1.08rem; line-height: 1.6; color: #d5def3;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
.hero-canvas .hero-sub b { color: #fff; }
.hero-canvas .hero-sub span { white-space: nowrap; }
.hero-canvas .hero-sub .dot { font-style: normal; }
@media (max-width: 640px) {
  .hero-canvas .hero-sub .dot { display: none; }
  .hero-canvas .hero-sub span { display: block; }
}
.hero-canvas .offer-facts { justify-content: center; margin-bottom: 26px; }
.hero-canvas .offer-facts li { background: rgba(4, 12, 40, .55); backdrop-filter: blur(4px); }
.hero-canvas .offer-facts b { color: var(--teal-bright); }
.hero-canvas .hero-ctas { justify-content: center; }
.hero-canvas .kicker { margin-bottom: 16px; background: rgba(4, 12, 40, .55); }
@media (max-width: 1000px) {
  .hero-canvas { display: block; min-height: 0; }
  .hero-canvas .hero-art { position: relative; inset: auto; }
  .hero-canvas .hero-art img { height: auto; aspect-ratio: 1024 / 765; }
  .hero-canvas .hero-art::after { background: linear-gradient(180deg, rgba(2, 5, 12, 0) 72%, #02050c 100%); }
  .hero-canvas .hero-text { padding-top: 10px; padding-bottom: 112px; }
  /* the artwork carries the name here, so the h1 is kept for screen readers only */
  .hero-canvas h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
  .hero-canvas .hero-sub { font-size: 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-canvas .hero-art img { animation: canvasIn 1.2s cubic-bezier(.22, 1, .36, 1) both; }
  @keyframes canvasIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
}

/* demos: four cards sit two by two */
.tool-cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .tool-cards.four { grid-template-columns: minmax(0, 1fr); } }

/* about: the person card across the row, the experience steps under it */
.about-card { max-width: none; }
.exp-title { margin: 44px 0 0; color: var(--navy); font-size: 1.35rem; }
.exp-steps { margin-top: 18px; }
.exp-steps .step h3 { color: var(--teal); }
.exp-steps .step p b { color: var(--navy); }

/* the demo screenshots sit on a white ground inside the navy tool cards */
.tool-cards .tcard figure { background: #fff; }

/* phones: keep the phone number in the top bar (the theme hides every top-bar link but the first) */
.topbar .tb-left a.tb-phone { display: inline-flex; }
