/* m.s. atelier — direct-contact home page */

body.home-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(212, 129, 58, 0.08), transparent 28rem),
    var(--bg);
}

.home-main { overflow: hidden; }
.home-section { padding: 84px 0; border-top: 1px solid var(--line); }
.home-section-alt { background: var(--bg2); }
.home-section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 38px; }
.home-section-copy { max-width: 560px; color: var(--grey); font-size: 17px; line-height: 1.75; }
.home-kicker { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 14px; }
.home-title { color: var(--cream); font-size: clamp(36px, 5vw, 68px); font-weight: 300; line-height: 1.04; letter-spacing: 0.015em; }
.home-title strong { color: var(--gold-light); font-weight: 600; }
.home-title-small { font-size: clamp(31px, 4vw, 52px); }
.home-lead { color: var(--cream2); font-size: clamp(17px, 2vw, 21px); line-height: 1.65; }
.home-muted { color: var(--grey); }

/* Hero */
.home-hero {
  position: relative;
  min-height: 780px;
  padding: 142px 0 76px;
  display: flex;
  align-items: center;
}
.home-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}
.home-hero-copy { position: relative; z-index: 2; }
.home-hero .home-title { font-size: clamp(38px, 4vw, 58px); font-weight: 300; letter-spacing: 0.025em; }
.home-hero .home-title span, .home-hero .home-title strong { display: block; white-space: nowrap; }
.home-hero .home-title strong { font-weight: 300; }
.home-hero .home-title { margin-bottom: 26px; }
.home-hero .home-lead { max-width: 660px; margin-bottom: 30px; }
.home-hero-note { color: var(--grey); font-size: 14px; margin-top: 16px; }
.home-hero-note strong { color: var(--cream2); font-weight: 400; }
.home-hero-media {
  position: relative;
  min-height: 570px;
  border: 0;
  background: transparent;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}
.home-hero-media::before {
  content: none;
}
.home-hero-media img { width: 100%; height: 100%; min-height: 570px; object-fit: cover; object-position: center 34%; opacity: 0.96; }

.home-messenger-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.home-messenger {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  color: var(--cream);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms cubic-bezier(0.23, 1, 0.32, 1), border-color 180ms cubic-bezier(0.23, 1, 0.32, 1), background 180ms cubic-bezier(0.23, 1, 0.32, 1), transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
.home-messenger:hover { color: var(--gold-light); border-color: var(--gold); }
.home-messenger:active { transform: scale(0.97); }
.home-messenger:focus-visible, .home-link:focus-visible, .home-channel-link:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.home-messenger-max { background: var(--gold); border-color: var(--gold); color: #160d07; }
.home-messenger-max:hover { background: var(--gold-light); color: #160d07; }
.home-messenger-icon {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
}
.home-messenger-icon svg { width: 14px; height: 14px; fill: currentColor; }
.home-messenger-icon-max { border: 1px solid currentColor; }
.home-max-mark {
  width: 14px;
  height: 14px;
  display: block;
  background: currentColor;
  -webkit-mask: url('../images/max-symbol.webp') center / contain no-repeat;
  mask: url('../images/max-symbol.webp') center / contain no-repeat;
}
.home-hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 36px; background: var(--line); border: 1px solid var(--line); }
.home-proof { background: var(--bg); padding: 17px 16px; }
.home-proof strong { display: block; color: var(--cream); font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.home-proof span { display: block; color: var(--grey); font-size: 12px; line-height: 1.4; }

/* Portfolio */
.home-portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 8px; gap: 12px; align-items: start; }
.home-portfolio-item { position: relative; display: block; width: 100%; overflow: hidden; background: var(--bg3); border: 0; padding: 0; }
.home-portfolio-item img { display: block; width: 100%; height: auto; object-fit: initial; transition: transform 260ms cubic-bezier(0.23, 1, 0.32, 1); }
.home-portfolio-item:hover img { transform: scale(1.015); }
.home-portfolio-grid:not(.is-expanded) .home-portfolio-item:nth-child(n + 7) { display: none; }
.home-portfolio-more { display: flex; justify-content: center; margin-top: 28px; }
.home-portfolio-toggle { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 22px; border: 1px solid var(--gold-dim); background: transparent; color: var(--gold-light); font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: color 180ms cubic-bezier(0.23, 1, 0.32, 1), border-color 180ms cubic-bezier(0.23, 1, 0.32, 1), transform 140ms cubic-bezier(0.23, 1, 0.32, 1); }
.home-portfolio-toggle:hover { color: var(--cream); border-color: var(--gold); }
.home-portfolio-toggle:active { transform: scale(0.97); }
.home-portfolio-toggle:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.home-portfolio-toggle-arrow { font-size: 18px; font-weight: 300; line-height: 1; }
.home-portfolio-empty { grid-column: 1 / -1; min-height: 250px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--grey); text-align: center; padding: 42px 24px; }
.home-channel-band {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.home-channel-band h3 { font-size: 20px; font-weight: 400; color: var(--cream); margin-bottom: 5px; }
.home-channel-band p { color: var(--grey); }
.home-channel-actions { display: grid; justify-items: start; gap: 6px; }
.home-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold-dim);
  padding: 7px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.home-channel-link:hover { color: var(--cream); }

/* About and materials */
.home-about-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 84px; align-items: start; }
.home-about-copy .home-kicker { font-size: 13px; }
.home-about-copy p { color: var(--grey); font-size: 18px; margin-top: 22px; }
.home-about-copy .home-title-small { font-size: clamp(33px, 4vw, 54px); }
.home-about-copy p strong { color: var(--cream2); font-weight: 400; }
.home-feature-list { border-top: 1px solid var(--line); }
.home-feature { display: grid; grid-template-columns: 50px 1fr; gap: 22px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.home-feature-number { color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: 0.14em; padding-top: 3px; }
.home-feature h3 { color: var(--cream); font-size: 19px; font-weight: 400; margin-bottom: 6px; }
.home-feature p { color: var(--grey); font-size: 17px; line-height: 1.65; }

/* Process */
.home-process-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
.home-process-step { min-height: 205px; padding: 30px; border-bottom: 1px solid var(--line); }
.home-process-step:nth-child(odd) { border-right: 1px solid var(--line); }
.home-process-step:nth-last-child(-n + 2) { border-bottom: 0; }
.home-process-number { color: var(--gold); font-size: 11px; letter-spacing: 0.18em; font-weight: 700; margin-bottom: 24px; }
.home-process-step h3 { color: var(--cream); font-size: 22px; font-weight: 400; margin-bottom: 10px; }
.home-process-step p { color: var(--grey); font-size: 16px; line-height: 1.7; }
.home-quick-order { margin-top: 36px; padding: 30px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; background: var(--bg3); border-left: 3px solid var(--gold); }
.home-quick-order h3 { color: var(--cream); font-size: 22px; font-weight: 400; margin-bottom: 5px; }
.home-quick-order p { color: var(--grey); }

/* Video */
.home-video-head { align-items: start; }
.home-video-intro { max-width: 560px; color: var(--grey); font-size: 16px; line-height: 1.7; }
.home-video-intro p + p { margin-top: 12px; }
.home-video-intro .home-channel-actions { margin-top: 15px; }
.home-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.home-video-card { min-width: 0; background: #050505; border: 1px solid var(--line); overflow: hidden; }
.home-video-card video { width: 100%; aspect-ratio: 9 / 16; display: block; object-fit: contain; background: #050505; }

/* Extra services */
.home-extra-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.home-extra { padding: 32px 28px; background: var(--bg); }
.home-extra-mark { color: var(--gold); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 25px; }
.home-extra h3 { color: var(--cream); font-size: 20px; font-weight: 400; margin-bottom: 10px; }
.home-extra p { color: var(--grey); line-height: 1.7; }
.home-extra a { color: var(--gold-light); }

/* Reviews */
.home-rating { display: flex; align-items: baseline; gap: 14px; margin-top: 18px; }
.home-rating strong { color: var(--cream); font-size: 50px; font-weight: 300; line-height: 1; }
.home-rating span { color: var(--grey); }
.home-reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-review { padding: 28px; border: 1px solid var(--line); background: var(--bg2); }
.home-review-stars { color: var(--gold); letter-spacing: 0.12em; margin-bottom: 17px; }
.home-review blockquote { color: var(--cream2); font-size: 16px; line-height: 1.75; }
.home-review footer { margin-top: 20px; padding: 0; border: 0; background: transparent; color: var(--grey); font-size: 13px; }
.home-reviews-link { margin-top: 28px; }

/* Blog */
.home-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-blog-card { display: block; border: 1px solid var(--line); background: var(--bg); transition: border-color 180ms cubic-bezier(0.23, 1, 0.32, 1), transform 180ms cubic-bezier(0.23, 1, 0.32, 1); }
.home-blog-card:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
.home-blog-image { aspect-ratio: 16 / 9; background: var(--bg3); overflow: hidden; }
.home-blog-image img { width: 100%; height: 100%; object-fit: cover; }
.home-blog-body { padding: 24px; }
.home-blog-date { color: var(--gold); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.home-blog-body h3 { color: var(--cream); font-size: 19px; font-weight: 400; line-height: 1.4; margin: 12px 0 8px; }
.home-blog-body p { color: var(--grey); line-height: 1.6; }
.home-blog-link { display: inline-block; color: var(--gold-light); margin-top: 18px; font-size: 13px; }

/* Contacts */
.home-contacts-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 80px; align-items: start; }
.home-contact-panel { border: 1px solid var(--line); padding: 34px; background: var(--bg); }
.home-contact-panel .home-messenger-actions { margin: 24px 0 34px; }
.home-contact-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 17px 0; border-top: 1px solid var(--line); }
.home-contact-row span { color: var(--grey); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
.home-contact-row a, .home-contact-row strong { color: var(--cream2); font-weight: 400; overflow-wrap: anywhere; }
.home-contact-row a:hover { color: var(--gold-light); }
.home-social-row { display: grid; justify-items: start; gap: 6px; margin-top: 25px; }

/* Footer and mobile dock */
.home-footer-note { color: var(--grey); font-size: 12px; max-width: 430px; }
.home-mobile-dock { display: none; }
.home-cookie-reopen { color: var(--grey); font-size: 11px; text-decoration: underline; }

@media (max-width: 980px) {
  .home-hero-grid { grid-template-columns: 1fr 0.84fr; gap: 40px; }
  .home-hero-proof { grid-template-columns: 1fr; }
  .home-about-grid, .home-contacts-grid { gap: 48px; }
  .home-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-reviews-grid, .home-blog-grid { grid-template-columns: 1fr 1fr; }
  .home-review:last-child, .home-blog-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  body.home-page { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .home-page .cookie-banner { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .container { padding-left: 20px; padding-right: 20px; }
  .home-section { padding: 58px 0; }
  .home-section-head { display: block; margin-bottom: 28px; }
  .home-section-head .home-section-copy { margin-top: 18px; }
  .home-hero { min-height: auto; padding: 104px 0 56px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-hero-media { min-height: 390px; }
  .home-hero-media img { min-height: 390px; }
  .home-hero .home-title { font-size: clamp(34px, 9.4vw, 39px); }
  .home-hero .home-lead { font-size: 17px; margin-bottom: 24px; }
  .home-messenger-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .home-messenger { min-height: 50px; padding: 10px 7px; gap: 6px; font-size: 9px; letter-spacing: 0.02em; }
  .home-messenger-icon { width: 22px; height: 22px; }
  .home-hero-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-proof { padding: 13px 10px; }
  .home-proof strong { font-size: 11px; }
  .home-proof span { font-size: 10px; }
  .home-portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 6px; gap: 8px; }
  .home-portfolio-grid:not(.is-expanded) .home-portfolio-item:nth-child(n + 5) { display: none; }
  .home-portfolio-grid.is-expanded .home-portfolio-item { display: block; }
  .home-portfolio-more { margin-top: 22px; }
  .home-channel-band, .home-quick-order { grid-template-columns: 1fr; align-items: start; }
  .home-about-grid, .home-contacts-grid { grid-template-columns: 1fr; gap: 36px; }
  .home-process-grid { grid-template-columns: 1fr; }
  .home-process-step, .home-process-step:nth-child(odd), .home-process-step:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .home-process-step:last-child { border-bottom: 0; }
  .home-extra-grid, .home-reviews-grid, .home-blog-grid { grid-template-columns: 1fr; }
  .home-review:last-child, .home-blog-card:last-child { grid-column: auto; }
  .home-contact-panel { padding: 25px 20px; }
  .home-contact-row { grid-template-columns: 1fr; gap: 5px; }
  .home-mobile-dock {
    position: fixed;
    z-index: 120;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(15, 15, 15, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }
  .home-mobile-dock a { display: grid; place-items: center; gap: 2px; min-height: 46px; color: var(--cream2); font-size: 9px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
  .home-mobile-dock a:first-child { color: var(--gold-light); }
  .home-mobile-dock svg { width: 18px; height: 18px; fill: currentColor; }
  .home-mobile-dock .home-dock-max { width: 18px; height: 18px; display: block; }
}

@media (max-width: 420px) {
  .home-hero-proof { grid-template-columns: 1fr; }
  .home-messenger span:not(.home-messenger-icon) { white-space: nowrap; }
  .home-video-grid { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-messenger, .home-portfolio-item img, .home-blog-card { transition: none; }
}
