/* ------------------------------------------------------------------
   jacobpink.com site layer: loaded after main.css.
   Real imagery for the template's decorative slots, plus a11y/form bits.
------------------------------------------------------------------- */

/* Skip link (visible on keyboard focus only) */
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  padding: 1rem 1.6rem;
  border-radius: 1rem;
  background: var(--base-opp);
  color: var(--base);
  font-size: 1.6rem;
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Contact form */
.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__status {
  min-height: 2.4rem;
  margin-top: 1.6rem;
  font-size: 1.5rem;
  color: var(--t-medium);
}
.form__status.is-error {
  color: #d64545;
}
.contact-form button[disabled] {
  opacity: .6;
  cursor: progress;
}
.contact-form label.visually-hidden + input,
.contact-form label.visually-hidden + textarea {
  margin-top: 0;
}

/* Homepage service cards: one labelled example per service, kept clear of the text */
.services-stack__image.service-example {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  margin: 2.4rem 0 0;
  border-radius: var(--_radius-m) var(--_radius-m) 0 0;
  overflow: hidden;
}
.service-example img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.service-example figcaption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  max-width: calc(100% - 2.4rem);
  padding: .6rem 1.2rem;
  border-radius: 10rem;
  background: rgba(17, 17, 17, .78);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1.3;
}
@media only screen and (min-width: 992px) {
  .services-stack__image.service-example {
    position: absolute;
    top: 11rem;
    right: 5rem;
    bottom: 4.6rem;
    left: auto;
    width: 32%;
    height: auto;
    margin: 0;
    border-radius: var(--_radius-m);
    padding: 0;
  }
}
.service-example-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.6rem;
  font-size: 1.5rem;
  color: var(--t-bright);
  text-decoration: underline;
  text-underline-offset: .3em;
}

/* Work page stacked cards: photo + darkening at the bottom so the name reads */
.mxd-projects-stack__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, 0) 26%),
    linear-gradient(to top, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .12) 45%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}
.projects-stack__tagline {
  margin-top: .8rem;
  color: rgba(255, 255, 255, .88);
  font-size: 1.8rem;
  line-height: 1.4;
}

/* About page photo strip: every photo says which project it is */
.marquee__link {
  position: relative;
  display: block;
}
.marquee__label {
  position: absolute;
  left: 1.6rem;
  bottom: 1.6rem;
  padding: .6rem 1.4rem;
  border-radius: 10rem;
  background: rgba(17, 17, 17, .78);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.3;
}

/* Rotating "See my work" badge: arrow instead of the template's heart */
.btn-rotating .btn-rotating__icon {
  width: auto;
  font-size: 4.4rem;
  line-height: 1;
  color: var(--t-bright);
}

.nowrap { white-space: nowrap; }

/* Project page: the clean cover on phones, the site screenshot on wider screens */
.project-hero {
  background-image: var(--hero-small);
  background-position: center;
}
@media only screen and (min-width: 768px) {
  .project-hero {
    background-image: var(--hero-wide);
    background-position: top center;
  }
}

/* Project page */
.mxd-project-cards__inner img {
  width: 100%;
  height: auto;
  border-radius: inherit;
}
.mxd-project-cards__inner.is-mobile {
  justify-content: flex-start;
  align-items: center;
  padding: 4rem 2rem 0;
}
.mxd-project-cards__inner.is-mobile img {
  flex-shrink: 0;
  max-width: 34rem;
  border-radius: 2.4rem 2.4rem 0 0;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, .25);
}
.project-highlights {
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
}
.project-highlights li {
  position: relative;
  padding: 1.2rem 0 1.2rem 3.2rem;
  border-top: 1px solid var(--st-muted);
}
.project-highlights li:last-child {
  border-bottom: 1px solid var(--st-muted);
}
.project-highlights li svg {
  position: absolute;
  left: 0;
  top: 1.6rem;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--accent);
}
.project-visit {
  margin-top: 3.2rem;
}

/* Respect reduced motion for the template's marquees and parallax */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Services: keep the template's large list-title look on a real heading */
.mxd-services-list__title h2.h3-like {
  margin: 0;
  font: normal var(--fw-medium) 3.6rem/1.05 var(--_font-accent);
  letter-spacing: -0.06rem;
  color: var(--t-bright);
  max-width: 14ch;
}
@media only screen and (min-width: 1200px) {
  .mxd-services-list__title h2.h3-like { font-size: 5.6rem; }
}
@media only screen and (min-width: 1600px) {
  .mxd-services-list__title h2.h3-like { font-size: 6.8rem; }
}

/* Services: process steps */
.project-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.project-steps li {
  display: flex;
  gap: 2.4rem;
  padding: 2.4rem 0;
  border-top: 1px solid var(--st-muted);
}
.project-steps li:last-child {
  border-bottom: 1px solid var(--st-muted);
}
.project-steps__num {
  flex: 0 0 auto;
  font-family: var(--_font-accent);
  font-size: 1.6rem;
  color: var(--t-muted);
  padding-top: .4rem;
}
.project-steps__title {
  margin: 0 0 .6rem;
  font-size: 2.4rem;
  line-height: 1.2;
}
.project-steps p {
  margin: 0;
}

/* Pricing: tier names are h2 for heading order, styled like the template's h4 */
h2.pricing-header__title {
  font: normal var(--fw-medium) 3rem/1.2 var(--_font-accent);
  color: var(--t-bright);
  letter-spacing: normal;
}
@media only screen and (min-width: 1200px) {
  h2.pricing-header__title { font-size: 4.4rem; }
}

/* FAQ: questions are h2 for heading order, styled like the template's h6 */
.mxd-accordion__title h2.h6-like {
  margin: 0;
  font: normal var(--fw-medium) 2.2rem/1.2 var(--_font-accent);
  color: var(--t-bright);
}
@media only screen and (min-width: 1200px) {
  .mxd-accordion__title h2.h6-like { font-size: 3rem; }
}

/* About: principle icons in the template's 100x100 image slot */
.approach-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  background: var(--base-tint);
  color: var(--accent);
  font-size: 3rem;
}
.mxd-approach-list__title h3.h6-like {
  margin: 0;
  font: normal var(--fw-medium) 2.2rem/1.2 var(--_font-accent);
  color: var(--t-bright);
}
@media only screen and (min-width: 1200px) {
  .mxd-approach-list__title h3.h6-like { font-size: 3rem; }
}

/* About: client list */
.client-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.client-list li {
  border-top: 1px solid var(--st-muted);
}
.client-list li:last-child {
  border-bottom: 1px solid var(--st-muted);
}
.client-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.6rem;
  padding: 1.8rem 0;
  color: var(--t-bright);
  text-decoration: none;
}
.client-list__name {
  font: normal var(--fw-medium) 2.2rem/1.2 var(--_font-accent);
  transition: transform .3s ease;
}
.client-list__meta {
  font-size: 1.5rem;
  color: var(--t-muted);
  text-align: right;
}
.no-touch .client-list a:hover .client-list__name {
  transform: translateX(.8rem);
}

/* ---- Contrast fixes (WCAG 2.2 AA) ---- */
/* Big decorative marquee text: lift from muted-extra to muted */
.marquee.muted-extra .marquee__text { color: var(--t-muted); }
/* Pricing "/once" */
.pricing-data__period { color: var(--t-medium); }
/* White text on the purple accent fails; use near-black on purple/lime */
.tag-accent, .tag-additional { color: #161616 !important; }
.mxd-services-stack__inner.bg-accent .opposite,
.mxd-services-stack__inner.bg-accent .t-opposite { color: #161616 !important; }
.mxd-services-stack__inner.bg-accent .tag-outline-opposite { color: #161616 !important; border-color: rgba(22, 22, 22, .4) !important; }
/* Links inside legal/article text */
.mxd-article a:not(.btn) { color: var(--t-bright); text-decoration: underline; text-underline-offset: .2em; }

/* Project page: tech stack chips, left-aligned in a wrapping row */
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

/* Contrast: footer project counter and dark-mode muted text (WCAG AA) */
.footer-nav__counter,
.footer-nav__counter span { color: #161616; }
:root { --t-muted--dark: #8c8c8c; }
