/* QUANCO — About, Lookbook and supporting pages. Uses tokens from main.css. */

/* ------------------------------------------------------------------ About */
.about-hero { padding: calc(0px + clamp(40px, 7vw, 104px)) 0 var(--section-y); }
.about-hero__grid { display: grid; gap: 48px; }
.about-hero__title { font-size: var(--fs-h1); color: var(--green); margin-top: 20px; }
.about-hero__title .line:last-child span { color: var(--gold); }
.acronym { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.acronym__row { display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px); padding: 10px 0; border-bottom: 1px solid var(--line); }
.acronym__l { width: 1.1em; font: 700 clamp(1.8rem, 4vw, 3rem)/1 var(--font-display); font-stretch: 100%; color: var(--green); }
.acronym__row:first-child .acronym__l { color: var(--gold); }
.acronym__w { font: 700 clamp(1rem, 2vw, 1.5rem)/1.1 var(--font-display); font-stretch: 100%; text-transform: uppercase; }
@media (min-width: 900px) {
  .about-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: clamp(48px, 7vw, 120px); }
}

.origin { background: var(--green); }
.origin__grid { display: grid; gap: 40px; }
.origin__media { overflow: hidden; aspect-ratio: 718 / 1080; max-width: 480px; }
.origin__media img { width: 100%; height: 100%; object-fit: cover; }
.origin__copy { display: grid; gap: 22px; align-content: start; }
.origin__copy .h2 { color: var(--ivory); }
.origin__copy .word { display: inline-block; }
@media (min-width: 900px) {
  .origin__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
  .origin__media { position: sticky; top: calc(var(--header-h) + 24px); }
  .origin__copy { padding-top: 48px; max-width: 40rem; }
}

.signature { text-align: center; }
.signature__inner { display: grid; justify-items: center; gap: 24px; }
.signature__mark { width: 120px; height: 120px; }
.signature__title { font-size: var(--fs-h1); color: var(--green); }

.about-split__grid { display: grid; gap: 40px; align-items: center; }
.about-split__copy { display: grid; gap: 22px; }
.about-split__copy .h2 { color: var(--green); }
.about-split__media { overflow: hidden; aspect-ratio: 805 / 1080; max-width: 520px; }
.about-split__media img { width: 100%; height: 100%; object-fit: cover; }
.about-split__media--wide { aspect-ratio: auto; max-width: none; overflow: visible; }
.about-split__media--wide picture { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.beyond__statement--light { border-left-color: var(--crimson); color: var(--crimson); }
.about-ancestral { background: var(--green); }
.about-ancestral .about-split__copy .h2 { color: var(--ivory); }
.ancestral__caption--light { color: rgba(240, 235, 221, .75); }
@media (min-width: 900px) {
  .about-split__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); }
  .about-split__media { justify-self: end; }
  .about-split__grid--flip .about-split__media { justify-self: stretch; }
}

.about-values { background: var(--ivory-2); }
.about-values__title { color: var(--green); margin: 16px 0 clamp(32px, 5vw, 56px); }
.value-list { list-style: none; margin: 0; padding: 0; display: grid; }
.value-list__item { display: grid; gap: 8px; padding: 24px 0; border-top: 1px solid var(--line); }
.value-list__num { font: 700 .8rem var(--font-display); letter-spacing: .2em; color: var(--gold); }
.value-list__word { font-size: var(--fs-h3); font-stretch: 100%; text-transform: uppercase; color: var(--green); }
.value-list__word span { color: var(--gold); }
@media (min-width: 900px) {
  .value-list__item { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.4fr); align-items: baseline; gap: 32px; }
}

/* ------------------------------------------------------------------ Lookbook */
.lookbook-hero { padding: calc(0px + clamp(40px, 7vw, 96px)) 0 clamp(32px, 4vw, 56px); }
.lookbook-hero__grid { display: grid; gap: 24px; align-items: end; }
.lookbook-hero__title { font-size: var(--fs-h1); color: var(--green); margin-top: 16px; }
@media (min-width: 900px) { .lookbook-hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); } }

.gallery__btn {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--green);
  background: transparent; color: var(--green); cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast), opacity var(--t-fast);
}
.gallery__btn:hover:not(:disabled) { background: var(--green); color: var(--ivory); }
.gallery__btn:disabled { opacity: .3; cursor: default; }
.gallery__btn--light { border-color: var(--ivory); color: var(--ivory); }
.gallery__btn--light:hover:not(:disabled) { background: var(--ivory); color: var(--ink); }

.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(2, 2, 2, .96); color: var(--ivory); }
.lightbox::backdrop { background: rgba(2, 2, 2, .9); }
.lightbox__inner { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: max(12px, env(safe-area-inset-top)) var(--gutter) max(16px, env(safe-area-inset-bottom)); }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; }
.lightbox__count { font: 700 .85rem var(--font-display); letter-spacing: .18em; }
.lightbox__close {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px;
  border: 1px solid var(--line-light); border-radius: var(--radius); background: transparent; cursor: pointer;
  font: 700 .85rem var(--font-body); letter-spacing: .12em; text-transform: uppercase;
}
.lightbox__figure { margin: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; justify-items: center; padding-top: 12px; touch-action: pan-y pinch-zoom; }
.lightbox__figure img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__figure figcaption { text-align: center; opacity: .8; font-size: var(--fs-small); }
.lightbox__nav { display: flex; justify-content: center; gap: 12px; padding-top: 12px; }

.lookbook-cta { background: var(--ivory-2); padding-block: clamp(48px, 6vw, 88px); }
.lookbook-cta__inner { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
.lookbook-cta__text { display: grid; gap: 20px; justify-items: start; }
.lookbook-cta__media { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 2; }
.lookbook-cta__media picture, .lookbook-cta__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .lookbook-cta__inner { grid-template-columns: 1fr 1.15fr; } }
.lookbook-cta .h2 { color: var(--green); }

/* ------------------------------------------------------------------ Content pages */
.prose { max-width: 760px; display: grid; gap: 36px; }
.prose__block { display: grid; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose__block h2 { font-size: var(--fs-h3); color: var(--green); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.prose__pending { padding: 14px 16px; background: var(--ivory-2); border-left: 2px solid var(--gold); color: var(--ink-2); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 16px 20px;
  border: 1px solid var(--line); text-decoration: none; transition: border-color var(--t-fast), background-color var(--t-fast);
}
.contact-card:hover { border-color: var(--green); background: var(--ivory-2); }
.contact-card > span { flex: 1; display: grid; overflow-wrap: anywhere; }
.about-acronym .acronym { max-width: 820px; }

/* Lookbook masonry: columns built by lookbook.js (shortest column first), CSS columns without JS.
   On scroll, columns 1 and 3 drift up while column 2 drifts down. */
.masonry-gallery { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 96px); overflow: clip; }
.masonry { columns: 2; column-gap: 16px; }
@media (min-width: 900px) { .masonry { columns: 3; column-gap: 24px; } }
.masonry.is-built { columns: auto; display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (min-width: 900px) { .masonry.is-built { gap: 24px; } }
.masonry__col { display: grid; gap: 16px; will-change: transform; }
@media (min-width: 900px) { .masonry__col { gap: 24px; } }
.masonry__col:nth-child(even) { margin-top: clamp(40px, 8vw, 120px); }

.m-tile { position: relative; margin: 0 0 16px; break-inside: avoid; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-surface); }
.masonry.is-built .m-tile { margin: 0; }
.m-tile__open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
a.m-tile__open { cursor: pointer; }
.m-tile picture, .m-tile__img { display: block; width: 100%; height: auto; }
.m-tile__img { transition: transform 1.2s var(--ease-out); -webkit-user-drag: none; }
@media (hover: hover) { .m-tile:hover .m-tile__img { transform: scale(1.05); } }
.m-tile__zoom { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(240, 235, 221, .92); color: var(--ink); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s; }
.m-tile:hover .m-tile__zoom, .m-tile__open:focus-visible .m-tile__zoom { opacity: 1; transform: none; }
.m-tile__cap { position: absolute; inset: auto 0 0 0; display: grid; gap: 2px; padding: 48px 16px 14px; color: var(--color-ivory); background: linear-gradient(180deg, rgba(17,17,17,0) 0%, rgba(17,17,17,.78) 100%); pointer-events: none; }
.m-tile__cap strong { font: 700 clamp(.95rem, .4vw + .85rem, 1.15rem) var(--font-display); text-transform: uppercase; }
.m-tile__cap span:last-child { font-size: var(--fs-caption); opacity: .88; }
.m-tile__num { font: 700 .7rem var(--font-display); letter-spacing: .2em; color: var(--color-gold-soft); }
.m-tile--pattern { background: var(--color-black); }

.m-tile--brand { background: var(--color-green); color: var(--color-ivory); }
.m-tile__brand { display: grid; gap: 12px; justify-items: start; padding: clamp(22px, 3vw, 36px); color: inherit; text-decoration: none; }
.m-tile__brand img { width: 64px; height: auto; filter: brightness(0) invert(.94) sepia(.12); }
.m-tile__brand strong { font: 700 clamp(1.3rem, 1vw + 1rem, 1.75rem) var(--font-display); text-transform: uppercase; color: var(--color-gold-soft); }
.m-tile__brand span { font-size: var(--fs-small); opacity: .9; }
.m-tile__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-top: 4px; opacity: 1 !important; }
.m-tile__brand:hover .m-tile__link { color: var(--color-gold-soft); }
@media (max-width: 599px) { .m-tile__cap { padding: 36px 10px 10px; } .m-tile__cap span:last-child { display: none; } }

/* Content pages: left-aligned with the rest of the site, readable width */
.prose-section .container.prose { max-width: var(--container, 1280px); margin-inline: auto; display: grid; gap: 32px; }
.prose-section .prose > * { max-width: 860px; }
.prose__block { padding-top: 28px; border-top: 1px solid rgba(32,74,46,.15); }
.prose__block p { margin: 0; line-height: 1.75; }
.prose__block ul { line-height: 1.7; }
/* Size tables */
.size-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(32,74,46,.15); background: #FBF8F1; }
.size-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; }
.size-table th, .size-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(32,74,46,.1); }
.size-table thead th { background: #204A2E; color: #F0EBDD; font: 700 .78rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.size-table tbody th { font-weight: 700; color: #204A2E; }
.size-table tbody tr:nth-child(even) { background: rgba(32,74,46,.04); }
.size-table tbody tr:last-child > * { border-bottom: 0; }

/* Tables on phones: let cells wrap so 2–3 column tables fit the screen; wide size charts still scroll */
@media (max-width: 699px) {
  .size-table { width: 100%; min-width: 0 !important; font-size: .84rem; }
  .size-table th, .size-table td { white-space: normal !important; padding: 10px 10px !important; vertical-align: top; overflow-wrap: anywhere; }
  .size-table th:first-child, .size-table td:first-child { min-width: 92px; }
}
@media (max-width: 699px) {
  .size-table th, .size-table td { overflow-wrap: normal; word-break: normal; }
  .size-table thead th { font-size: .66rem; letter-spacing: .04em; padding: 10px 8px !important; }
  .size-table td, .size-table tbody th { padding: 10px 8px !important; }
  .size-table th:first-child, .size-table td:first-child { min-width: 0; }
}
