/* Audacieux: a street poster. Signature details: thick ink borders, hard offset shadows,
   extra-wide type, a sticker on the photo, a scrolling band of selling points. */

body[data-style="audacieux"] {
  --ink: var(--c-text);
  --line: 3px solid var(--ink);
  --drop: 6px 6px 0 var(--ink);

  /* Print grain, lighter than the Atelier paper */
  &::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0.3;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  }

  & h1,
  & h2 {
    font-weight: 900;
    font-stretch: 125%;
    text-transform: uppercase;
    letter-spacing: -0.01em;
  }

  & h3 {
    font-weight: 800;
    font-stretch: 110%;
  }

  & .h2 {
    display: inline;
    font-size: clamp(1.8rem, 4.2vw, 3.1rem);
    line-height: 1.15;
    background: linear-gradient(transparent 60%, var(--c-accent) 60%, var(--c-accent) 92%, transparent 92%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }

  & .section-head .h2 + p {
    margin-top: 1.25rem;
  }

  & .btn {
    border: var(--line);
    border-radius: 0;
    box-shadow: 4px 4px 0 var(--ink);
    font-weight: 800;
    font-stretch: 105%;
    text-transform: uppercase;
    letter-spacing: 0.01em;
  }

  & .btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
  }

  & .btn:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--ink);
  }

  & .btn--ghost {
    background: var(--c-surface);
    color: var(--ink);
  }

  /* Header */
  & .hdr {
    border-bottom: var(--line);
    background: var(--c-surface);
  }

  & .hdr__mark {
    border: var(--line);
    background: var(--c-accent);
    color: var(--c-on-accent);
    font-family: var(--font-heading);
    font-weight: 900;
    font-stretch: 120%;
    transform: rotate(-4deg);
  }

  & .hdr__name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 850;
    font-stretch: 112%;
    text-transform: uppercase;
    line-height: 1.1;
  }

  & .hdr__nav a {
    padding: 0.25rem 0.5rem;
    font-weight: 700;
  }

  & .hdr__nav a:hover {
    background: var(--c-accent);
    color: var(--c-on-accent);
  }

  & .hdr__phone {
    box-shadow: 3px 3px 0 var(--ink);
  }

  /* Hero: color block with the headline, framed photo with a sticker, band of selling points below */
  & .hero {
    background: var(--c-primary);
    color: var(--c-on-primary);
    border-bottom: var(--line);
  }

  & .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas:
      "title media"
      "lead media"
      "actions media";
    align-content: center;
    padding-block: clamp(3rem, 6vw, 5rem);
    gap: 1.5rem 3.5rem;
  }

  & .hero__title {
    grid-area: title;
    align-self: end;
    font-size: clamp(2.2rem, 4.6vw, 4rem);
    line-height: 0.95;
  }

  & .hero__lead {
    grid-area: lead;
    font-size: 1.2rem;
    font-weight: 500;
  }

  & .hero__actions {
    grid-area: actions;
    align-self: start;
  }

  & .hero .btn--accent {
    color: var(--c-on-accent);
  }

  & .hero__media {
    grid-area: media;
    border: var(--line);
    box-shadow: 10px 10px 0 var(--ink);
    background: var(--c-surface);
  }

  & .hero__media img {
    aspect-ratio: 4 / 5;
  }

  & .hero__kicker {
    grid-area: media;
    z-index: 2;
    align-self: start;
    justify-self: start;
    margin: -1.1rem 0 0 -1.4rem;
    padding: 0.55rem 0.9rem;
    border: var(--line);
    background: var(--c-accent);
    color: var(--c-on-accent);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 850;
    font-stretch: 110%;
    text-transform: uppercase;
    transform: rotate(-6deg);
    box-shadow: 4px 4px 0 var(--ink);
  }

  & .hero__badges {
    display: none;
  }

  & .hero__marquee {
    display: block;
    overflow: hidden;
    border-top: var(--line);
    background: var(--c-accent);
    color: var(--c-on-accent);
  }

  & .hero__marquee-track {
    display: flex;
    width: max-content;
    padding-block: 0.8rem;
    animation: hero-marquee 32s linear infinite;
  }

  & .hero__marquee span {
    padding-right: 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 850;
    font-stretch: 115%;
    text-transform: uppercase;
    white-space: nowrap;
  }

  & .hero__marquee span::after {
    content: "✱";
    margin-left: 2.5rem;
  }

  @media (max-width: 900px) {
    & .hero__inner {
      grid-template-columns: 1fr;
      grid-template-areas: "title" "lead" "actions" "media";
    }

    & .hero__media {
      margin: 1.5rem 0.75rem 0 0;
    }

    & .hero__kicker {
      margin: 0.25rem 0 0 -0.5rem;
    }

    & .hero__media img {
      aspect-ratio: 1 / 1;
    }
  }

  /* Services: blocks in three alternating colors */
  & .svc__item {
    border: var(--line);
    box-shadow: var(--drop);
    background: var(--c-surface);
  }

  & .svc__item:nth-child(3n + 2) {
    background: var(--c-accent);
    color: var(--c-on-accent);
  }

  & .svc__item:nth-child(3n) {
    background: var(--c-primary);
    color: var(--c-on-primary);
  }

  & .svc__media {
    border-bottom: var(--line);
  }

  & .svc__body {
    padding: 1.4rem 1.4rem 1.6rem;
  }

  & .svc--cards .svc__item {
    padding: 0.2rem 0;
  }

  & .svc__price {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.2rem 0.6rem;
    border: 2px solid currentColor;
  }

  & .svc__row {
    border-bottom: var(--line);
  }

  /* Steps */
  & .steps__num {
    display: grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    border: var(--line);
    background: var(--c-accent);
    color: var(--c-on-accent);
    box-shadow: 4px 4px 0 var(--ink);
    font-weight: 900;
    transform: rotate(-4deg);
  }

  /* Gallery: framed tiles with label captions; the first photo is the poster, the last one fills the row */
  & .gal {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: clamp(170px, 19vw, 250px);
    gap: 1.5rem;
  }

  & .gal--2 {
    grid-template-columns: 1fr 1fr;
  }

  & .gal__item img {
    aspect-ratio: auto;
  }

  & :is(.gal--4, .gal--5, .gal--6) .gal__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  & .gal--4 .gal__item:last-child {
    grid-column: span 3;
  }

  & .gal--5 .gal__item:last-child {
    grid-column: span 2;
  }

  @media (max-width: 760px) {
    & .gal {
      grid-template-columns: 1fr 1fr;
    }

    & .gal .gal__item {
      grid-column: span 1;
      grid-row: span 1;
    }

    & .gal .gal__item:first-child {
      grid-column: span 2;
    }
  }

  & .gal__item {
    border: var(--line);
    box-shadow: var(--drop);
  }

  & .gal__cap {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.3rem 0.65rem;
    border: 2px solid var(--ink);
    background: var(--c-surface);
    color: var(--ink);
    font-weight: 700;
  }

  /* About */
  & .about__media {
    border: var(--line);
    box-shadow: 10px 10px 0 var(--ink);
  }

  & .about__facts div {
    padding: 0.9rem 1rem;
    border: var(--line);
    background: var(--c-accent);
    color: var(--c-on-accent);
  }

  & .about__facts dd {
    font-weight: 900;
    font-stretch: 120%;
  }

  /* Testimonials: speech bubbles */
  & .tst__stars {
    color: var(--ink);
  }

  & .tst__list {
    gap: 2.5rem 1.75rem;
  }

  & .tst__item {
    position: relative;
    padding: 1.6rem;
    border: var(--line);
    background: var(--c-surface);
    box-shadow: var(--drop);
  }

  & .tst__item::after {
    content: "";
    position: absolute;
    left: 2rem;
    bottom: -18px;
    width: 26px;
    height: 26px;
    border-right: var(--line);
    border-bottom: var(--line);
    background: var(--c-surface);
    transform: skewX(35deg) rotate(45deg);
  }

  & .tst__item figcaption {
    margin-top: 0.5rem;
  }

  & .tst__item figcaption strong {
    font-weight: 800;
  }

  /* Menu: category names as tags */
  & .menu__cat h3 {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border: var(--line);
    background: var(--c-primary);
    color: var(--c-on-primary);
    box-shadow: 4px 4px 0 var(--ink);
    font-family: var(--font-heading);
    text-transform: uppercase;
    transform: rotate(-2deg);
  }

  & .menu__dots {
    border-bottom: 3px dotted var(--ink);
  }

  & .menu__price {
    font-weight: 800;
  }

  /* FAQ: stacked boxes */
  & .faq__list {
    display: grid;
    gap: 1rem;
  }

  & .faq__list details {
    padding-inline: 1.25rem;
    border: var(--line);
    background: var(--c-surface);
    box-shadow: 4px 4px 0 var(--ink);
  }

  & .faq__list summary::after {
    font-weight: 900;
  }

  /* Call to action */
  & .cta {
    border-block: var(--line);
    background: var(--c-accent);
    color: var(--c-on-accent);
  }

  & .cta .h2 {
    background: none;
    font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  }

  & .cta .btn--accent {
    background: var(--c-primary);
    color: var(--c-on-primary);
  }

  /* Contact */
  & .contact__phone {
    font-weight: 900;
    font-stretch: 115%;
  }

  & .contact__area li {
    border: 2px solid var(--ink);
    font-weight: 700;
  }

  & .contact__form {
    border: var(--line);
    box-shadow: var(--drop);
  }

  & .contact__form h3 {
    text-transform: uppercase;
  }

  & .contact__form input,
  & .contact__form textarea {
    border: 2px solid var(--ink);
  }

  /* Footer */
  & .ftr {
    border-top: var(--line);
    background: var(--ink);
    color: var(--c-bg);
  }

  & .ftr__name {
    font-weight: 900;
    font-stretch: 120%;
    text-transform: uppercase;
  }

  & .ftr__bottom {
    border-top: 2px solid color-mix(in srgb, var(--c-bg) 25%, transparent);
  }
}

@keyframes hero-marquee {
  to {
    transform: translateX(-50%);
  }
}
