/* Épuré: Swiss grid. Signature details: full-bleed photo first, headline and details on a two-column
   grid, small sentence-case labels, square corners, photos that wipe open as you scroll. */

body[data-style="epure"] {
  font-size: 1rem;
  line-height: 1.6;

  & h1,
  & h2,
  & h3 {
    font-weight: 500;
    letter-spacing: -0.025em;
  }

  & .h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    line-height: 1.05;
  }

  & .section-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 4rem;
    max-width: none;
    padding-top: 1.25rem;
    border-top: 1px solid color-mix(in srgb, var(--c-text) 18%, transparent);
  }

  & .section-head .h2 {
    margin: 0;
  }

  & .section-head p {
    margin: 0;
    font-size: 1rem;
    color: color-mix(in srgb, var(--c-text) 70%, transparent);
  }

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

  & .btn {
    border-radius: 0;
    padding: 0.8rem 1.3rem;
    font-weight: 500;
    font-size: 0.95rem;
  }

  & .btn--ghost {
    border-width: 1px;
  }

  & .btn:hover {
    filter: brightness(1.12);
  }

  /* Header: a wordmark, small navigation */
  & .hdr__mark {
    display: none;
  }

  & .hdr__name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  & .hdr__nav a {
    font-size: 0.95rem;
    color: color-mix(in srgb, var(--c-text) 70%, transparent);
  }

  & .hdr__nav a:hover {
    color: var(--c-text);
  }

  & .hdr__phone {
    padding: 0.55rem 0.95rem;
  }

  /* Hero: the photograph first, edge to edge, then headline and details on the grid */
  & .hero__inner {
    grid-template-columns: 1.4fr 1fr;
    grid-template-areas:
      "media media"
      "kicker kicker"
      "title lead"
      "title actions"
      "title badges";
    gap: 1.25rem 4rem;
    padding-bottom: clamp(3rem, 7vw, 5.5rem);
  }

  & .hero__media {
    grid-area: media;
    width: 100vw;
    margin: 0 0 clamp(1.5rem, 4vw, 3rem) calc(50% - 50vw);
  }

  & .hero__media img {
    height: clamp(320px, 64vh, 700px);
  }

  & .hero__kicker {
    grid-area: kicker;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 0.95rem;
    color: color-mix(in srgb, var(--c-text) 70%, transparent);
  }

  & .hero__kicker::before {
    content: "";
    width: 2.5rem;
    height: 1px;
    background: currentColor;
  }

  & .hero__title {
    grid-area: title;
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    letter-spacing: -0.035em;
  }

  & .hero__lead {
    grid-area: lead;
    font-size: 1.1rem;
    color: color-mix(in srgb, var(--c-text) 78%, transparent);
  }

  & .hero__actions {
    grid-area: actions;
  }

  & .hero__badges {
    grid-area: badges;
    flex-direction: column;
    gap: 0;
    font-size: 0.92rem;
  }

  & .hero__badges li {
    padding-block: 0.55rem;
    border-top: 1px solid color-mix(in srgb, var(--c-text) 15%, transparent);
  }

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

    & .hero__media img {
      height: 52vh;
    }
  }

  /* Services */
  & .svc__grid {
    gap: 2.5rem 1.5rem;
  }

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

  & .svc__body {
    padding-top: 1rem;
  }

  & .svc--cards .svc__item {
    padding-top: 1.1rem;
    border-top: 1px solid var(--c-text);
  }

  & .svc__title {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  & .svc__item p {
    font-size: 0.95rem;
    color: color-mix(in srgb, var(--c-text) 72%, transparent);
  }

  & .svc__price {
    display: block;
    margin-top: 0.6rem;
    font-weight: 600;
    color: var(--c-accent);
  }

  /* Steps */
  & .steps__list {
    gap: 1.5rem;
  }

  & .steps__item {
    padding-top: 1rem;
    border-top: 1px solid var(--c-text);
  }

  & .steps__num {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--c-accent);
  }

  & .steps__item h3 {
    font-size: 1.2rem;
  }

  /* Gallery: a strict grid, captions as small print */
  & .gal {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1rem;
  }

  & .gal--2,
  & .gal--4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  & .gal__item {
    overflow: visible;
  }

  & .gal__item img {
    aspect-ratio: 4 / 3;
  }

  /* Twice as wide as its neighbours, same height */
  & .gal--5 .gal__item:first-child img {
    aspect-ratio: 8 / 3;
  }

  & .gal__cap {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--c-text) 65%, transparent);
  }

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

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

    & .gal--5 .gal__item:first-child img {
      aspect-ratio: 4 / 3;
    }
  }

  /* About */
  & .about__media img {
    aspect-ratio: 4 / 5;
  }

  & .about__facts {
    gap: 1rem;
  }

  & .about__facts div {
    padding-top: 0.8rem;
    border-top: 1px solid var(--c-text);
  }

  & .about__facts dd {
    font-weight: 500;
    letter-spacing: -0.03em;
  }

  & .about__facts dt {
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--c-text) 65%, transparent);
  }

  /* Testimonials: plain quotes on the grid */
  & .tst__stars {
    color: var(--c-accent);
  }

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

  & .tst__item {
    padding-top: 1.25rem;
    border-top: 1px solid var(--c-text);
  }

  & .tst__item blockquote p {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
  }

  & .tst__item figcaption span {
    color: color-mix(in srgb, var(--c-text) 65%, transparent);
  }

  /* Menu */
  & .menu__cat h3 {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--c-text);
    font-size: 1.3rem;
  }

  & .menu__dots {
    border-bottom: 0;
  }

  & .menu__item {
    border-bottom: 1px solid color-mix(in srgb, var(--c-text) 12%, transparent);
  }

  & .menu__price {
    font-weight: 600;
  }

  /* FAQ */
  & .faq__list summary {
    font-weight: 500;
  }

  /* Call to action */
  & .cta .h2 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
  }

  /* Contact */
  & .contact__phone {
    font-weight: 500;
    letter-spacing: -0.02em;
  }

  & .contact__list svg {
    color: var(--c-accent);
  }

  & .contact__area li {
    border: 1px solid color-mix(in srgb, var(--c-text) 22%, transparent);
  }

  & .contact__form input,
  & .contact__form textarea {
    border-color: transparent;
    background: var(--c-bg);
  }

  & .contact__form input:focus,
  & .contact__form textarea:focus {
    border-color: var(--c-text);
  }

  /* Footer */
  & .ftr {
    background: var(--c-primary);
    color: var(--c-on-primary);
  }

  & .ftr__name {
    font-weight: 500;
  }

  & .ftr__bottom {
    border-top: 1px solid color-mix(in srgb, var(--c-on-primary) 18%, transparent);
  }

  /* Motion: photos wipe open from the top, text stays still */
  html.js & .reveal img {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  html.js & .reveal.is-visible img {
    clip-path: inset(0);
  }
}
