/*
 * QDNA - the theme's one stylesheet. No libraries, nothing loaded from another domain.
 *
 * Black and warm paper with the brand red of the logo (#821827) as the one accent, Poppins with the
 * headings in capitals.
 * Every picture the editor has not uploaded yet is drawn as brushed metal (.qd-metal--<finish>).
 *
 * Breakpoints, the only two this sheet uses (theme.json declares the same): md <= 991, sm <= 767.
 * Classes are prefixed qd- ; the core prefixes its own site rules with #cmk-site.
 */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/poppins-latin-800-normal.woff2') format('woff2'); }

:root {
    --ink: #121212;
    --ink-2: #1c1c1c;
    --ink-3: #2b2b2b;
    --grey: #6b6862;
    --grey-2: #9a968e;
    --line: #dcd6cc;
    --line-dark: rgba(255, 255, 255, .14);
    --white: #fbfaf7;
    --paper: #f1ede6;
    /* the red of the QDNA logo; -2 the same red lifted for graphite (4.1:1 - large type, lines and icons
       only; small text on dark is white), -dark the pressed state */
    --accent: #821827;
    --accent-2: #d63a48;
    --accent-dark: #6a1320;
    /* the three areas of the home, one colour each on the big word and the arrow (widgets/areas.php
       picks the area from the word) */
    --area-industrial: #f2c230; /* amarelo */
    --area-artesanal: #c99a4b;  /* bronze dourado - mais quente e escuro que o amarelo */
    --area-fina: #efe4cc;       /* creme */
    --font: 'Poppins', Helvetica, Arial, sans-serif;
    --ease: cubic-bezier(.2, .7, .1, 1);
    --container: 1280px;
    --gutter: clamp(20px, 4vw, 56px);
    --header-h: 84px;
}

/* ------------------------------------------------------------------ base */

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

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

body#cmk-site, body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}
body.qd-locked { overflow: hidden; }

img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

.qd-sr, .qd-form__trap {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.qd-container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.qd-icon { flex: none; display: inline-block; vertical-align: middle; }

/* ------------------------------------------------------------------ tones & sections */

.qd-section { position: relative; padding: clamp(80px, 10vw, 140px) 0; overflow: clip; }
.qd-section--tight { padding: clamp(48px, 6vw, 80px) 0; }

.qd-tone-light { background: var(--white); color: var(--ink); }
.qd-tone-paper { background: var(--paper); color: var(--ink); }
.qd-tone-dark { background: var(--ink); color: var(--white); }

/* ------------------------------------------------------------------ type */

.qd-display, .qd-title, .qd-pagehead__title, .qd-cta__title {
    font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; margin: 0;
}
.qd-display em, .qd-title em, .qd-cta__title em, .qd-statement__text em { font-style: normal; color: var(--accent-2); }
.qd-tone-light .qd-title em, .qd-tone-paper .qd-title em, .qd-tone-light .qd-statement__text em, .qd-tone-paper .qd-statement__text em { color: var(--accent); }

.qd-title { font-size: clamp(30px, 4vw, 54px); line-height: 1.04; }
.qd-title--xl { font-size: clamp(36px, 5.4vw, 76px); line-height: 1; }

.qd-lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7; color: var(--grey); margin: 22px 0 0; max-width: 60ch; }
.qd-tone-dark .qd-lead, [data-qd-tone="dark"] .qd-lead { color: rgba(251, 250, 247, .66); }

.qd-eyebrow {
    display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
    font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--accent);
}
.qd-eyebrow__rule { width: 36px; height: 1px; background: currentColor; flex: none; }
.qd-tone-dark .qd-eyebrow, .qd-eyebrow--light { color: var(--white); }
.qd-tone-dark .qd-eyebrow__rule, .qd-eyebrow--light .qd-eyebrow__rule { background: var(--accent-2); }

.qd-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.qd-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.qd-head--row > div:first-child { max-width: 760px; }

.qd-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.qd-actions--center { justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

/* ------------------------------------------------------------------ buttons */

.qd-btn {
    display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; min-height: 52px;
    font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
    border: 1px solid transparent; border-radius: 0; cursor: pointer; position: relative; overflow: hidden;
    transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.qd-btn .qd-icon { transition: transform .35s var(--ease); }
.qd-btn:hover .qd-icon, .qd-btn:focus-visible .qd-icon { transform: translateX(4px); }
.qd-btn--sm { padding: 11px 18px; min-height: 42px; font-size: 12px; }

.qd-btn--solid { background: var(--ink); color: var(--white); }
.qd-btn--solid:hover { background: var(--accent); }
.qd-btn--light { background: var(--white); color: var(--ink); }
.qd-btn--light:hover { background: var(--accent); color: #fff; }
.qd-btn--accent { background: var(--accent); color: #fff; }
.qd-btn--accent:hover { background: var(--accent-dark); }
.qd-btn--ghost { border-color: var(--ink); color: var(--ink); }
.qd-btn--ghost:hover { background: var(--ink); color: var(--white); }
.qd-btn--ghost-light { border-color: rgba(251, 250, 247, .5); color: var(--white); }
.qd-btn--ghost-light:hover { border-color: var(--white); background: var(--white); color: var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* ------------------------------------------------------------------ reveal */

.qd-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.qd-reveal.is-in { opacity: 1; transform: none; }
html:not(.qd-js) .qd-reveal { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ brushed metal */

/*
 * A sheet of metal: a base gradient for the light falling across it, fine horizontal grain on top,
 * and a soft band of sheen that slides when its parent is hovered. The tones only change the three
 * colours, so a new finish is three lines.
 */
.qd-metal {
    --m1: #6f7378; --m2: #c9ccd0; --m3: #5e6267;
    display: block; width: 100%; height: 100%; position: relative; overflow: hidden;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 7px),
        linear-gradient(115deg, var(--m1) 0%, var(--m2) 42%, var(--m3) 58%, var(--m2) 78%, var(--m1) 100%);
}
.qd-metal::after {
    content: ''; position: absolute; inset: -20% -60%;
    background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%);
    transform: translateX(-30%); transition: transform 1.4s var(--ease);
}
:hover > .qd-metal::after, :hover > * > .qd-metal::after, .is-in .qd-metal::after { transform: translateX(30%); }

.qd-metal--steel    { --m1: #6f7378; --m2: #cfd2d6; --m3: #5b5f64; }
.qd-metal--graphite { --m1: #1d1e20; --m2: #4a4c50; --m3: #18191b; }
.qd-metal--black    { --m1: #0c0c0c; --m2: #2e2e2e; --m3: #0a0a0a; }
.qd-metal--brass    { --m1: #7f6131; --m2: #dcbd86; --m3: #8c6c39; }
.qd-metal--bronze   { --m1: #4b3420; --m2: #a57b4f; --m3: #3f2c1b; }
.qd-metal--copper   { --m1: #6d3820; --m2: #d08b60; --m3: #5e2f19; }
.qd-metal--gold     { --m1: #94742a; --m2: #ecd283; --m3: #a2822f; }
.qd-metal--corten   { --m1: #5d2a12; --m2: #ad5a2f; --m3: #4f2410; }
.qd-metal--corten {
    background:
        radial-gradient(circle at 20% 30%, rgba(40, 14, 4, .35) 0 6%, transparent 7%),
        radial-gradient(circle at 70% 65%, rgba(40, 14, 4, .28) 0 9%, transparent 10%),
        radial-gradient(circle at 45% 85%, rgba(220, 120, 60, .18) 0 7%, transparent 8%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px),
        linear-gradient(115deg, var(--m1) 0%, var(--m2) 45%, var(--m3) 100%);
}

/* ------------------------------------------------------------------ header */

.qd-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: var(--white);
    transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.qd-header__bar {
    max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
    height: var(--header-h); display: flex; align-items: center; gap: 32px;
}
.qd-header.is-solid { background: rgba(251, 250, 247, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.qd-header.is-away { transform: translateY(-100%); }

.qd-header__brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.qd-header__logo { display: none; }
.qd-header__logo--on-dark { display: flex; }
.qd-header.is-solid .qd-header__logo--on-dark { display: none; }
.qd-header.is-solid .qd-header__logo--on-light { display: flex; }
.qd-logo { height: 60px; width: auto; }

.qd-wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.qd-wordmark__name { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.qd-wordmark__tag { font-size: 8.5px; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; margin-top: 5px; opacity: .8; }

.qd-header__panel { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.qd-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.qd-nav__item { position: relative; }
.qd-nav__link {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; background: none; border: 0; cursor: pointer;
    font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; position: relative;
}
.qd-nav__link::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.qd-header:not(.is-solid) .qd-nav__link::after { background: var(--accent-2); }
.qd-nav__link:hover::after, .qd-nav__link[aria-current="page"]::after, .qd-nav__item.has-current > .qd-nav__link::after { transform: scaleX(1); }
.qd-nav__sub {
    position: absolute; top: 100%; left: 0; min-width: 260px; padding: 10px 0; background: var(--ink); color: var(--white);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: .3s var(--ease);
}
.qd-nav__sub ul { list-style: none; margin: 0; padding: 0; }
.qd-nav__sub a { display: block; padding: 10px 22px; font-size: 13px; text-decoration: none; }
.qd-nav__sub a:hover, .qd-nav__sub a[aria-current="page"] { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent-2); text-underline-offset: 4px; }
.qd-nav__item:hover > .qd-nav__sub, .qd-nav__item.is-open > .qd-nav__sub { opacity: 1; visibility: visible; transform: none; }

.qd-header__actions { display: flex; align-items: center; gap: 18px; }
.qd-langs { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.qd-langs a { display: block; padding: 6px 7px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-decoration: none; opacity: .55; }
.qd-langs a.is-current, .qd-langs a:hover { opacity: 1; }

.qd-header__toggle { display: none; width: 44px; height: 44px; margin-left: auto; background: none; border: 0; cursor: pointer; position: relative; }
.qd-header__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.qd-header__toggle span:first-child { top: 17px; }
.qd-header__toggle span:last-child { top: 26px; }
.qd-header__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.qd-header__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ------------------------------------------------------------------ intro film */

.qd-intro {
    position: fixed; inset: 0; z-index: 100; background: #000; display: flex; align-items: center; justify-content: center;
    opacity: 1; transition: opacity .7s var(--ease), visibility .7s;
}
.qd-intro[hidden] { display: none; }
.qd-intro.is-closing { opacity: 0; visibility: hidden; }
/* the whole film, never cropped: it fills a 16:9 screen and letterboxes on a phone held upright */
.qd-intro__video { width: 100%; height: 100%; object-fit: contain; }
.qd-intro__frame { position: absolute; inset: 0; overflow: hidden; }
.qd-intro__frame .qd-intro__video {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(100vw, 177.78vh); height: min(100vh, 56.25vw); border: 0; pointer-events: none;
}
.qd-intro__frame { opacity: 0; transition: opacity .6s var(--ease); }
.qd-intro.is-playing .qd-intro__frame { opacity: 1; }
.qd-intro__frame .qd-intro__video { transform: translate(-50%, -50%) scale(1.12); }
.qd-intro__bar {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 24px var(--gutter) 28px;
    display: flex; align-items: center; gap: 20px; color: var(--white);
    background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}
.qd-intro__progress { flex: 1; height: 1px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.qd-intro__progress i { position: absolute; inset: 0; background: var(--accent-2); transform-origin: left; transform: scaleX(0); }
.qd-intro__skip {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .45); cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    transition: background .3s, color .3s;
}
.qd-intro__skip:hover { background: var(--white); color: var(--ink); }

/* ------------------------------------------------------------------ areas */

.qd-areas { position: relative; background: var(--ink); color: var(--white); padding: var(--header-h) 0 0 clamp(52px, 5vw, 84px); overflow: hidden; }
.qd-areas--full .qd-areas__list { height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 560px; }
.qd-areas--tall .qd-areas__list { height: min(78vh, 760px); min-height: 520px; }
.qd-areas__tagline {
    position: absolute; left: 0; top: var(--header-h); bottom: 0; width: clamp(52px, 5vw, 84px); margin: 0;
    display: flex; align-items: center; justify-content: center;
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-size: 13px; font-weight: 700; letter-spacing: .5em; text-transform: uppercase; color: rgba(251, 250, 247, .85); white-space: nowrap;
}
.qd-areas__title { position: absolute; z-index: 2; top: calc(var(--header-h) + 24px); left: calc(clamp(52px, 5vw, 84px) + 32px); font-size: 14px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; margin: 0; }
.qd-areas__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.qd-areas__col { flex: 1 1 0; min-width: 0; transition: flex-grow .8s var(--ease); }
.qd-areas__list:hover .qd-areas__col:hover { flex-grow: 1.7; }
.qd-areas__link { position: relative; display: block; height: 100%; color: inherit; text-decoration: none; overflow: hidden; container-type: size; }
.qd-areas__media { position: absolute; inset: 0; }
.qd-areas__media img, .qd-areas__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease), filter .8s; filter: saturate(.85) brightness(.8); }
.qd-areas__link:hover .qd-areas__img { transform: scale(1.1); filter: saturate(1) brightness(.9); }
.qd-areas__link::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .35) 0%, rgba(10, 10, 10, .1) 40%, rgba(10, 10, 10, .85) 100%); }
.qd-areas__num { position: absolute; z-index: 1; top: 28px; right: 28px; font-size: 13px; font-weight: 600; letter-spacing: .2em; color: rgba(251, 250, 247, .7); }
.qd-areas__word {
    position: absolute; z-index: 1; left: clamp(18px, 2.4vw, 36px); bottom: clamp(24px, 3vw, 44px);
    writing-mode: vertical-rl; transform: rotate(180deg);
    /* sized by the width of the screen, but never taller than its column (a wide, low screen cut the
       last letter): a ten-letter word set upright is about 5.4 times its font size long */
    font-size: min(clamp(56px, 7.4vw, 132px), calc((100cqh - 110px) / 5.8)); font-weight: 800; line-height: .82; letter-spacing: -.02em; text-transform: uppercase;
    color: var(--white); white-space: nowrap; max-height: calc(100% - 100px); overflow: hidden;
}
.qd-areas__body {
    position: absolute; z-index: 1; left: calc(clamp(18px, 2.4vw, 36px) + clamp(70px, 8.4vw, 150px)); right: clamp(18px, 2.4vw, 36px); bottom: clamp(24px, 3vw, 44px);
    display: flex; flex-direction: column; gap: 12px;
}
.qd-areas__name { font-size: clamp(15px, 1.25vw, 19px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; padding-bottom: 14px; border-bottom: 2px solid var(--white); max-width: 260px; }
.qd-areas__text { font-size: 14px; line-height: 1.55; color: rgba(251, 250, 247, .78); max-width: 260px; }
.qd-areas__go { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid rgba(251, 250, 247, .5); border-radius: 50%; transition: background .35s, color .35s, border-color .35s; }
.qd-areas__link:hover .qd-areas__go { background: var(--accent); border-color: var(--accent); color: #fff; }
/* each area has its colour on the big word and the arrow; the rest of the column stays white */
.qd-areas__col--industrial { --area: var(--area-industrial); }
.qd-areas__col--artesanal { --area: var(--area-artesanal); }
.qd-areas__col--fina { --area: var(--area-fina); }
.qd-areas__word { color: var(--area, var(--white)); }
.qd-areas__go { color: var(--area, inherit); border-color: var(--area, rgba(251, 250, 247, .5)); }
.qd-areas__link:hover .qd-areas__go { background: var(--area, var(--accent)); border-color: var(--area, var(--accent)); }
.qd-areas__col[class*="qd-areas__col--"] .qd-areas__link:hover .qd-areas__go { color: var(--ink); }

/*
 * With a film. Until it is playing (.is-playing, set by theme.js) nothing changes: the columns show
 * their pictures, and YouTube's poster and play button never appear.
 *
 * On a desktop (992px and up) the film runs behind the whole section, cropped to cover, and the
 * columns become translucent panels over it - thin lines between them, the one under the pointer
 * clearing and the others darkening. On a phone or tablet it is a 16:9 band above the columns, which
 * keep their pictures. A YouTube frame is enlarged by a quarter so its title and logo fall outside
 * the crop.
 */
.qd-areas__film { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; container-type: size; opacity: 0; transition: opacity 1s var(--ease); }
.qd-areas.is-playing .qd-areas__film { opacity: 1; }
.qd-areas__film-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* a 16:9 frame cannot object-fit: it is sized on the film box itself (container units) */
.qd-areas__film-media--frame {
    inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1.25); border: 0;
    width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
}
.qd-areas__film::after { content: ''; position: absolute; inset: 0; background: rgba(10, 10, 10, .28); }

@media (min-width: 992px) {
    .qd-areas--film .qd-areas__list { position: relative; z-index: 1; }
    .qd-areas--film .qd-areas__tagline { z-index: 2; }
    .qd-areas--film.is-playing .qd-areas__list { gap: 0; }
    .qd-areas--film.is-playing .qd-areas__media { display: none; }
    .qd-areas--film.is-playing .qd-areas__col + .qd-areas__col { border-left: 1px solid rgba(251, 250, 247, .22); }
    .qd-areas--film.is-playing .qd-areas__link::after {
        background: linear-gradient(180deg, rgb(10 10 10 / 75%) 0%, rgb(10 10 10 / 75%) 40%, rgb(10 10 10) 100%);
        background-color: rgba(10, 10, 10, .12); transition: background-color .6s var(--ease);
    }
    .qd-areas--film.is-playing .qd-areas__list:hover .qd-areas__col:not(:hover) .qd-areas__link::after { background-color: rgba(10, 10, 10, .45); }
    .qd-areas--film.is-playing .qd-areas__list:hover .qd-areas__col:hover .qd-areas__link::after { background-color: rgba(10, 10, 10, 0); }
}

@media (max-width: 991px) {
    /* the band holds its place from the start, so nothing jumps when the film begins */
    .qd-areas--film .qd-areas__film { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; background: var(--ink-2); }
    .qd-areas--film .qd-areas__film::after { background: linear-gradient(180deg, rgba(10, 10, 10, 0) 60%, rgba(10, 10, 10, .5) 100%); }
}

@media (prefers-reduced-motion: reduce) {
    .qd-areas__film { display: none; }
}


/* ------------------------------------------------------------------ page head */

.qd-pagehead { position: relative; background: var(--ink); color: var(--white); overflow: hidden; display: flex; align-items: flex-end; }
.qd-pagehead--tall { min-height: min(82vh, 760px); }
.qd-pagehead--short { min-height: 440px; }
.qd-pagehead__media { position: absolute; inset: 0; }
.qd-pagehead__img { width: 100%; height: 100%; object-fit: cover; }
.qd-pagehead__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .45) 0%, rgba(10, 10, 10, .25) 45%, rgba(10, 10, 10, .88) 100%); }
.qd-pagehead__in { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(56px, 7vw, 96px); }
.qd-pagehead__title { font-size: clamp(40px, 7vw, 108px); line-height: .95; max-width: 14ch; }
.qd-pagehead--short .qd-pagehead__title { font-size: clamp(40px, 6vw, 88px); }
/* plain: no picture behind, black into the section under it (the finishes pages) */
.qd-pagehead--plain .qd-pagehead__title { font-size: clamp(40px, 6vw, 88px); }
.qd-pagehead--plain .qd-pagehead__in { padding-bottom: clamp(32px, 4vw, 56px); }
.qd-pagehead--plain + .qd-section.qd-tone-dark { padding-top: clamp(16px, 2vw, 32px); }
.qd-pagehead__text { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.6; color: rgba(251, 250, 247, .78); max-width: 56ch; margin: 26px 0 0; }
.qd-pagehead__index { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 40px); font-size: 13px; font-weight: 600; letter-spacing: .24em; color: rgba(251, 250, 247, .75); }

/* ------------------------------------------------------------------ breadcrumbs */

/*
 * Only drawn where a page asks for a trail (widgets/breadcrumbs.php). It takes the room under the
 * fixed header, so whatever follows it closes up instead of leaving that room a second time.
 */
.qd-crumbs { background: var(--ink); color: var(--white); padding: calc(var(--header-h) + 22px) 0 0; }
.qd-crumbs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(251, 250, 247, .55); }
.qd-crumbs__list li { display: inline-flex; align-items: center; gap: 12px; }
.qd-crumbs__list li + li::before { content: ''; width: 14px; height: 1px; background: var(--accent); }
.qd-crumbs__list a { text-decoration: none; }
.qd-crumbs__list a:hover { color: var(--white); }
.qd-crumbs__list [aria-current] { color: var(--white); }
.widget-breadcrumbs + .widget-page_head .qd-pagehead__in,
.widget-breadcrumbs + .qd-pagehead .qd-pagehead__in { padding-top: clamp(40px, 6vw, 80px); }
.widget-breadcrumbs + .widget-contact .qd-contact-wrap,
.widget-breadcrumbs + .widget-text .qd-text { padding-top: clamp(48px, 7vw, 100px); }

/* ------------------------------------------------------------------ split */

.qd-split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.qd-split--left .qd-split__visual { order: -1; }
.qd-split--right .qd-split__visual { order: 2; }
.qd-split__visual { position: relative; }
.qd-split__frame { display: block; aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.qd-split__frame img, .qd-split__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.qd-split__visual:hover .qd-split__frame img { transform: scale(1.04); }
.qd-split__index {
    position: absolute; bottom: -.32em; font-size: clamp(90px, 12vw, 190px); font-weight: 800; line-height: 1; letter-spacing: -.04em;
    color: transparent; -webkit-text-stroke: 1.5px var(--accent); pointer-events: none;
}
.qd-tone-dark .qd-split__index { -webkit-text-stroke-color: var(--accent-2); }
.qd-split--right .qd-split__index { left: -.38em; }
.qd-split--left .qd-split__index { right: -.38em; }

.qd-points { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 18px; }
.qd-points li { display: flex; gap: 16px; align-items: flex-start; padding-top: 18px; border-top: 1px solid var(--line); }
.qd-tone-dark .qd-points li { border-color: var(--line-dark); }
.qd-points__icon { color: var(--accent); flex: none; margin-top: 1px; }
.qd-tone-dark .qd-points__icon { color: var(--accent-2); }
.qd-points b { display: block; font-weight: 600; font-size: 16px; }
.qd-points small { display: block; font-size: 14.5px; color: var(--grey); line-height: 1.6; margin-top: 2px; }
.qd-tone-dark .qd-points small { color: rgba(251, 250, 247, .62); }

/* ------------------------------------------------------------------ statement */

.qd-statement__in { max-width: 1100px; }
.qd-statement__text { font-size: clamp(26px, 3.6vw, 52px); line-height: 1.18; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.qd-statement__by { margin: 30px 0 0; font-size: 17px; line-height: 1.6; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }
.qd-tone-dark .qd-statement__by { color: rgba(251, 250, 247, .6); }

/* ------------------------------------------------------------------ steps */

.qd-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 32px; position: relative; }
.qd-steps__list::before { content: ''; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: currentColor; opacity: .15; }
.qd-steps__list::after { content: ''; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--accent-2); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease); }
.qd-tone-light .qd-steps__list::after, .qd-tone-paper .qd-steps__list::after { background: var(--accent); }
.qd-steps__list.is-in::after { transform: scaleX(1); }
html:not(.qd-js) .qd-steps__list::after { transform: scaleX(1); }
.qd-steps__step { position: relative; display: flex; flex-direction: column; gap: 14px; }
.qd-steps__num {
    width: 45px; height: 45px; display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 1;
    font-size: 13px; font-weight: 700; border: 1px solid var(--accent-2); background: var(--ink); color: var(--white);
}
.qd-tone-light .qd-steps__num, .qd-tone-paper .qd-steps__num { background: var(--white); color: var(--accent); border-color: var(--accent); }
.qd-steps__icon { color: var(--accent-2); margin-top: 10px; }
.qd-tone-light .qd-steps__icon, .qd-tone-paper .qd-steps__icon { color: var(--accent); }
.qd-steps__name { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.qd-steps__text { font-size: 14.5px; line-height: 1.6; color: rgba(251, 250, 247, .62); }
.qd-tone-light .qd-steps__text, .qd-tone-paper .qd-steps__text { color: var(--grey); }

/* ------------------------------------------------------------------ mosaic */

.qd-mosaic__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 18vw, 260px); gap: 12px; }
.qd-mosaic__tile { position: relative; overflow: hidden; background: var(--paper); }
.qd-mosaic__grid > .qd-mosaic__tile:first-child { grid-column: span 2; grid-row: span 2; }
.qd-mosaic__grid--2 { grid-template-columns: 1fr 1fr; }
.qd-mosaic__grid--2 > .qd-mosaic__tile:first-child { grid-column: auto; }
.qd-mosaic__grid--3 > .qd-mosaic__tile:nth-child(2), .qd-mosaic__grid--3 > .qd-mosaic__tile:nth-child(3) { grid-column: span 2; }
.qd-mosaic__link { display: block; height: 100%; cursor: zoom-in; }
.qd-mosaic__img, .qd-mosaic__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.qd-mosaic__tile:hover .qd-mosaic__img { transform: scale(1.05); }
.qd-mosaic__caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 18px 14px; color: var(--white); pointer-events: none;
    font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; background: linear-gradient(transparent, rgba(0, 0, 0, .6));
}

/* ------------------------------------------------------------------ finishes */

.qd-finishes__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px) clamp(14px, 2vw, 24px); }
.qd-finish { display: flex; flex-direction: column; gap: 8px; }
.qd-finish__sample { display: block; aspect-ratio: 1; overflow: hidden; margin-bottom: 8px; position: relative; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.qd-finish__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.qd-finish:hover .qd-finish__img { transform: scale(1.06); }
.qd-finish__name { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.qd-finish__text { font-size: 14px; line-height: 1.55; color: rgba(251, 250, 247, .62); }
.qd-tone-light .qd-finish__text, .qd-tone-paper .qd-finish__text { color: var(--grey); }
a.qd-finish { color: inherit; text-decoration: none; }
/* the sample's video: empty until the pointer is over it (theme.js), then it fades in over the photograph */
.qd-finish__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; }
.qd-finish.is-playing .qd-finish__video { opacity: 1; }

/* one finish: the two photographs side by side, the video under them, then the way to the others */
.qd-finishbody__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qd-finishbody__pic { display: block; aspect-ratio: 1; overflow: hidden; cursor: zoom-in; background: var(--ink-3); }
.qd-finishbody__pic:only-of-type { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.qd-finishbody__pic .qd-gallery__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.qd-finishbody__pic:hover .qd-gallery__img { transform: scale(1.05); }
.qd-finishbody__video { grid-column: 1 / -1; width: 100%; max-height: 80vh; display: block; background: #000; }
.qd-finishbody__story { margin-top: clamp(40px, 5vw, 64px); max-width: 72ch; }
.qd-finishnav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-top: clamp(48px, 6vw, 88px); padding-top: 28px; border-top: 1px solid var(--line-dark); }
.qd-finishnav a:not(.qd-btn) { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.qd-finishnav a:not(.qd-btn) span { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(251, 250, 247, .55); }
.qd-finishnav a:not(.qd-btn) b { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.qd-finishnav a:not(.qd-btn):hover b { color: var(--accent-2); }
.qd-finishnav__next { text-align: right; align-items: flex-end; }
@media (max-width: 720px) {
    .qd-finishnav { grid-template-columns: 1fr 1fr; }
    .qd-finishnav .qd-btn { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* ------------------------------------------------------------------ portfolio */

.qd-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.qd-filter--page { margin-bottom: clamp(32px, 4vw, 52px); }
.qd-filter button {
    padding: 10px 18px; background: none; border: 1px solid var(--line); cursor: pointer;
    font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: .3s var(--ease);
}
.qd-filter button:hover { border-color: var(--ink); }
.qd-filter button.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.qd-tone-dark .qd-filter button { border-color: var(--line-dark); }
.qd-tone-dark .qd-filter button.is-on { background: var(--white); color: var(--ink); }

.qd-works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.qd-works > li[hidden] { display: none; }
.qd-work { display: block; position: relative; color: var(--white); text-decoration: none; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.qd-work__cover { position: absolute; inset: 0; }
.qd-work__img, .qd-work__metal { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.qd-work:hover .qd-work__img { transform: scale(1.06); }
.qd-work::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 10, .85) 100%); }
.qd-work__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.qd-work__area { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(251, 250, 247, .85); }
.qd-work__name { font-size: 19px; font-weight: 700; line-height: 1.25; text-transform: uppercase; padding-right: 50px; }
.qd-work__client { font-size: 13.5px; color: rgba(251, 250, 247, .7); }
.qd-work__go {
    position: absolute; right: 22px; bottom: 24px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(251, 250, 247, .5); border-radius: 50%; transition: background .35s, color .35s, border-color .35s;
}
.qd-work:hover .qd-work__go { background: var(--accent); border-color: var(--accent); color: #fff; }
/* each work in the colour of its area, as on the home's areas: the area line and the arrow */
.qd-work--industrial { --area: var(--area-industrial); }
.qd-work--paineis { --area: var(--area-artesanal); }
.qd-work--fina { --area: var(--area-fina); }
.qd-work__area { color: var(--area, rgba(251, 250, 247, .85)); }
.qd-work__go { color: var(--area, inherit); border-color: var(--area, rgba(251, 250, 247, .5)); }
.qd-work[class*="qd-work--"]:hover .qd-work__go { background: var(--area); border-color: var(--area); color: var(--ink); }
/*
 * On hover the colour of the area rises over the picture. It sits under the dark gradient at the
 * bottom (::after), so the white text keeps its contrast even on the cream of fina.
 */
.qd-work::after { z-index: 1; }
.qd-work[class*="qd-work--"]::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease);
    background: linear-gradient(180deg, transparent 10%, color-mix(in srgb, var(--area) 45%, transparent) 65%, color-mix(in srgb, var(--area) 30%, transparent) 100%);
}
.qd-work[class*="qd-work--"]:hover::before, .qd-work[class*="qd-work--"]:focus-visible::before { opacity: 1; }
.qd-work__body { z-index: 2; }
.qd-empty { margin: 0; padding: 60px 0; text-align: center; font-size: 18px; color: var(--grey); }

/* the work's page */
.qd-workhead__back { text-decoration: none; }
.qd-workhead__back:hover { color: var(--white); }
.qd-workbody__grid { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.qd-facts { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.qd-facts > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.qd-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--grey); }
.qd-facts dd { margin: 4px 0 0; font-size: 16px; font-weight: 600; }
.qd-gallery { list-style: none; margin: clamp(48px, 6vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.qd-gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.qd-gallery a { display: block; height: 100%; aspect-ratio: 1; overflow: hidden; cursor: zoom-in; }
.qd-gallery li:first-child a { aspect-ratio: auto; }
.qd-gallery__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.qd-gallery a:hover .qd-gallery__img { transform: scale(1.05); }

/* ------------------------------------------------------------------ linkedin posts */

.qd-posts__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.qd-posts__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qd-posts__grid > li { display: flex; }
.qd-post { display: flex; flex-direction: column; width: 100%; color: inherit; text-decoration: none; background: var(--white); box-shadow: 0 1px 0 var(--line), inset 0 0 0 1px var(--line); transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
a.qd-post:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -36px rgba(18, 18, 18, .45), inset 0 0 0 1px var(--line); }
.qd-post__media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.qd-post__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
a.qd-post:hover .qd-post__img { transform: scale(1.05); }
.qd-post__mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(251, 250, 247, .8); }
.qd-post__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: clamp(20px, 2vw, 28px); }
.qd-post__date { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.qd-post__text { font-size: 14.5px; line-height: 1.6; color: var(--grey); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.qd-post__go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.qd-post__go > span { flex: 1; }
a.qd-post:hover .qd-post__go { color: var(--accent); }
.qd-tone-dark .qd-post { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-dark); }
.qd-tone-dark a.qd-post:hover { box-shadow: 0 24px 60px -36px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .28); }
.qd-tone-dark .qd-post__text { color: rgba(251, 250, 247, .62); }
.qd-tone-dark .qd-post__go { color: var(--white); }
.qd-tone-dark .qd-post__date { color: rgba(251, 250, 247, .85); }

.qd-posts__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); align-items: start; }
.qd-posts__cols--1 { grid-template-columns: minmax(0, 1fr); }
.qd-posts__col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.qd-posts__colhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.qd-tone-dark .qd-posts__colhead { border-color: var(--white); }
.qd-posts__coltitle { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.qd-posts__coltitle .qd-icon { color: var(--accent); flex: none; }
.qd-posts__follow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.qd-posts__follow:hover { color: var(--accent); }
.qd-posts__stack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 20px); }
.qd-post--row { flex-direction: row; }
.qd-post--row .qd-post__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 190px; }
.qd-post--row .qd-post__text { -webkit-line-clamp: 5; }

/* ------------------------------------------------------------------ figures */

/*
 * A grid of cells, each with a line on its left and on its top. The grid is pulled up and left by one
 * cell's padding and line, and the box around it clips that, so the first row has no line above and
 * the first column none on its left - whatever the number of columns on that screen.
 */
.qd-figures__grid { --fg-pad: clamp(16px, 2vw, 28px); overflow: hidden; }
.qd-figures__list {
    list-style: none; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
    margin: calc(-1 * var(--fg-pad) - 1px) 0 0 calc(-1 * var(--fg-pad) - 1px);
}
.qd-figure { display: flex; flex-direction: column; gap: 8px; padding: var(--fg-pad) var(--fg-pad) calc(var(--fg-pad) + 8px); border-left: 1px solid var(--line-dark); border-top: 1px solid var(--line-dark); grid-column: span var(--s, 1); }
.qd-tone-light .qd-figure, .qd-tone-paper .qd-figure { border-color: var(--line); }
.qd-figure__value { font-size: clamp(36px, 4vw, 62px); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--accent-2); white-space: nowrap; }
.qd-tone-light .qd-figure__value, .qd-tone-paper .qd-figure__value { color: var(--accent); }
.qd-figure__label { font-size: clamp(12px, 1vw, 13px); font-weight: 700; letter-spacing: .1em; line-height: 1.5; text-transform: uppercase; hyphens: auto; overflow-wrap: break-word; }
.qd-figure__text { font-size: 13.5px; line-height: 1.55; color: rgba(251, 250, 247, .6); }
.qd-tone-light .qd-figure__text, .qd-tone-paper .qd-figure__text { color: var(--grey); }

/* ------------------------------------------------------------------ documents */

.qd-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.qd-doc { display: flex; align-items: center; gap: 22px; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .3s var(--ease); }
.qd-doc:hover { background: var(--paper); }
.qd-doc__icon { position: relative; flex: none; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); border: 1px solid var(--line); }
.qd-doc__icon small { position: absolute; bottom: -8px; right: -8px; padding: 2px 5px; background: var(--ink); color: var(--white); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.qd-doc__body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qd-doc__name { font-size: 17px; font-weight: 700; }
.qd-doc__text { font-size: 14.5px; color: var(--grey); line-height: 1.55; }
.qd-doc__go { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* ------------------------------------------------------------------ logos */

.qd-logos__title { justify-content: center; }
.qd-logos__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 4vw, 64px); }
.qd-logos__img { max-height: 54px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .4s, opacity .4s; }
.qd-logos__list li:hover .qd-logos__img { filter: none; opacity: 1; }

/* ------------------------------------------------------------------ cta band */

.qd-cta { position: relative; background: var(--ink); color: var(--white); overflow: hidden; padding: clamp(90px, 11vw, 160px) 0; }
.qd-cta__media { position: absolute; inset: 0; opacity: .55; }
.qd-cta__img { width: 100%; height: 100%; object-fit: cover; }
.qd-cta::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent-dark), var(--accent-2), var(--accent-dark)); z-index: 1; }
.qd-cta__in { position: relative; z-index: 1; }
.qd-cta__title { font-size: clamp(36px, 6vw, 92px); line-height: .98; max-width: 16ch; }
.qd-cta__text { font-size: clamp(16px, 1.3vw, 19px); color: rgba(251, 250, 247, .75); margin: 22px 0 0; max-width: 52ch; }

/* ------------------------------------------------------------------ contact */

.qd-contact-wrap { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 100px)); }
.qd-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.qd-contact__details { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.qd-contact__details li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.qd-contact__details small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-bottom: 2px; }
.qd-contact__details a { text-decoration: none; }
.qd-contact__details a:hover { color: var(--accent); }
.qd-contact__icon { color: var(--accent); flex: none; margin-top: 2px; }
.qd-contact--solo { grid-template-columns: minmax(0, 1fr); }
.qd-contact--solo .qd-contact__intro { max-width: 760px; }
.qd-contact__map { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 4 / 5; max-height: 640px; width: 100%; background: var(--line); box-shadow: 0 30px 80px -40px rgba(18, 18, 18, .35); overflow: hidden; }
.qd-contact__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.qd-contact__card { background: var(--white); padding: clamp(28px, 4vw, 52px); box-shadow: 0 30px 80px -40px rgba(18, 18, 18, .35); }

.qd-form { display: grid; gap: 18px; }
.qd-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qd-form__field { position: relative; margin: 0; }
.qd-form__field input, .qd-form__field textarea {
    width: 100%; padding: 24px 0 10px; font: inherit; font-size: 16px; color: var(--ink); background: transparent;
    border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: none; transition: border-color .3s;
}
.qd-form__field textarea { resize: vertical; min-height: 130px; }
.qd-form__field input:focus, .qd-form__field textarea:focus { border-color: var(--ink); }
.qd-form__field label { position: absolute; left: 0; top: 22px; font-size: 15px; color: var(--grey); pointer-events: none; transition: .25s var(--ease); }
.qd-form__field input:focus + label, .qd-form__field input:not(:placeholder-shown) + label,
.qd-form__field textarea:focus + label, .qd-form__field textarea:not(:placeholder-shown) + label { top: 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.qd-form.is-checked :invalid { border-color: #b3261e; }
.qd-form__topics { border: 0; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qd-topic input { position: absolute; opacity: 0; pointer-events: none; }
.qd-topic span {
    display: inline-block; padding: 10px 16px; border: 1px solid var(--line); cursor: pointer;
    font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: .3s var(--ease);
}
.qd-topic input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.qd-topic input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.qd-form__check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 0; font-size: 14px; color: var(--grey); }
.qd-form__check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.qd-form__check a { color: var(--ink); }
.qd-form__status { margin: 0; padding: 12px 16px; background: #fbeae9; color: #8c1d18; font-size: 14px; }
.qd-form__submit { justify-self: start; margin-top: 6px; }
.qd-form.is-sending .qd-form__submit { opacity: .7; cursor: progress; }
.qd-form__done { text-align: center; padding: 40px 0; }
.qd-form__done-icon { display: inline-flex; width: 72px; height: 72px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: #fff; margin-bottom: 18px; }
.qd-form__done p { font-size: 18px; margin: 0; }

/* ------------------------------------------------------------------ text */

.qd-text { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 100px)); }
.qd-text__in { max-width: calc(820px + var(--gutter) * 2); }
.qd-prose { margin-top: 36px; font-size: 16.5px; line-height: 1.75; color: #33312d; }
.qd-workbody .qd-prose { margin-top: 0; font-size: 18px; }
.qd-prose h2, .qd-prose h3 { font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin: 2em 0 .6em; line-height: 1.2; color: var(--ink); }
.qd-prose h2 { font-size: 22px; }
.qd-prose h3 { font-size: 17px; }
.qd-prose p, .qd-prose ul, .qd-prose ol { margin: 0 0 1.1em; }
.qd-prose a { color: var(--accent); }
.qd-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.qd-prose th, .qd-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ------------------------------------------------------------------ footer */

.qd-footer { background: var(--ink); color: var(--white); padding: 0 0 32px; overflow: hidden; }
.qd-footer__tagline {
    margin: 0; padding: clamp(48px, 6vw, 84px) 0 clamp(24px, 3vw, 40px); white-space: nowrap; overflow: hidden;
    border-bottom: 1px solid var(--line-dark);
}
.qd-footer__tagline span {
    display: block; text-align: center; font-size: clamp(48px, 11.5vw, 190px); font-weight: 800; line-height: .9; letter-spacing: -.02em; text-transform: uppercase;
    /*
     * The team's photo cut to the letters (assets/img/footer-team.webp, the whole strip of the group
     * photo, 3200px wide), centred and held at its top, with a thin light outline so the word reads
     * on the dark footer.
     */
    background: url('../img/footer-team.webp') center top / cover no-repeat var(--ink-3);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-text-stroke: 1.5px rgba(251, 250, 247, .6);
}
.qd-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(32px, 5vw, 80px); padding: clamp(48px, 6vw, 80px) 0; }
.qd-footer__logo { display: inline-flex; color: var(--white); text-decoration: none; }
.qd-footer__text { margin: 22px 0 28px; color: rgba(251, 250, 247, .62); max-width: 40ch; font-size: 15px; }
.qd-footer__title { margin: 0 0 18px; font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: rgba(251, 250, 247, .5); }
.qd-footer__links, .qd-footer__contacts, .qd-footer__social { list-style: none; margin: 0; padding: 0; }
.qd-footer__links li { margin-bottom: 10px; }
.qd-footer__links a { text-decoration: none; font-size: 15px; color: rgba(251, 250, 247, .82); }
.qd-footer__links a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent-2); text-underline-offset: 4px; }
.qd-footer__contacts li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 15px; color: rgba(251, 250, 247, .82); }
.qd-footer__contacts .qd-icon { color: var(--accent-2); margin-top: 4px; }
.qd-footer__contacts a { text-decoration: none; }
.qd-footer__contacts a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent-2); text-underline-offset: 4px; }
.qd-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: 13px; color: rgba(251, 250, 247, .5); }
.qd-footer__bottom p { margin: 0; }
.qd-footer__bottom-end { display: flex; align-items: center; gap: 24px; }
.qd-footer__bottom a { color: inherit; text-decoration: none; }
.qd-footer__bottom a:hover { color: var(--white); }
.qd-footer__social { display: flex; gap: 8px; }
.qd-footer__social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--white); }
.qd-footer__social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ------------------------------------------------------------------ zoom (one picture, full size) */

.qd-zoom { position: fixed; inset: 0; z-index: 90; background: rgba(8, 8, 8, .94); display: flex; align-items: center; justify-content: center; padding: 64px var(--gutter); }
.qd-zoom[hidden] { display: none; }
/* the picture is held by the screen's height, not by the figure's: the figure has no height of its own,
   so max-height: 100% was ignored and a tall photograph ran off the bottom (128px = the padding, 40px the caption) */
.qd-zoom img { max-width: 100%; max-height: calc(100vh - 168px); max-height: calc(100dvh - 168px); width: auto; height: auto; object-fit: contain; }
.qd-zoom figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100%; }
.qd-zoom figcaption { color: rgba(251, 250, 247, .75); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.qd-zoom button { position: absolute; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; color: #fff; cursor: pointer; }
.qd-zoom [data-qd-zoom-close] { top: 18px; right: 18px; }
.qd-zoom [data-qd-zoom-prev] { left: 18px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.qd-zoom [data-qd-zoom-next] { right: 18px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------------ md: <= 991 */

@media (max-width: 991px) {
    .qd-logo { height: 46px; }
    :root { --header-h: 72px; }

    .qd-header__toggle { display: block; }
    .qd-header__panel {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--ink); color: var(--white);
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 32px; padding: 28px var(--gutter) 40px; overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .35s var(--ease);
    }
    /*
     * No backdrop-filter while the menu is open: a filtered element becomes the containing block of
     * its position:fixed children, and the panel was sized to the 72px bar instead of the screen -
     * the links spilled over the page with no background behind them.
     */
    .qd-header.is-open { background: var(--ink); color: var(--white); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
    .qd-header.is-open .qd-header__logo--on-dark { display: flex; }
    .qd-header.is-open .qd-header__logo--on-light { display: none; }
    .qd-header.is-open .qd-header__panel { opacity: 1; visibility: visible; transform: none; }
    .qd-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .qd-nav__link { width: 100%; justify-content: space-between; padding: 18px 0; font-size: 20px; letter-spacing: .06em; border-bottom: 1px solid var(--line-dark); }
    .qd-nav__link::after { display: none; }
    .qd-nav__sub { position: static; opacity: 1; visibility: visible; transform: none; display: none; background: none; padding: 4px 0 12px 12px; }
    .qd-nav__item.is-open > .qd-nav__sub { display: block; }
    .qd-header__actions { justify-content: space-between; }

    .qd-areas { padding-left: 0; }
    .qd-areas__tagline { display: none; }
    .qd-areas--full .qd-areas__list, .qd-areas--tall .qd-areas__list { height: auto; min-height: 0; flex-direction: column; }
    .qd-areas__col { flex: none; height: 46vh; min-height: 320px; }
    .qd-areas__list:hover .qd-areas__col:hover { flex-grow: 0; }
    .qd-areas__word { writing-mode: horizontal-tb; transform: none; top: 22px; bottom: auto; left: 22px; font-size: clamp(44px, 12vw, 84px); max-height: none; }
    .qd-areas__body { left: 22px; right: 22px; bottom: 26px; }

    .qd-split__grid { grid-template-columns: 1fr; }
    .qd-split--left .qd-split__visual, .qd-split--right .qd-split__visual { order: -1; }
    .qd-split__frame { aspect-ratio: 4 / 3; }
    .qd-split--right .qd-split__index, .qd-split--left .qd-split__index { left: auto; right: 12px; }

    .qd-steps__list { grid-template-columns: 1fr 1fr; row-gap: 48px; }
    .qd-steps__list::before, .qd-steps__list::after { display: none; }

    .qd-finishes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .qd-figures__list { grid-template-columns: repeat(var(--cols-md, 3), minmax(0, 1fr)); }
    .qd-figure { grid-column: span var(--s-md, 1); }
    .qd-works { grid-template-columns: 1fr 1fr; }
    .qd-posts__grid, .qd-posts__grid--4 { grid-template-columns: 1fr 1fr; }
    .qd-posts__cols { grid-template-columns: minmax(0, 1fr); }
    .qd-contact { grid-template-columns: 1fr; }
    .qd-contact__map { position: static; aspect-ratio: 4 / 3; }
    .qd-workbody__grid { grid-template-columns: 1fr; }
    .qd-footer__cols { grid-template-columns: 1fr 1fr; }
    .qd-footer__brand { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ sm: <= 767 */

@media (max-width: 767px) {
    .qd-header__actions .qd-btn { flex: 1; justify-content: center; }
    .qd-logo { height: 38px; }
    .qd-wordmark__name { font-size: 26px; }

    .qd-steps__list { grid-template-columns: 1fr; }
    .qd-mosaic__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
    .qd-mosaic__grid > .qd-mosaic__tile:first-child, .qd-mosaic__grid--3 > .qd-mosaic__tile:nth-child(2), .qd-mosaic__grid--3 > .qd-mosaic__tile:nth-child(3) { grid-column: span 2; grid-row: auto; }
    .qd-finishes__grid { grid-template-columns: 1fr 1fr; }
    .qd-figures__list { grid-template-columns: repeat(var(--cols-sm, 2), minmax(0, 1fr)); }
    .qd-figure { grid-column: span var(--s-sm, 1); }
    .qd-figure__value { font-size: clamp(34px, 11vw, 48px); }
    .qd-figure__text { font-size: 13px; }
    .qd-doc { flex-wrap: wrap; }
    .qd-doc__go { width: 100%; padding-left: 74px; }
    .qd-works { grid-template-columns: 1fr; }
    .qd-posts__grid, .qd-posts__grid--4 { grid-template-columns: 1fr; }
    .qd-post--row { flex-direction: column; }
    .qd-post--row .qd-post__media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
    .qd-gallery { grid-template-columns: 1fr 1fr; }
    .qd-form__row { grid-template-columns: 1fr; }
    .qd-footer__cols { grid-template-columns: 1fr; }
    .qd-footer__bottom { flex-direction: column; align-items: flex-start; }
    .qd-pagehead__index { display: none; }
}

/* ------------------------------------------------------------------ 404 (views/pages/404.php) */

/* dark under the fixed, transparent header: the head starts below it */
.qd-nf { padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.qd-nf__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.qd-nf__title { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; margin: 18px 0 22px; text-transform: uppercase; }
.qd-nf__title em { font-style: normal; color: var(--accent-2); }
.qd-nf__lead { max-width: 52ch; margin: 0; color: rgba(251, 250, 247, .72); }
.qd-nf__asked { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 26px 0 0; font-size: 13px; color: rgba(251, 250, 247, .6); }
.qd-nf__asked code { padding: 6px 10px; background: rgba(255, 255, 255, .08); color: var(--white); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; max-width: 100%; overflow-wrap: anywhere; }
.qd-nf__maybe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; }
.qd-nf__maybe > span { color: rgba(251, 250, 247, .6); font-size: 14px; }
.qd-nf__maybe a { display: inline-flex; align-items: center; gap: 6px; color: var(--white); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent-2); }
.qd-nf__maybe small { color: rgba(251, 250, 247, .6); font-weight: 500; }
.qd-nf__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
/* .qd-btn sets a display of its own, which beats the attribute: "back" stays out until theme.js shows it */
.qd-nf__actions [hidden] { display: none; }

.qd-nf__visual { display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: center; justify-items: center; gap: 4px; }
.qd-nf__digit { font-size: clamp(88px, 12vw, 176px); font-weight: 800; line-height: .9; color: var(--white); }
.qd-nf__cut { width: 100%; max-width: 260px; overflow: visible; }
.qd-nf__hole { fill: var(--ink); }
.qd-nf__kerf { fill: none; stroke: var(--accent-2); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px rgba(214, 58, 72, .8)); }
.qd-nf__sparks path { stroke: #ffd38a; stroke-width: 2; stroke-linecap: round; fill: none; }
.qd-nf__glow { fill: #fff; }
.qd-nf__head, .qd-nf__sparks { transform-box: view-box; transform-origin: 100px 100px; }
/* the resting state IS the ring cut out: what reduced motion shows and where every cycle ends */
.qd-nf__head { opacity: 0; transform: rotate(360deg); }

.qd-nf__kerf { animation: qd-nf-kerf 5s linear infinite; }
.qd-nf__head { animation: qd-nf-head 5s linear infinite; }
.qd-nf__sparks { animation: qd-nf-sparks .18s steps(2) infinite; }
.qd-nf__hole { animation: qd-nf-hole 5s ease infinite; }
@keyframes qd-nf-kerf { 0% { stroke-dashoffset: 100; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes qd-nf-head { 0% { transform: rotate(0); opacity: 1; } 70% { transform: rotate(360deg); opacity: 1; } 74%, 100% { transform: rotate(360deg); opacity: 0; } }
@keyframes qd-nf-sparks { 0% { transform: rotate(-8deg); } 100% { transform: rotate(8deg); } }
/* the disc is still there while it is being cut, and falls through once the ring closes */
@keyframes qd-nf-hole { 0%, 70% { fill: #8e9297; } 80%, 100% { fill: var(--ink); } }

.qd-nf-finder__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.qd-nf-finder__head .qd-title { margin: 12px 0 0; }
.qd-nf-finder__head .qd-title em { font-style: normal; color: var(--accent); }
.qd-nf-finder__filter input { width: min(360px, 100%); min-height: 48px; padding: 0 16px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-size: 15px; }
.qd-nf-finder__filter input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qd-nf-finder__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.qd-nf-finder__list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; background: var(--white); color: var(--ink); text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease); }
.qd-nf-finder__list a:hover { background: var(--ink); color: var(--white); }
.qd-nf-finder__list a span { display: grid; min-width: 0; }
.qd-nf-finder__list b { font-weight: 600; }
.qd-nf-finder__list small { color: var(--grey); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.qd-nf-finder__list a:hover small { color: var(--grey-2); }
.qd-nf-finder__list .qd-icon { color: var(--accent); flex: none; }
.qd-nf-finder__list li[hidden] { display: none; }
.qd-nf-finder__empty { margin-top: 16px; color: var(--grey); }

@media (max-width: 991px) {
    .qd-nf__grid { grid-template-columns: minmax(0, 1fr); }
    .qd-nf__visual { order: -1; max-width: 460px; }
    .qd-nf-finder__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .qd-nf-finder__list { grid-template-columns: minmax(0, 1fr); }
    .qd-nf-finder__filter, .qd-nf-finder__filter input { width: 100%; }
}

/* ------------------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0s !important; animation: none !important; scroll-behavior: auto !important; }
    .qd-reveal { opacity: 1; transform: none; }
}
