:root {
  color-scheme: dark;
  --marl-ink: #050505;
  --marl-paper: #f5f5f2;
  --marl-muted: #a3a39d;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  caret-color: transparent;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #000;
  color: var(--marl-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
}

::selection {
  background: var(--marl-paper);
  color: #000;
}

:where(a, button, summary):focus-visible {
  border-radius: 2px;
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
textarea,
[contenteditable="true"] {
  caret-color: auto;
}

input::placeholder,
textarea::placeholder {
  color: #999993;
  opacity: 1;
}

.m-acc {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
}

.js .m-acc {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .44s cubic-bezier(.4, 0, .2, 1), opacity .32s ease;
}

.js .m-acc[data-open="true"] {
  grid-template-rows: 1fr;
  opacity: 1;
}

.m-acc > div {
  min-height: 0;
  overflow: hidden;
}

.m-acc-ico {
  transition: transform .38s cubic-bezier(.22, .61, .24, 1);
}

button[data-open="true"] .m-acc-ico {
  transform: rotate(45deg);
}

.m-faq-btn:hover {
  color: #3a3a35 !important;
}

.m-burger {
  position: relative;
  display: flex;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 3px;
  background: transparent;
  transition: border-color .2s, background .2s;
}

.m-burger:hover {
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .05);
}

.m-burger span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--marl-paper);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}

.m-burger span:nth-child(1) {
  transform: translate(-50%, -3.5px);
}

.m-burger span:nth-child(2) {
  transform: translate(-50%, 3.5px);
}

.m-burger[data-open="true"] span:nth-child(1) {
  transform: translate(-50%, 0) rotate(45deg);
}

.m-burger[data-open="true"] span:nth-child(2) {
  transform: translate(-50%, 0) rotate(-45deg);
}

.m-price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

.m-grain {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22140%22%20height%3D%22140%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.8%22%20numOctaves%3D%222%22%20stitchTiles%3D%22stitch%22/%3E%3C/filter%3E%3Crect%20width%3D%22140%22%20height%3D%22140%22%20filter%3D%22url(%23n)%22%20opacity%3D%220.55%22/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes sheen {
  0%, 55% { transform: translateX(-90%); }
  90%, 100% { transform: translateX(90%); }
}

@keyframes menuIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.m-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 3px;
  background: var(--marl-paper);
  color: var(--marl-ink);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-72px);
  transition: transform .2s ease;
}

.m-skip-link:focus {
  color: var(--marl-ink);
  transform: translateY(0);
}

.m-desktop-nav {
  display: block;
}

.m-mobile-nav {
  display: none;
}

html:not(.js) #site-header {
  position: relative !important;
}

html:not(.js) #site-header > div {
  height: auto !important;
  min-height: 72px;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  flex-wrap: wrap;
}

html:not(.js) .m-lang-btn {
  display: none !important;
}

html:not(.js) .m-lang-menu {
  position: static !important;
  display: flex !important;
  min-width: 0 !important;
  flex-flow: row wrap !important;
  box-shadow: none !important;
}

#site-header.is-scrolled {
  background: rgba(7, 7, 7, .88) !important;
  border-bottom-color: rgba(255, 255, 255, .09) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
}

#site-header.menu-is-open {
  z-index: 210 !important;
  background: transparent !important;
  border-bottom-color: transparent !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

#m-menu[hidden] {
  display: none !important;
}

#m-menu {
  overflow-y: auto;
  overscroll-behavior: contain;
}

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

.m-menu-close {
  position: absolute;
  top: 18px;
  right: clamp(20px, 5vw, 56px);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0 0 4px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: rgba(255, 255, 255, .03);
  color: var(--marl-paper);
  font: 300 34px/1 "Geist", system-ui, sans-serif;
  cursor: pointer;
}

.m-menu-close:hover {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .08);
}

a[data-hover],
button[data-hover],
[data-hover] {
  transition: filter .2s ease, transform .2s ease, opacity .2s ease;
}

a[data-hover]:hover,
button[data-hover]:hover {
  filter: brightness(1.16);
}

[data-hover]:not(a):not(button):hover {
  filter: brightness(1.025);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--marl-paper) !important;
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px rgba(245, 245, 242, .18);
}

[aria-invalid="true"] {
  border-color: #cf9d96 !important;
}

.m-field-error {
  min-height: 1.25em;
}

.m-contact-success:focus {
  outline: none;
}

.m-lang-menu a[aria-current="page"],
.m-lang-mobile a[aria-current="page"] {
  color: #fff !important;
  font-weight: 600;
}

.m-lang-menu a:focus-visible,
.m-lang-mobile a:focus-visible {
  background: rgba(255, 255, 255, .08);
}

section:not(#top) {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* Code-native previews for the two clearly labelled concept projects. */
.m-work-preview {
  isolation: isolate;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #111;
  color: #fff;
}

.m-work-preview::before,
.m-work-preview::after {
  position: absolute;
  display: block;
  pointer-events: none;
}

#marl-work-1-desktop {
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(239, 223, 195, .12) 8% 8.2%, transparent 8.2% 92%, rgba(239, 223, 195, .12) 92% 92.2%, transparent 92.2%),
    radial-gradient(circle at 77% 37%, rgba(200, 151, 94, .58) 0 14%, transparent 14.5%),
    linear-gradient(135deg, #17130f 0 48%, #302115 48% 72%, #11100d 72%);
}

#marl-work-1-desktop::before {
  content: "ATELIER\A NORD";
  z-index: 2;
  top: 18%;
  left: 8%;
  white-space: pre;
  font: 600 clamp(22px, 4.4vw, 54px)/.88 Georgia, serif;
  letter-spacing: -.045em;
}

#marl-work-1-desktop::after {
  content: "LUXEMBOURG  ·  BARBER STUDIO";
  z-index: 2;
  left: 8%;
  bottom: 13%;
  color: #d7bd97;
  font: 500 clamp(7px, 1vw, 11px)/1.2 "IBM Plex Mono", monospace;
  letter-spacing: .14em;
}

#marl-work-1-mobile {
  background:
    radial-gradient(circle at 50% 28%, rgba(205, 157, 99, .72) 0 16%, transparent 16.5%),
    linear-gradient(155deg, #2d2016, #0c0b09 72%);
}

#marl-work-1-mobile::before {
  content: "A\A N";
  inset: 47% 0 auto;
  white-space: pre;
  text-align: center;
  font: 600 22px/.85 Georgia, serif;
}

#marl-work-1-mobile::after {
  content: "BOOK";
  right: 16%;
  bottom: 9%;
  left: 16%;
  padding: 5px 0;
  border: 1px solid rgba(255, 255, 255, .42);
  text-align: center;
  font: 500 6px/1 "IBM Plex Mono", monospace;
  letter-spacing: .18em;
}

#marl-work-2-desktop {
  background:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
    radial-gradient(circle at 77% 56%, transparent 0 14%, #c44736 14.5% 15.5%, transparent 16%),
    linear-gradient(145deg, #151515, #272727 58%, #0b0b0b);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

#marl-work-2-desktop::before {
  content: "STUDIO\A FERRO";
  z-index: 2;
  top: 17%;
  left: 8%;
  white-space: pre;
  font: 700 clamp(22px, 4.5vw, 55px)/.86 Arial, sans-serif;
  letter-spacing: -.065em;
}

#marl-work-2-desktop::after {
  content: "BRUSSELS  ·  PRIVATE TATTOO";
  z-index: 2;
  left: 8%;
  bottom: 13%;
  color: #d36759;
  font: 500 clamp(7px, 1vw, 11px)/1.2 "IBM Plex Mono", monospace;
  letter-spacing: .14em;
}

#marl-work-2-mobile {
  background:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
    radial-gradient(circle at 50% 29%, transparent 0 15%, #c44736 15.5% 17%, transparent 17.5%),
    #151515;
  background-size: 18px 18px, 18px 18px, auto, auto;
}

#marl-work-2-mobile::before {
  content: "F";
  inset: 45% 0 auto;
  text-align: center;
  font: 700 28px/1 Arial, sans-serif;
}

#marl-work-2-mobile::after {
  content: "FLASH";
  right: 16%;
  bottom: 9%;
  left: 16%;
  padding: 5px 0;
  border: 1px solid rgba(255, 255, 255, .42);
  text-align: center;
  font: 500 6px/1 "IBM Plex Mono", monospace;
  letter-spacing: .18em;
}

@media (max-width: 879px) {
  .js .m-desktop-nav {
    display: none;
  }

  .js .m-mobile-nav {
    display: block;
  }

  html:not(.js) .m-desktop-nav {
    width: 100%;
  }

  html:not(.js) .m-desktop-nav nav {
    flex-wrap: wrap;
  }
}

@media (min-width: 600px) {
  .m-price-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1060px) {
  .m-price-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 780px) {
  .m-hero-art {
    top: 58% !important;
    right: auto !important;
    left: 50% !important;
    width: min(154vw, 600px) !important;
    height: min(62vh, 540px) !important;
    opacity: .16 !important;
    transform: translate(-50%, -50%) !important;
  }
}

@media (max-width: 600px) {
  #contact input,
  #contact select,
  #contact textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 430px) {
  .m-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .m-hero-cta > a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  section:not(#top) {
    contain-intrinsic-size: auto 1100px;
  }
}

/* Keep compact mono labels readable against their section backgrounds. */
:is(#services, #process, #ai, #studio, #faq) [style*="color:#8a8a83"],
:is(#services, #process, #ai, #studio, #faq) [style*="color:#75756e"] {
  color: #5f5f59 !important;
}

:is(#m-menu, #top, #work, #pricing, #care, #contact, footer) [style*="color:#6c6c66"],
:is(#m-menu, #top, #work, #pricing, #care, #contact, footer) [style*="color:#6e6e69"],
:is(#m-menu, #top, #work, #pricing, #care, #contact, footer) [style*="color:#7f7f79"],
:is(#m-menu, #top, #work, #pricing, #care, #contact, footer) [style*="color:#75756e"] {
  color: #9a9a94 !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  header,
  #m-menu,
  .m-hero-art,
  .m-grain {
    display: none !important;
  }

  section {
    content-visibility: visible;
  }
}
