/* =========================================================
   Mparch site styles (from Mockup/index.html).
   Classes start with "mp-" so they never clash with Bootstrap,
   which is still loaded for the login and account pages.
   ========================================================= */

/* =========================================================
   DESIGN TOKENS: change colors, fonts and spacing here
   ========================================================= */
:root {
  /* Colors */
  --color-bg: #f5f1ea;                          /* warm off-white page background */
  --color-bg-header: rgba(245, 241, 234, 0.94); /* header background after scrolling */
  --color-text: #1f1c19;                        /* main text */
  --color-muted: #6b645c;                       /* secondary text */
  --color-line: #d9d2c7;                        /* thin dividers */
  --color-accent: #a8502f;                      /* terracotta accent */
  --color-accent-hover: #8c4126;
  --color-on-accent: #f5f1ea;                   /* text on accent backgrounds */
  --color-dark: #1f1c19;                        /* dark section background */
  --color-on-dark: #f5f1ea;                     /* text on dark backgrounds */
  --color-on-dark-muted: rgba(245, 241, 234, 0.68);
  --color-placeholder: #d6d0c7;                 /* gray box when no image is uploaded */
  --color-placeholder-dark: #3b3732;            /* same, on dark backgrounds */

  /* Fonts */
  --font-serif: "Noto Serif Display", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1360px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-space: clamp(5rem, 11vw, 9.5rem);
  --header-h: 7.5rem;
  --header-h-scrolled: 5rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =========================================================
   BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.mp-menu-open { overflow: hidden; }

h1, h2, h3, p, figure, blockquote, ul, ol, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

[id] { scroll-margin-top: var(--header-h-scrolled); }

.mp-container {
  width: min(100% - 2 * var(--gutter), var(--max-width));
  margin-inline: auto;
}

.mp-section { padding-block: var(--section-space); }

/* Pages other than the homepage (login, terms, ...) */
.mp-page {
  min-height: 60vh;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: var(--section-space);
}

.mp-skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.875rem;
}
.mp-skip-link:focus { top: 1rem; color: var(--color-bg); }

/* Small uppercase label used above headings */
.mp-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Images uploaded from the admin panel fill their box; the gray box stands in until one is set */
.mp-img,
.mp-ph {
  display: block;
  width: 100%;
  height: 100%;
}
.mp-img { object-fit: cover; }
.mp-ph { background: var(--color-placeholder); }
.mp-ph--dark { background: var(--color-placeholder-dark); }

/* Buttons */
.mp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border: 1px solid currentColor;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.mp-btn__arrow { transition: transform 0.3s var(--ease); }
.mp-btn:hover .mp-btn__arrow { transform: translateX(4px); }

.mp-btn--outline { color: var(--color-text); }
.mp-btn--outline:hover {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-bg);
}

.mp-btn--accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}
.mp-btn--accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-on-accent);
}

/* Section heading row: title on the left, optional button/text on the right */
.mp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.mp-section-title {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 5vw, 4rem);
}
/* Section titles on the homepage («Επιλεγμένα έργα», «Υπηρεσίες»): a little smaller than page headings */
.mp-section-head .mp-section-title { font-size: clamp(1.85rem, 3.3vw, 2.75rem); }
.mp-section-head__text {
  max-width: 24rem;
  color: var(--color-muted);
}

/* Words wrapped in *asterisks* in the admin panel */
.mp-hero__title em,
.mp-intro__title em,
.mp-section-title em,
.mp-cta__title em {
  font-style: italic;
  color: var(--color-accent);
}

/* =========================================================
   SCROLL FADE-IN (toggled by IntersectionObserver in mparch.js)
   ========================================================= */
.js .mp-reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .mp-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   1. HEADER
   ========================================================= */
.mp-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
}

/* Background layer that fades in on scroll. It lives on a pseudo-element so
   the blur doesn't trap the fixed mobile overlay inside the header. */
.mp-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-bg-header);
  border-bottom: 1px solid var(--color-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.mp-header.is-scrolled::before { opacity: 1; }

.mp-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height 0.4s var(--ease);
}
.mp-header.is-scrolled .mp-header__inner { height: var(--header-h-scrolled); }

.mp-logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}
.mp-logo__dot { color: var(--color-accent); }
.mp-logo__img {
  display: block;
  flex: none;
  width: auto;
  height: 4.5rem;
  max-width: 12rem;
  object-fit: contain;
  transition: height 0.4s var(--ease);
}
/* Name and tagline written next to the monogram (header) or under it (footer) */
.mp-logo__text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 1.1rem;
  padding-left: 1.1rem;
  border-left: 1px solid var(--color-line);
}
/* Clean sans-serif capitals with wide spacing, so the name reads clearly at small sizes */
.mp-logo__name {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text);
  white-space: nowrap;
}
.mp-logo__tagline {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  white-space: nowrap;
}
/* After scrolling the header gets shorter, and the logo with it */
.mp-header.is-scrolled .mp-logo__img { height: 3.25rem; }

.mp-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.75rem, 3vw, 3rem);
}
.mp-nav__list {
  display: flex;
  gap: clamp(1.75rem, 3vw, 3rem);
}
.mp-nav__list a {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* Thin underline that grows on hover */
.mp-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.mp-nav__list a:hover::after { transform: scaleX(1); }

/* Language switcher (EL / EN) */
.mp-lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
}
.mp-lang__btn {
  padding: 0.25rem 0.35rem;
  border: 0;
  background: none;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.mp-lang__btn + .mp-lang__btn::before {
  content: "/";
  margin-right: 0.6rem;
  color: var(--color-line);
}
.mp-lang__btn:hover,
.mp-lang__btn.is-active { color: var(--color-text); }

/* Hamburger button (mobile only) */
.mp-nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.mp-nav-toggle__bar {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: currentColor;
  transition: top 0.35s var(--ease), transform 0.35s var(--ease);
}
.mp-nav-toggle__bar:nth-child(1) { top: 17px; }
.mp-nav-toggle__bar:nth-child(2) { top: 26px; }
.mp-menu-open .mp-nav-toggle__bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.mp-menu-open .mp-nav-toggle__bar:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* =========================================================
   2. HERO
   ========================================================= */
.mp-hero {
  padding-top: calc(var(--header-h) + 0.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
/* The section right after the image starts a bit closer to it */
.mp-hero + .mp-section { padding-top: clamp(4rem, 7.5vw, 6.5rem); }

/* The image: a long strip (3.5:1) across the page */
.mp-hero__media { margin: 0; }
.mp-hero__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 7 / 2;
  width: 100%;
}
.mp-hero__frame .mp-img,
.mp-hero__frame .mp-ph {
  position: absolute;
  inset: 0;
}

/* Logo and texts on the image: real text, sized from the image's height (cqh) so the layout
   keeps the design's proportions on every screen, with minimum sizes for small screens */
.mp-hero__frame--overlay { container-type: size; }
.mp-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 4cqh;
  color: var(--color-text);
  text-align: center;
  line-height: 1;
  pointer-events: none;
}
.mp-hero__overlay-logo {
  display: block;
  height: 41cqh;
  width: auto;
}
.mp-hero__overlay-title,
.mp-hero__overlay-subtitle,
.mp-hero__overlay-text {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
/* letter-spacing also adds space after the last letter; the negative margin keeps each line centred */
.mp-hero__overlay-title {
  margin-top: 3.6cqh;
  font-size: max(17px, 8cqh);
  letter-spacing: 0.37em;
  margin-right: -0.37em;
}
.mp-hero__overlay-subtitle {
  margin-top: 2.6cqh;
  font-size: max(9.5px, 3.9cqh);
  letter-spacing: 0.28em;
  margin-right: -0.28em;
}
.mp-hero__overlay-text {
  margin-top: 8.5cqh;
  font-size: max(9.5px, 3.9cqh);
  letter-spacing: 0.4em;
  margin-right: -0.4em;
}
.mp-hero__caption {
  margin-top: 0.85rem;
  color: var(--color-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: right;
}

/* Under the image, one below the other: label, title, text, then the link (plain text, no box) */
.mp-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.mp-hero__title {
  max-width: 18ch;
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  line-height: 1.06;
}
.mp-hero__text {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--color-muted);
}
/* The link looks like «Διαβάστε περισσότερα» (.mp-more), just closer to the label */
.mp-hero .mp-hero__more { margin-top: 1.25rem; }

/* =========================================================
   3. INTRO / ABOUT
   ========================================================= */
.mp-intro__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}
.mp-intro__label { grid-column: 1 / span 3; }
.mp-intro__body { grid-column: 5 / -1; }

.mp-intro__title {
  font-size: clamp(1.5rem, 2.7vw, 2.3rem);
  line-height: 1.22;
}
.mp-intro__text {
  max-width: 38rem;
  margin-top: 2rem;
  color: var(--color-muted);
}

/* Works for any number of stats added in the admin panel */
.mp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-line);
}
.mp-stat__number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 300;
  line-height: 1;
}
.mp-stat__label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

/* =========================================================
   4. PROJECTS (side by side, equal picture heights, title under each)
   ========================================================= */
.mp-projects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(1rem, 1.6vw, 1.5rem);
  row-gap: clamp(3rem, 5vw, 4.5rem);
  align-items: start;
}
/* A wide card takes two of the four columns; narrow cards take one */
.mp-project--wide { grid-column: span 2; }

.mp-project__link { display: block; }

.mp-project__media {
  overflow: hidden;
  height: clamp(16rem, 32vw, 30rem);   /* same height for every picture in a row */
}
.mp-project__media .mp-img,
.mp-project__media .mp-ph { transition: transform 1.2s var(--ease); }
.mp-project:hover .mp-img,
.mp-project:hover .mp-ph,
.mp-project__link:focus-visible .mp-img,
.mp-project__link:focus-visible .mp-ph { transform: scale(1.05); }

/* Under the picture: title in spaced capitals, short text, then «Είδος | Έτος» */
.mp-project__meta { margin-top: 1.5rem; }
.mp-project__title {
  font-family: var(--font-sans);   /* same clear capitals as the logo name */
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.3s var(--ease);
}
a.mp-project__link:hover .mp-project__title { color: var(--color-accent); }
.mp-project__text {
  display: -webkit-box;
  max-width: 40rem;
  margin-top: 0.9rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;   /* at most three lines, like a preview */
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
.mp-project__info {
  display: block;
  margin-top: 0.9rem;
  color: var(--color-muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* =========================================================
   5. SERVICES (numbered list)
   ========================================================= */
.mp-services { border-top: 1px solid var(--color-line); }

.mp-service {
  display: grid;
  grid-template-columns: 2fr 4fr 6fr;
  gap: var(--gutter);
  align-items: baseline;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--color-line);
}
.mp-service__number {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--color-accent);
}
.mp-service__title {
  font-family: var(--font-sans);   /* same clear capitals as the project titles and the logo name */
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--color-text);
  transition: transform 0.4s var(--ease);
}
.mp-service:hover .mp-service__title { transform: translateX(0.5rem); }
.mp-service__text {
  max-width: 32rem;
  color: var(--color-muted);
}

/* =========================================================
   6. TESTIMONIALS (dark; more than one = slider)
   ========================================================= */
.mp-testimonial {
  background: var(--color-dark);
  color: var(--color-on-dark);
}
.mp-testimonial .mp-eyebrow { color: var(--color-on-dark-muted); }

/* All slides share one grid cell, so the section keeps the height of the tallest */
.mp-testimonial__slides { display: grid; }
.mp-testimonial__slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.mp-testimonial__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease), visibility 0s;
}

.mp-testimonial__media { aspect-ratio: 4 / 5; }

.mp-testimonial__quote p {
  margin-top: 1.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 3.2vw, 2.75rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
}
.mp-testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 241, 234, 0.2);
}
.mp-testimonial__name {
  font-size: 0.9375rem;
  font-weight: 600;
}
.mp-testimonial__role {
  font-size: 0.8125rem;
  color: var(--color-on-dark-muted);
}

.mp-testimonial__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.mp-testimonial__arrow {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(245, 241, 234, 0.35);
  border-radius: 50%;
  background: none;
  color: var(--color-on-dark);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.mp-testimonial__arrow:hover {
  background: var(--color-on-dark);
  border-color: var(--color-on-dark);
  color: var(--color-dark);
}
.mp-testimonial__count {
  min-width: 3.5rem;
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--color-on-dark-muted);
}

/* =========================================================
   7. CALL TO ACTION
   ========================================================= */
.mp-cta { text-align: center; }
.mp-cta__title {
  max-width: 14ch;
  margin: 1.5rem auto 3rem;
  font-size: clamp(3rem, 10vw, 8.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* =========================================================
   8. FOOTER
   ========================================================= */
.mp-footer {
  padding-top: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--color-line);
  font-size: 0.9375rem;
}
.mp-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gutter);
}
/* In the footer the logo is stacked: monogram on top, name and tagline centered under it */
.mp-footer .mp-logo {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.mp-footer .mp-logo__img { height: 6.5rem; max-width: 100%; }
.mp-footer .mp-logo__text {
  align-items: center;
  gap: 0.55rem;
  margin: 1.1rem 0 0;
  padding: 0;
  border: 0;
}
.mp-footer .mp-logo__name { font-size: 0.95rem; }
.mp-footer .mp-logo__tagline { font-size: 0.75rem; }
.mp-footer__tagline {
  max-width: 18rem;
  margin-top: 1rem;
  color: var(--color-muted);
}
.mp-footer__heading { margin-bottom: 1.25rem; }
.mp-footer__list li + li { margin-top: 0.4rem; }
.mp-footer__list a { transition: color 0.3s var(--ease); }
.mp-footer__list a:hover { color: var(--color-accent); }

.mp-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(4rem, 8vw, 6rem);
  padding-block: 1.75rem;
  border-top: 1px solid var(--color-line);
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.mp-footer__bottom a:hover { color: var(--color-text); }

/* =========================================================
   SEPARATE PAGES (/about, /services, /projects, /contact)
   ========================================================= */
.mp-pagehead {
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: 0;
}
.mp-pagehead__intro,
.mp-pagehead__text {
  max-width: 46rem;
  margin-top: 1.75rem;
  color: var(--color-muted);
}
.mp-pagebody { padding-top: clamp(3rem, 6vw, 5rem); }
/* A page with nothing under its heading (e.g. Terms, Privacy) still needs space above the footer */
.mp-pagehead:last-child { padding-bottom: var(--section-space); }

/* Section «Κείμενο»: free text in the width of a reading column */
.mp-textblock {
  max-width: 46rem;
  color: var(--color-muted);
}
.mp-section-title + .mp-textblock { margin-top: 1.75rem; }

/* Footer: links to Terms of use and Privacy policy */
.mp-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.mp-footer__legal a:hover { color: var(--color-text); }

/* Text written in the admin panel's text editor */
.mp-rich > * + * { margin-top: 0.9em; }
/* Headings inside page texts (e.g. the sections of Terms / Privacy): same clear capitals as the service titles */
.mp-rich h2,
.mp-rich h3,
.mp-rich h4 {
  margin-top: 2.2em;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--color-text);
}
.mp-rich strong,
.mp-rich b { font-weight: 600; color: var(--color-text); }
.mp-rich ul,
.mp-rich ol { padding-left: 1.25em; }
.mp-rich ul { list-style: disc; }
.mp-rich ol { list-style: decimal; }
.mp-rich a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 0.15em; }

/* "Read more" link at the end of a homepage section */
.mp-more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}
.mp-more:hover { color: var(--color-accent); }
.mp-more:hover .mp-btn__arrow { transform: translateX(4px); }
/* «View all» beside a section title: same link style, lined up with the title */
.mp-section-head .mp-section-head__more { margin-top: 0; margin-bottom: 0.6rem; flex: none; }

/* =========================================================
   PROJECT PAGE (/projects/{name}): text, then all the photos
   ========================================================= */
.mp-project-page__back {
  display: inline-flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}
.mp-project-page__back:hover { color: var(--color-accent); }
.mp-project-page__info { display: block; }
.mp-project-page .mp-pagehead__intro { max-width: 40rem; }

/* Photos in three columns that keep each photo's own shape */
.mp-gallery {
  columns: 3;
  column-gap: clamp(0.75rem, 1.4vw, 1.25rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.mp-gallery__item {
  display: block;
  overflow: hidden;
  margin-bottom: clamp(0.75rem, 1.4vw, 1.25rem);
  break-inside: avoid;
  background: var(--color-placeholder);
  cursor: zoom-in;
}
.mp-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.2s var(--ease);
}
.mp-gallery__item:hover img,
.mp-gallery__item:focus-visible img { transform: scale(1.03); }

/* Full-screen photo view */
.mp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4.5rem;
  background: rgba(24, 21, 19, 0.94);
}
.mp-lightbox[hidden] { display: none; }
.mp-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
}
.mp-lightbox__close,
.mp-lightbox__arrow {
  position: absolute;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f3efe9;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s var(--ease);
}
.mp-lightbox__close:hover,
.mp-lightbox__arrow:hover { opacity: 1; }
.mp-lightbox__close { top: 0.75rem; right: 0.75rem; font-size: 2rem; }
.mp-lightbox__arrow--prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.mp-lightbox__arrow--next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
.mp-lightbox__count {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(243, 239, 233, 0.75);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}
body.mp-lightbox-open { overflow: hidden; }

/* Contact details on /contact */
.mp-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-line);
}
.mp-contact__heading { margin-bottom: 1.25rem; }
.mp-contact .mp-footer__list a:hover { color: var(--color-accent); }

/* =========================================================
   RESPONSIVE: everything stacks into one column below 900px
   ========================================================= */
@media (max-width: 899.98px) {
  :root { --header-h: 5.5rem; --header-h-scrolled: 4.25rem; }
  .mp-header .mp-logo__img { height: 3.25rem; }
  .mp-header.is-scrolled .mp-logo__img { height: 2.6rem; }
  .mp-header .mp-logo__text { margin-left: 0.75rem; padding-left: 0.75rem; }
  .mp-header .mp-logo__name { font-size: 0.85rem; letter-spacing: 0.16em; }
  .mp-header .mp-logo__tagline { font-size: 0.66rem; letter-spacing: 0.1em; }

  /* Header: hamburger + full-screen overlay */
  .mp-nav-toggle { display: block; }

  .mp-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
    background: var(--color-bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .mp-menu-open .mp-nav {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s var(--ease), visibility 0s;
  }
  .mp-nav__list {
    flex-direction: column;
    gap: 0.75rem;
  }
  .mp-nav__list li {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .mp-menu-open .mp-nav__list li { opacity: 1; transform: none; }
  .mp-menu-open .mp-nav__list li:nth-child(2) { transition-delay: 0.06s; }
  .mp-menu-open .mp-nav__list li:nth-child(3) { transition-delay: 0.12s; }
  .mp-menu-open .mp-nav__list li:nth-child(4) { transition-delay: 0.18s; }
  .mp-menu-open .mp-nav__list li:nth-child(n+5) { transition-delay: 0.24s; }
  .mp-nav__list a {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 10vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
  }
  .mp-nav__list a::after { display: none; }
  .mp-lang__btn { font-size: 0.875rem; }

  /* Hero */
  .mp-hero { padding-top: calc(var(--header-h) + 1rem); }
  .mp-hero__frame { aspect-ratio: 2 / 1; }   /* less wide on phones, so the logo in the image stays readable */

  /* Section heads */
  .mp-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Intro */
  .mp-intro__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .mp-intro__label,
  .mp-intro__body { grid-column: auto; }
  .mp-stats { grid-template-columns: 1fr; gap: 1.75rem; }

  /* Projects */
  /* Projects: two columns (a wide card fills the row) */
  .mp-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .mp-project__media { height: clamp(14rem, 50vw, 24rem); }

  /* Services */
  .mp-service {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .mp-service:hover .mp-service__title { transform: none; }

  /* Testimonials */
  .mp-testimonial__slide { grid-template-columns: 1fr; }
  .mp-testimonial__controls { justify-content: flex-start; }

  /* Contact page */
  .mp-contact { grid-template-columns: 1fr; }

  /* Footer */
  .mp-footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .mp-footer__bottom { flex-direction: column; }
}

/* Tablets: project photos in two columns */
@media (max-width: 899.98px) {
  .mp-gallery { columns: 2; }
  .mp-lightbox { padding: 3.5rem 0.75rem; }
  .mp-lightbox__arrow { top: auto; bottom: 0.25rem; transform: none; }
}

/* Phones: projects one under the other */
@media (max-width: 559.98px) {
  .mp-gallery { columns: 1; }
  .mp-projects { grid-template-columns: 1fr; }
  .mp-project--wide { grid-column: auto; }
  .mp-project__media { height: auto; aspect-ratio: 4 / 3; }
}

/* Very narrow phones: a smaller header logo, so the menu button keeps its room */
@media (max-width: 389.98px) {
  .mp-header .mp-logo__img { height: 2.75rem; }
  .mp-header.is-scrolled .mp-logo__img { height: 2.3rem; }
  .mp-header .mp-logo__text { margin-left: 0.55rem; padding-left: 0.55rem; gap: 0.4rem; }
  .mp-header .mp-logo__name { font-size: 0.74rem; letter-spacing: 0.12em; }
  .mp-header .mp-logo__tagline { font-size: 0.6rem; letter-spacing: 0.06em; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .mp-reveal { opacity: 1; transform: none; }
  .mp-project:hover .mp-img,
  .mp-project:hover .mp-ph { transform: none; }
}
