/* Textile references, a quieter type scale and distinct roles for each section. */
:root { --craft-paper: #f1efea; --craft-ink: #2c302b; --craft-muted: #535b50; --craft-rule: #d8d6cd; --craft-brass: #a18e6b; }
.view-home .home-hero h1 { max-width: 810px; }
.view-home .collections-section { padding-block: 96px 106px; }
.view-home .collections-section .section-heading { margin-bottom: 38px; }
.view-home .collection-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px 26px; }
.view-home .collection-item { grid-column: span 3; }
.view-home .collection-item:nth-child(-n+2) { grid-column: span 6; }
.view-home .collection-item__image { position: relative; aspect-ratio: 1.25; background: #f4f3ef; }
.view-home .collection-item:nth-child(-n+2) .collection-item__image { aspect-ratio: 1.75; }
.view-home .collection-item__image > :is(img, svg) { padding: 4%; }
.view-home .collection-item h3 { font-size: 1.25rem; }
.view-home .collection-item:nth-child(-n+2) h3 { font-size: 1.5rem; }
.view-home .factory-feature { background: #ecebe5; color: var(--craft-ink); }
.view-home .factory-feature .eyebrow, .view-home .factory-feature p { color: var(--craft-muted); }
.view-home .factory-feature :is(h2, a) { color: var(--craft-ink); }
.view-home .factory-feature .factory-meetings-preview > div > p { color: var(--craft-muted); }
.view-home .factory-feature h2 { font-size: clamp(38px, 4.2vw, 62px); }
.view-home .factory-feature .section { padding-block: 84px 60px; }
.view-home .factory-feature__foot, .view-home .factory-meetings-preview { border-color: #d0d0c6; }
.view-home .factory-meetings-preview { gap: 40px; padding-top: 28px; margin-top: 30px; }
.view-home .factory-meetings-preview h2 { font-size: 2rem; margin-bottom: 12px; }
.view-home .factory-meetings-preview .eyebrow { margin-bottom: 12px; }
.view-home .client-references--compact { padding-block: 46px 55px; }
.client-references--compact .section-heading { align-items: center; gap: 36px; margin-bottom: 22px; }
.client-references--compact .section-heading .eyebrow { display: none; }
.client-references--compact .section-heading h2 { font-size: clamp(1.75rem, 2.5vw, 2.375rem); }
.client-references--compact .section-heading > p { max-width: 435px; font-size: var(--type-body); line-height: 1.65; }
.client-references--compact .client-logo-grid { padding-block: 12px; }

.craft-studio { background: var(--craft-paper); color: var(--craft-ink); }
.craft-studio > .section { padding-block: 80px 42px; }
.craft-studio .section-heading { align-items: end; margin-bottom: 40px; }
.craft-studio .section-heading h2 { font-size: clamp(35px, 3.5vw, 52px); }
.craft-studio__intro { max-width: 330px; padding-bottom: 3px; }
.craft-studio__intro > p { font-size: var(--type-body); color: var(--craft-muted); line-height: 1.65; margin: 0; }
.craft-studio .custom-studio__tabs { border-color: #cfcdc2; }
.craft-studio .custom-studio__tabs a { padding-block: 18px; font-size: var(--type-label); font-weight: 600; }
.craft-studio .custom-studio__tabs a[aria-selected="true"] { font-weight: 700; }
.craft-studio .custom-studio__panel { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(36px, 6vw, 90px); padding-block: 38px 32px; }
.craft-studio .custom-studio__panel--text-only { grid-template-columns: 1fr; }
.craft-studio .custom-studio__panel--text-only .custom-studio__copy { max-width: 720px; }
.custom-studio__photograph { min-width: 0; margin: 0; }
.craft-photo-stage { position: relative; aspect-ratio: 1.4; overflow: hidden; background: #e8e5dd; }
.craft-photo-stage.craft-photo-stage--matched { aspect-ratio: 7 / 5; }
.craft-photo-stage .craft-detail, .craft-photo-stage .detail-photo-image { width: 100%; height: 100%; display: block; aspect-ratio: auto; }
.craft-photo-stage .detail-photo-image > :is(img, svg) { display: block; width: 100%; height: 100%; object-fit: cover; }
.craft-photo-stage .detail-photo-expand { display: none; }
.craft-detail:focus-visible { outline: 2px solid var(--craft-ink); outline-offset: -3px; }
.craft-photo-stage--product { background: #fff; }
.craft-photo-stage--product .detail-photo-image { padding: 4%; }
.craft-photo-stage--product .detail-photo-image > :is(img, svg) { object-fit: contain; }
.craft-annotation { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 9px; max-width: calc(100% - 40px); padding: 8px 12px; font-size: var(--type-caption); line-height: 1.5; background: #fffffff0; color: #34382f; pointer-events: none; }
.craft-annotation > span { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--craft-brass); }
.craft-reference { display: flex; gap: 16px; align-items: center; padding: 16px 0 0; }
.craft-reference__image { width: 66px; height: 66px; flex-shrink: 0; background: #fff; }
.craft-reference__image > :is(img, svg) { width: 100%; height: 100%; object-fit: contain; }
.craft-reference > div { min-width: 0; }
.craft-reference > div > span { display: block; font-size: var(--type-caption); letter-spacing: .04em; color: var(--craft-muted); margin-bottom: 4px; }
.craft-reference__name { display: inline-flex; gap: 14px; align-items: center; font-size: var(--type-label); font-weight: 600; line-height: 1.5; }
.craft-reference p { font-size: var(--type-caption); line-height: 1.6; color: var(--craft-muted); margin: 3px 0 0; }
.craft-studio .custom-studio__copy { max-width: 420px; }
.craft-studio .custom-studio__copy .eyebrow { color: var(--craft-muted); }
.craft-studio .custom-studio__copy h3 { font-size: clamp(1.875rem, 2.8vw, 2.625rem); line-height: 1.15; margin: 14px 0 23px; }
.craft-studio .custom-studio__copy > p:not(.eyebrow) { font-size: var(--type-body); line-height: 1.65; color: var(--craft-muted); }
.craft-studio .custom-studio__copy li { font-size: var(--type-label); padding-block: 11px; border-color: var(--craft-rule); }
.craft-studio .custom-studio__copy .section-link { margin-top: 10px; }
.craft-studio .custom-studio__foot { border-color: #cfcdc2; padding-top: 20px; }
.craft-studio .custom-studio__foot > p { font-size: var(--type-caption); line-height: 1.65; color: var(--craft-muted); margin: 0; }

.view-home .home-selection { padding-block: 92px 80px; }
.home-selection .product-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 0 clamp(30px, 5vw, 74px); }
.home-selection .product-card__image { position: relative; }
:is(.product-card__hover-scene, .collection-item__hover-scene) { display: none; }
@media (hover: hover) and (pointer: fine) {
  :is(.product-card__hover-scene, .collection-item__hover-scene) {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #f5f5f1;
    opacity: 0;
    pointer-events: none;
  }
  :is(.product-card__hover-scene, .collection-item__hover-scene) > :is(img, svg) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .collection-item__hover-scene > img {
    object-fit: contain;
    object-position: center;
  }
  .product-card__image:hover > .product-card__hover-scene,
  .collection-item:hover .collection-item__hover-scene { opacity: 1; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.product-card__hover-scene, .collection-item__hover-scene) { transition: opacity .22s ease; }
}
.home-selection .product-card:first-child { grid-column: 1; grid-row: 1 / span var(--selection-rows, 5); }
.home-selection .product-card:first-child .product-card__image { aspect-ratio: 1.07; }
.home-selection .product-card:first-child .product-card__body { padding-top: 24px; }
.home-selection .product-card:first-child h2 { font-size: 28px; }
.home-selection .product-card:not(:first-child) { grid-column: 2; display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 22px; align-items: center; padding: 18px 0; border-top: 1px solid var(--craft-rule); }
.home-selection .product-card:not(:first-child) .product-card__image { aspect-ratio: 1; }
.home-selection .product-card:not(:first-child) .product-card__body { padding: 0; }
.home-selection .product-card:not(:first-child) .product-card__meta { margin-bottom: 7px; }
.home-selection .product-card:not(:first-child) h2 { font-size: 1.3125rem; max-width: none; }
.home-selection .product-card:not(:first-child) .product-card__material { margin-top: 6px; }
.home-selection .product-card:not(:first-child) .product-card__link { margin-top: 8px; padding-bottom: 0; }
.customer-project-note { display: grid; grid-template-columns: .9fr 1fr auto; align-items: center; gap: 36px; border-block: 1px solid var(--craft-rule); padding-block: 30px; }
.customer-project-note .eyebrow { margin-bottom: 10px; font-size: 9px; }
.customer-project-note h2 { font-size: 21px; letter-spacing: -.02em; line-height: 1.4; }
.customer-project-note > p { font-size: 12px; color: var(--craft-muted); margin: 0; max-width: 420px; }
.customer-project-note > a { font-size: 11px; }
.view-home .home-journal { padding-block: 66px 72px; }
.home-journal .section-heading h2 { font-size: 30px; }
.home-journal .section-heading { margin-bottom: 30px; }
.home-journal .journal-grid { gap: 30px; }
.home-journal .journal-card__image { aspect-ratio: 1.85; margin-bottom: 20px; }
.journal-card__image { overflow: hidden; }
.journal-card__image > img { object-fit: cover; }
.home-journal .journal-card h3 { font-size: 23px; line-height: 1.3; margin-bottom: 12px; }
.home-journal .journal-card > .eyebrow { margin-bottom: 12px; }
.buyer-faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(36px, 7vw, 110px); border-top: 1px solid var(--craft-rule); }
.buyer-faq .section-heading { display: block; margin: 0; }
.buyer-faq .section-heading h2 { font-size: 35px; }
.buyer-faq .section-heading > p { margin-top: 24px; max-width: 330px; }
.buyer-faq .faq-list { max-width: none; margin: 0; }
.buyer-faq summary { font-size: var(--type-body); font-weight: 600; padding-block: 20px; }
.project-starter { background: #2d3931; }
.project-starter h2 { font-size: clamp(32px, 3.6vw, 51px); line-height: 1.12; }
.project-starter .container { padding-block: 70px; }
.project-starter p:not(.eyebrow) { font-size: var(--type-body); max-width: 420px; }

.oem-opening { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 6vw, 88px); padding-top: 62px; }
.oem-opening .page-intro { padding-block: 30px; }
.oem-opening h1 { font-size: clamp(42px, 4.8vw, 70px); line-height: 1.08; margin-bottom: 30px; }
.oem-opening .lead { max-width: 480px; }
.oem-order-note { font-size: var(--type-caption); margin: 24px 0; color: var(--craft-muted); }
.oem-opening figure > :is(img, svg) { display: block; width: 100%; height: auto; }
.oem-opening figcaption { font-size: var(--type-caption); color: var(--craft-muted); padding-top: 12px; }
.view-oem .process-list h3 { font-size: 27px; }
.view-oem .process-list p { font-size: var(--type-body); line-height: 1.65; max-width: 530px; }
.view-oem .process-list > li { padding-block: 30px; }
.view-product .product-page > .section > .section-heading h2 { font-size: clamp(30px, 3vw, 43px); }
.view-product .product-closing { background: #f1efea; color: var(--craft-ink); }
.view-product .product-closing h2 { font-size: clamp(34px, 4vw, 55px); }
.view-product .product-closing .eyebrow, .view-product .product-closing > p { color: var(--craft-muted); }
.site-footer { margin-top: 0; }
.site-footer .footer-top { background: #f1efea; color: var(--craft-ink); padding-block: 42px; border-bottom: 1px solid var(--craft-rule); }
.site-footer .footer-top h2 { font-size: 31px; }
.site-footer .footer-top .eyebrow { color: var(--craft-muted); margin-bottom: 10px; }
.site-footer .footer-top .button { background: var(--craft-ink); border-color: var(--craft-ink); color: white; }

@media (max-width: 1000px) {
  .view-home .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .view-home .collection-item, .view-home .collection-item:nth-child(-n+2) { grid-column: auto; }
  .view-home .collection-item__image, .view-home .collection-item:nth-child(-n+2) .collection-item__image { aspect-ratio: 1.3; }
  .view-home .collection-item h3, .view-home .collection-item:nth-child(-n+2) h3 { font-size: 1.25rem; }
  .home-selection .product-card:not(:first-child) { grid-template-columns: 82px minmax(0, 1fr); gap: 16px; padding-block: 15px; }
  .home-selection .product-card:not(:first-child) .product-card__meta > span:first-child { display: none; }
  .home-selection .product-card:not(:first-child) h2 { font-size: 1.1875rem; }
  .customer-project-note { grid-template-columns: 1fr 1fr; gap: 20px 30px; }
  .customer-project-note > a { grid-column: 2; justify-self: start; }
  .oem-opening h1 { font-size: 47px; }
}
@media (max-width: 767px) {
  .view-home .collections-section, .view-home .home-selection { padding-block: 58px; }
  .view-home .collection-grid { gap: 26px 16px; }
  .view-home .collection-item h3, .view-home .collection-item:nth-child(-n+2) h3 { font-size: 1.125rem; }
  .view-home .factory-feature .section { padding-block: 56px 35px; }
  .view-home .factory-feature h2 { font-size: 36px; }
  .view-home .factory-meetings-preview h2 { font-size: 1.75rem; }
  .client-references--compact .section-heading { display: block; }
  .client-references--compact .section-heading > p { margin-top: 14px; }
  .craft-studio > .section { padding-block: 52px 28px; }
  .craft-studio .section-heading { display: block; margin-bottom: 24px; }
  .craft-studio .section-heading h2 { font-size: 34px; }
  .craft-studio__intro { max-width: none; margin-top: 23px; }
  .craft-studio .custom-studio__tabs a { margin: 0; padding-block: 14px; }
  .craft-studio .custom-studio__panel { grid-template-columns: 1fr; gap: 30px; padding-block: 26px; }
  .craft-photo-stage { aspect-ratio: 1.2; }
  .craft-annotation { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
  .craft-reference { gap: 12px; }
  .craft-reference__image { width: 56px; height: 56px; }
  .craft-studio .custom-studio__copy { max-width: none; }
  .craft-studio .custom-studio__foot { gap: 18px; }
  .home-selection .product-grid { grid-template-columns: 1fr; gap: 0; }
  .home-selection .product-card:first-child { grid-column: auto; grid-row: auto; margin-bottom: 30px; }
  .home-selection .product-card:first-child h2 { font-size: 25px; }
  .home-selection .product-card:not(:first-child) { grid-column: auto; grid-template-columns: 88px minmax(0, 1fr); padding-block: 18px; }
  .home-selection .product-card:not(:first-child) .product-card__meta > span:first-child { display: inline; }
  .customer-project-note { grid-template-columns: 1fr; gap: 16px; padding-block: 26px; }
  .customer-project-note > a { grid-column: auto; justify-self: start; }
  .view-home .home-journal { padding-block: 50px; }
  .home-journal .section-heading h2 { font-size: 29px; }
  .home-journal .journal-grid { gap: 35px; }
  .home-journal .journal-card__image { aspect-ratio: 1.85; }
  .buyer-faq { grid-template-columns: 1fr; gap: 28px; }
  .buyer-faq .section-heading h2 { font-size: 32px; }
  .buyer-faq .section-heading > p { margin-top: 18px; max-width: 350px; }
  .buyer-faq summary { padding-block: 19px; }
  .project-starter .container { padding-block: 52px; }
  .project-starter h2 { font-size: 36px; }
  .oem-opening { grid-template-columns: 1fr; gap: 20px; padding-top: 30px; }
  .oem-opening .page-intro { padding-bottom: 10px; }
  .oem-opening h1 { font-size: clamp(37px, 10vw, 53px); }
  .site-footer .footer-top h2 { font-size: 28px; }
}

/* Quote actions and WhatsApp use the same proportions throughout the site. */
:is(.main-navigation > .header-enquiry, .home-hero .button-row > :is(.button--light, .text-link), .product-actions > .product-quote,
    .product-actions > .product-whatsapp, .product-closing > .button, .site-footer .footer-top .button,
    .project-starter__form > .button, .quote-form > .button, .quote-contact-actions > a,
    .factory-film-details .button-row > .section-link, .catalogue-intro > .catalogue-download) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-inline-size: 100%;
  min-block-size: var(--action-height, 50px);
  padding: 10px var(--action-padding, 17px);
  border: 1px solid var(--action-border, #344237);
  border-radius: 4px;
  background: var(--action-background, #344237);
  color: var(--action-color, #fff);
  font: 600 var(--action-size, var(--type-label))/1.3 var(--sans);
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;

  &:hover:not(:disabled) {
    background: var(--action-hover-background, #26362c);
    border-color: var(--action-hover-border, #26362c);
    color: var(--action-color, #fff);
    text-decoration: none;
  }

  &:focus-visible {
    outline: 2px solid var(--action-focus, #344237);
    outline-offset: 3px;
  }

  & > svg { flex: none; }
  &:disabled { opacity: .65; cursor: wait; }
}

.main-navigation > .header-enquiry {
  flex: none;
  --action-height: 44px;
  --action-padding: clamp(10px, 1.1vw, 15px);
  --action-size: .875rem;
}

:is(.product-whatsapp, .quote-contact-actions > a, .factory-film-details .button-row > .section-link, .catalogue-intro > .catalogue-download) {
  --action-background: #f8f9f5;
  --action-border: #76877a;
  --action-color: #2d4637;
  --action-hover-background: #e8efe7;
  --action-hover-border: #52745e;
}

.catalogue-intro > .catalogue-download {
  --action-height: 44px;
  margin-block-start: 18px;
}

.home-hero .button-row > .button--light {
  --action-background: #fff;
  --action-border: #fff;
  --action-color: #25302b;
  --action-hover-background: #e7eae4;
  --action-hover-border: #e7eae4;
  --action-focus: white;
}

.home-hero .button-row > .text-link {
  --action-background: transparent;
  --action-border: #ffffffcc;
  --action-hover-background: #ffffff26;
  --action-hover-border: white;
  --action-focus: white;
}

@media (max-width: 650px) {
  .home-hero .button-row > :is(.button--light, .text-link) { justify-content: space-between; }
}

.project-starter__form > .button {
  --action-background: #f2efe4;
  --action-border: #f2efe4;
  --action-color: #24382e;
  --action-hover-background: #fff;
  --action-hover-border: #fff;
  --action-focus: #f2efe4;
}

.product-actions { align-items: stretch; gap: 10px 12px; }
.product-actions .product-quote { flex: 0 1 auto; width: auto; min-width: 0; margin: 0; }
.product-actions > .product-whatsapp > svg { width: 18px; height: 18px; }

.quote-contact-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  max-inline-size: 340px;
}

.quote-aside .quote-contact-actions > :is(.quote-contact-email, .quote-direct-whatsapp) {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  min-block-size: 54px;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: start;
}

.quote-contact-actions > a > span:last-child { justify-self: start; }

.quote-contact-icon {
  display: grid;
  place-items: center;
  inline-size: 32px;
  block-size: 32px;
  border-radius: 6px;
  background: #e5eee4;
}

.quote-contact-icon > svg { width: 17px; height: 17px; }

@media (max-width: 480px) {
  .product-actions > :is(.product-quote, .product-whatsapp) { flex: 1 1 100%; }
}
