/* ==========================================================================
   AUBE — LP-SERV-001 / collage-studio
   Single-page · muted editorial studio theme
   --------------------------------------------------------------------------
   01. Fonts          08. Process
   02. Tokens         09. Clients
   03. Reset & base   10. Contact & form
   04. Utilities      11. Footer
   05. Buttons        12. Motion
   06. Header         13. Responsive
   07. Mosaic & intro
   ========================================================================== */

/* 01. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

/* 02. Tokens --------------------------------------------------------------- */
:root {
  --bg: #E8E3D9;
  --bg-deep: #DCD5C6;
  --tile-sand: #D5CEC1;
  --tile-olive: #6F6F5E;
  --tile-stone: #BFB6A6;
  --tile-pale: #E3DCD0;
  --ink: #1F1D1A;
  --ink-soft: #474439;
  --muted: #6B6558;
  --muted-dim: #8C8577;
  --line: rgba(31, 29, 26, 0.16);
  --line-strong: rgba(31, 29, 26, 0.32);
  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --shell: 1280px;
  --gutter: 44px;
  --pad: 112px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 03. Reset & base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.1;
  color: var(--ink);
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--tile-olive); color: var(--bg); }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* 04. Utilities ------------------------------------------------------------ */
.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.sec-head { margin-bottom: 58px; }
.sec-head__k {
  display: block;
  margin-bottom: 22px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec-title {
  font-size: clamp(1.95rem, 3.6vw, 3.15rem);
  line-height: 1.08;
}

/* 05. Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn--solid {
  background: var(--ink);
  color: var(--bg);
}
.btn--solid:hover { background: #35322B; }
.btn--line:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn--wide { width: 100%; }

/* 06. Header --------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
              border-color 0.4s var(--ease);
}
.site-header.is-stuck {
  padding: 12px 0;
  background: rgba(232, 227, 217, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}
.site-header__inner > .brand { justify-self: start; }

.brand { display: inline-grid; gap: 3px; }
.brand__word {
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ink);
}
.brand__sub {
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { justify-self: center; display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 34px; }
.nav__link {
  position: relative;
  padding: 5px 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right 0.35s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { right: 0; }
.nav__foot { display: none; }

.site-header__aside {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-link {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: border-color 0.3s var(--ease);
}
.header-link:hover { border-bottom-color: var(--ink); }
.burger { display: none; }

/* 07. Mosaic --------------------------------------------------------------- */
.mosaic {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 74px;
}

.mosaic__grid {
  flex: 0 0 auto;
  height: min(104vh, 960px);
  min-height: 480px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
}

.tile {
  position: relative;
  overflow: hidden;
  background: var(--tile-sand);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) contrast(0.96) brightness(1.03) sepia(0.08);
}

.tile--olive { background: var(--tile-olive); }
.tile--sand { background: var(--tile-pale); }

.tile--note {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 8% 10%;
  background: var(--tile-stone);
  color: var(--ink);
}
.tile__quote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 21px);
  line-height: 1.42;
  letter-spacing: -0.005em;
}
.tile__quote-sub {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.tile--mark {
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  background: var(--tile-pale);
}
.tile__mark {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.tile__mark-sub {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.mosaic__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.mosaic__bar-mid { color: var(--ink-soft); }
.mosaic__scroll {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.mosaic__scroll svg {
  width: 9px;
  height: 20px;
  animation: nudge 2.8s var(--ease) infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* Intro -------------------------------------------------------------------- */
.intro {
  padding: calc(var(--pad) - 12px) 0 var(--pad);
  border-bottom: 1px solid var(--line);
}
.intro__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.intro__statement {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 26ch;
}
.intro__body p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.intro__note {
  margin-top: 22px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10px !important;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

/* Work --------------------------------------------------------------------- */
.work { padding: var(--pad) 0; }
.work__list { border-top: 1px solid var(--line-strong); }
.work__row {
  display: grid;
  grid-template-columns: 70px 1fr 1.5fr 40px;
  gap: 26px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}
.work__row:hover {
  background: rgba(255, 255, 255, 0.22);
  padding-left: 10px;
}
.work__year {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.work__client {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.2;
  color: var(--ink);
}
.work__what {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.work__arrow {
  justify-self: end;
  color: var(--ink);
  opacity: 0.4;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.work__arrow svg { width: 24px; height: 12px; }
.work__row:hover .work__arrow { opacity: 1; transform: translateX(4px); }

/* 08. Services ------------------------------------------------------------- */
.services {
  padding: var(--pad) 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.services__head { position: sticky; top: 110px; }
.services__note {
  margin-top: 26px;
  max-width: 32ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}
.services__list { border-top: 1px solid var(--line-strong); }
.service {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.service__num {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-top: 5px;
}
.service__name {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 7px;
}
.service p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* 09. Process -------------------------------------------------------------- */
.process { padding: var(--pad) 0; }
.process__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.step {
  display: flex;
  flex-direction: column;
  padding: 32px 32px 0 0;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: 0; padding-right: 0; }
.step__num {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 20px;
}
.step__name {
  font-size: 23px;
  margin-bottom: 12px;
}
.step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 32ch;
}
.step__meta {
  margin-top: auto;
  padding-top: 20px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* Clients ------------------------------------------------------------------ */
.clients {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clients__inner {
  display: flex;
  align-items: center;
  gap: 52px;
}
.clients__label {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.clients__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 44px;
}
.clients__list li {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-soft);
}

/* 10. Contact -------------------------------------------------------------- */
.contact { padding: var(--pad) 0; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact__copy p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 42ch;
}
.contact__copy .sec-title { margin-bottom: 24px; }

.contact__details {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}
.contact__details div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.contact__details dt {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.contact__details dd {
  font-size: 13.5px;
  color: var(--ink);
  text-align: right;
}
.contact__details a { border-bottom: 1px solid var(--line-strong); }
.contact__details a:hover { border-bottom-color: var(--ink); }

.form { padding: 0; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.field { display: block; margin-bottom: 26px; min-width: 0; }
.field__label {
  display: block;
  margin-bottom: 9px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__input {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 400;
  transition: border-color 0.3s var(--ease);
}
.field__input::placeholder { color: var(--muted-dim); }
.field__input:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field__input--area { resize: vertical; min-height: 88px; }
.field__input--select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 10px) 19px, calc(100% - 5px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 22px;
}
.field__error {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: #8E3B2F;
}
.field.has-error .field__input { border-bottom-color: #8E3B2F; }

.form .btn { margin-top: 4px; }
.form__note {
  margin: 13px 0 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.form__success {
  margin: 16px 0 0;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.3);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink);
}

/* 11. Footer --------------------------------------------------------------- */
.site-footer {
  padding-top: 68px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1fr;
  gap: 44px;
  padding-bottom: 52px;
}
.site-footer__brand p {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}
.site-footer__col h2 {
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer__col li {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}
.site-footer__col a { transition: color 0.25s var(--ease); }
.site-footer__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.site-footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom p:last-child { text-align: right; }
.site-footer__mark {
  font-family: var(--serif);
  font-size: 26px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--ink);
  line-height: 1;
}

/* 12. Motion --------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* 13. Responsive ----------------------------------------------------------- */
@media (max-width: 1180px) {
  :root { --gutter: 34px; --pad: 96px; }
  .site-footer__top { grid-template-columns: 1.3fr 1fr 1fr; }
  .site-footer__col:last-child { display: none; }
  .services__head { position: static; }
}

@media (max-width: 1024px) {
  .mosaic { min-height: 0; }
  .mosaic__grid { height: min(96vh, 820px); }
  .intro__grid { grid-template-columns: 1fr; gap: 32px; }
  .intro__statement { max-width: 30ch; }
  .work__row { grid-template-columns: 56px 1fr 1.3fr 30px; gap: 18px; }
  .services__grid { grid-template-columns: 1fr; gap: 36px; }
  .process__list { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 0; }
  .step:last-child { border-bottom: 0; }
  .step__meta { padding-top: 14px; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --pad: 80px; }

  .site-header__inner { grid-template-columns: 1fr auto; }
  .header-link { display: none; }
  .burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 38px;
    height: 34px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line-strong);
    cursor: pointer;
  }
  .burger span {
    display: block;
    width: 15px;
    height: 1px;
    margin-inline: auto;
    background: var(--ink);
    transition: transform 0.3s var(--ease);
  }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 96px var(--gutter) 44px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { display: grid; gap: 0; }
  .nav__link {
    display: block;
    padding: 16px 0;
    font-family: var(--serif);
    font-size: 27px;
    letter-spacing: 0;
    text-transform: none;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__foot { display: block; margin-top: 32px; }
  .nav__foot .btn { width: 100%; }

  .mosaic { padding-top: 68px; }
  .mosaic__bar-mid { display: none; }
  .work__row { grid-template-columns: 44px 1fr 28px; }
  .work__what { display: none; }
  .clients__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 620px) {
  :root { --gutter: 20px; --pad: 64px; }

  body { font-size: 15px; }
  .mosaic { min-height: 0; }
  .mosaic__grid {
    height: auto;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
  }
  .tile { aspect-ratio: 1 / 1; }
  .tile--mark { grid-column: 1 / -1; aspect-ratio: auto; min-height: 180px; }
  .mosaic__grid .tile:nth-child(9) { display: none; }
  .tile__mark { font-size: 34px; }
  .mosaic__bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .mosaic__scroll { display: none; }

  .intro__statement { font-size: 1.4rem; }
  .work__row { grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 0; }
  .work__arrow { display: none; }
  .service__name { font-size: 19px; }
  .step__name { font-size: 20px; }

  .contact__details div { flex-direction: column; gap: 4px; }
  .contact__details dd { text-align: left; }

  .site-footer { padding-top: 52px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 26px; }
  .site-footer__col:last-child { display: block; }
  .site-footer__bottom { grid-template-columns: 1fr; gap: 8px; }
  .site-footer__bottom p:last-child { text-align: left; }
  .site-footer__mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mosaic__scroll svg { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
