/* QMD Wallpaper: shared styles */

:root {
  color-scheme: light;
  --paper: #F7F9FC;
  --paper-2: #EAF2FC;
  --paper-3: #DCE8F7;
  --surface: #FFFFFF;
  --ink: #0E1B2C;
  --ink-2: #1C2E47;
  --muted: #4A5A70;
  --blue: #049BFF;
  --blue-deep: #0A6FB8;
  --star: #049BFF;
  --f-blue: #3A8FF0;
  --f-purple: #3A8FF0;
  --f-red: #3A8FF0;
  --f-green: #3A8FF0;
  --f-yellow: #EAF2FC;
  --t-blue: #EAF2FC;
  --t-yellow: #EAF2FC;
  --t-red: #EAF2FC;
  --t-green: #EAF2FC;
  --t-purple: #EAF2FC;
  --on-dark: #F7F9FC;
  --on-dark-2: #B9C6D8;
  --danger: #B3261E;
  --ok: #1E7A4C;

  --f-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1440px;
  --section: clamp(96px, 12vw, 192px);

  --t-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --t-lead: clamp(1.1875rem, 1.05rem + 0.55vw, 1.4375rem);
  --t-h3: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  --t-h2: clamp(2.5rem, 1.6rem + 3.4vw, 4.75rem);
  --t-h1: clamp(3rem, 1.6rem + 5vw, 6.5rem);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-body)/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: .98; letter-spacing: -0.03em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.1; }
p { margin: 0; text-wrap: pretty; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; background: var(--ink); color: var(--paper); padding: 12px 16px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.lead { font-size: var(--t-lead); line-height: 1.5; max-width: 36ch; }
.prose { max-width: 60ch; }
.prose p + p { margin-top: 1em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 1.0625rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease); }
.btn:hover { background: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--surface); }
.btn--line-light { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--on-dark); }
.btn--line-light:hover { background: var(--on-dark); color: var(--ink); }
.textlink { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: underline; }
.textlink svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.textlink:hover svg { transform: translateX(4px); }

/* ---------- Stars ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--paper); transition: background-color .3s; }
.site-head .wrap { display: flex; align-items: center; gap: 36px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 78px; height: auto; }
.brand span { font: 600 1.0625rem/1.1 var(--f-body); letter-spacing: -0.01em; }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a { position: relative; padding: 8px 0; font-weight: 500; text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-head .btn { min-height: 46px; padding: 0 22px; font-size: 1rem; }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(56px, 7vw, 120px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 1rem + 4.6vw, 5.5rem); }
.hero .lead { margin-top: 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 40px; }
.rating strong { font: 400 2rem/1 var(--f-display); }

/* ---------- Brand color fields + logo pattern ---------- */
.band { color: #fff; }
.band--blue { background-color: var(--f-blue); }
.band--purple { background-color: var(--f-purple); }
.band--red { background-color: var(--f-red); }
.band--green { background-color: var(--f-green); }
.patterned { background-image: url("img/qmd-pattern-blue.svg"); background-size: 360px 88px; }
.patterned-light { background-image: url("img/qmd-pattern-light.svg"); background-size: 360px 88px; }
.band .lead { font-size: 1.5rem; line-height: 1.4; }
.band .lead { color: #fff; }
.band .rating > span:not(.stars) { color: #fff; }
.band .rating .stars { color: #fff; }
.band ::selection { background: #fff; color: var(--ink); }

/* ---------- Hero fan of samples ---------- */
.fan { position: relative; aspect-ratio: 1 / 1.02; width: 100%; }
.fan figure { position: absolute; width: 56%; margin: 0; padding: 10px 10px 0; background: #fff; }
.fan img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.fan figcaption { padding: 10px 2px 12px; color: var(--ink); font-size: .875rem; font-weight: 600; }
.fan figure:nth-child(1) { left: 0; top: 14%; rotate: -11deg; }
.fan figure:nth-child(2) { left: 22%; top: 4%; rotate: -2deg; }
.fan figure:nth-child(3) { right: 0; top: 10%; rotate: 8deg; }
.fan figure:nth-child(2) figcaption { visibility: hidden; }
.hero h1 { color: #fff; }

/* ---------- Page hero (inner) ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 128px); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 88px); align-items: end; }
.page-hero h1 { font-size: clamp(2.5rem, 1.2rem + 4.2vw, 5.25rem); }

/* ---------- Benefits ---------- */
.benefits { padding-block: var(--section); }
.benefits .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.benefits figure { margin: 0; position: sticky; top: 112px; }
.benefits figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.benefits figcaption { margin-top: 12px; color: var(--muted); font-size: .9375rem; }
.benefits h2 { max-width: 14ch; }
.benefit-list { list-style: none; margin: clamp(48px, 6vw, 88px) 0 0; padding: 0; display: grid; gap: clamp(48px, 5vw, 80px); }
.benefit-list h3 { max-width: 18ch; }
.benefit-list p { margin-top: 14px; max-width: 46ch; }
.benefit-list blockquote { margin: 20px 0 0; padding: 18px 22px; background: var(--paper-2); max-width: 46ch; }
.benefit-list blockquote p { font: 400 1.1875rem/1.45 var(--f-display); }
.benefit-list blockquote footer { margin-top: 8px; font-size: .9375rem; color: var(--muted); }

/* ---------- Before / after ---------- */
.ba-section { background: var(--t-yellow); padding-block: var(--section); }
.ba-section .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.ba-section .lead { margin-top: 24px; }
.ba-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.ba-tabs button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); font: 500 1rem var(--f-body); cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.ba-tabs button:hover { background: var(--surface); }
.ba-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ba { position: relative; aspect-ratio: 3 / 4; max-height: 86vh; width: 100%; margin-left: auto; overflow: hidden; background: var(--paper-3); user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: var(--paper); pointer-events: none; }
.ba .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1A1F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 24px no-repeat; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba input[type="range"]:focus-visible + .handle::after { outline: 3px solid var(--blue); outline-offset: 3px; }
.ba .tag { position: absolute; bottom: 16px; padding: 7px 14px; border-radius: 999px; background: rgba(27, 26, 31, .78); color: var(--paper); font-size: .9375rem; font-weight: 600; pointer-events: none; }
.ba .tag--before { left: 16px; }
.ba .tag--after { right: 16px; }

/* ---------- Reviews ---------- */
.reviews { padding-block: var(--section); }
.score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px clamp(32px, 5vw, 80px); align-items: end; }
.score .big { font: 400 clamp(6rem, 3rem + 12vw, 13rem)/.8 var(--f-display); letter-spacing: -0.04em; color: #1F72D1; }
.score h2 { max-width: 16ch; }
.score .facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; color: var(--muted); }
.score .facts li { list-style: none; }
.score ul { margin: 20px 0 0; padding: 0; }
.quotes { columns: 3 320px; column-gap: clamp(16px, 2vw, 28px); margin-top: clamp(56px, 7vw, 104px); }
.quote { break-inside: avoid; margin: 0 0 clamp(16px, 2vw, 28px); padding: clamp(24px, 2.4vw, 36px); background: var(--surface); }
.quote p { font: 400 1.25rem/1.45 var(--f-display); }
.quote footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; font-size: .9375rem; color: var(--muted); }
.quote footer b { color: var(--ink); font-weight: 600; }
.quote--dark { background: #1F72D1; color: #fff; }
.quote--dark footer, .quote--dark footer b { color: #fff; }
.quote--dark .stars { color: #fff; }
.reviews .more { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }

/* ---------- Work strip (home) ---------- */
.strip { padding-bottom: var(--section); }
.strip-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: auto auto; gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(40px, 5vw, 72px); }
.strip-grid figure { margin: 0; position: relative; }
.strip-grid img { width: 100%; height: 100%; object-fit: cover; }
.strip-grid figure:first-child { grid-row: span 2; }
.strip-grid figure:first-child img { aspect-ratio: 3 / 4; }
.strip-grid figure:not(:first-child) img { aspect-ratio: 4 / 3.4; }
.strip-grid figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(247, 247, 245, .92); font-size: .875rem; font-weight: 600; }
.strip .head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section); background: var(--t-green); }
.faq .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); }
.faq h2 { position: sticky; top: 120px; align-self: start; max-width: 12ch; }
.faq-list { display: grid; gap: 6px; }
.faq details { background: var(--surface); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 28px; cursor: pointer; font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.3 var(--f-display); transition: background-color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: #F4F8FD; }
.faq .pm { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--t-green); transition: background-color .25s; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), background-color .25s; }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm { background: var(--f-green); }
.faq details[open] .pm::before, .faq details[open] .pm::after { background: var(--paper); }
.faq details[open] .pm::after { transform: rotate(0); }
.faq details > div { padding: 0 28px 28px; max-width: 62ch; }
.faq details > div p + p { margin-top: .8em; }

/* ---------- CTA ---------- */
.cta { background-color: var(--f-purple); color: #fff; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding-inline: 0; }
.cta .copy { padding: var(--section) var(--gutter); align-self: center; }
.cta h2 { max-width: 16ch; }
.cta .lead { margin-top: 24px; color: #fff; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.cta .mail { margin-top: 24px; color: #fff; }
.cta .mail a { color: #fff; }
.aside .card .btn { max-width: 100%; overflow-wrap: anywhere; }
.cta figure { margin: 0; min-height: 100%; }
.cta figure img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }

/* ---------- Services ---------- */
.svc { padding-block: clamp(64px, 8vw, 128px); }
.svc .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.svc:nth-of-type(even) figure { order: 2; }
.svc figure { margin: 0; }
.svc img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.svc .prose { margin-top: 20px; }
.svc ul.points { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.svc ul.points li { display: flex; gap: 12px; align-items: baseline; }
.svc ul.points li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); transform: translateY(-2px); }
.svc .said { margin-top: 28px; padding: 18px 22px; background: var(--paper-2); max-width: 52ch; }
.svc .said p { font: 400 1.125rem/1.45 var(--f-display); }
.svc .said footer { margin-top: 8px; font-size: .9375rem; color: var(--muted); }
.svc--blue { background: var(--t-blue); }
.svc--yellow { background: var(--t-yellow); }
.svc--red { background: var(--t-red); }
.svc--blue .said, .svc--yellow .said, .svc--red .said { background: rgba(255,255,255,.7); }
.trade { background-color: var(--f-blue); color: #fff; padding-block: var(--section); }
.trade .wrap { display: grid; gap: clamp(48px, 6vw, 88px); }
.trade .head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; }
.trade .actions { margin-top: 0; }
.trade-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 48px); }
.trade-list h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.trade-list p { margin-top: 10px; color: #fff; }
.trade .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Gallery ---------- */
.gallery { padding-block: var(--section); }
.gallery .head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.gal { columns: 3 300px; column-gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(40px, 5vw, 72px); }
.gal button { display: block; width: 100%; margin: 0 0 clamp(12px, 1.4vw, 20px); padding: 0; border: 0; background: var(--paper-3); cursor: zoom-in; break-inside: avoid; overflow: hidden; }
.gal img { width: 100%; height: auto; transition: transform .8s var(--ease), opacity .3s; }
.gal button:hover img { transform: scale(1.03); }
.lightbox { width: min(92vw, 1100px); max-height: 92vh; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(20, 19, 23, .9); }
.lb-frame img { max-width: 100%; max-height: 82vh; margin: 0 auto; object-fit: contain; }
.lightbox p { margin-top: 12px; text-align: center; color: var(--on-dark); }
.lightbox .close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font: 400 1.75rem/1 var(--f-body); cursor: pointer; }

/* ---------- About ---------- */
.story { padding-bottom: var(--section); }
.story .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.story .pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.4vw, 20px); }
.story .pair figure { margin: 0; }
.story .pair figure:nth-child(2) { margin-top: clamp(48px, 8vw, 128px); }
.story .pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.story .pair figcaption { margin-top: 10px; color: var(--muted); font-size: .9375rem; }
.story .prose { font-size: var(--t-lead); line-height: 1.55; }
.story h2 { margin-bottom: 28px; max-width: 14ch; }
.facts-band { background: var(--f-yellow); padding-block: var(--section); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(40px, 5vw, 72px); }
.facts-grid div { background: rgba(255,255,255,.6); padding: clamp(24px, 2.4vw, 36px); }
.facts-grid strong { display: block; font: 400 clamp(2.75rem, 2rem + 2.4vw, 4.25rem)/1 var(--f-display); letter-spacing: -0.03em; }
.facts-grid span { display: block; margin-top: 12px; color: var(--ink); }
.promise { padding-block: var(--section); }
.promise blockquote { margin: 0; max-width: 24ch; font: 400 clamp(2rem, 1.3rem + 2.6vw, 3.5rem)/1.12 var(--f-display); letter-spacing: -0.02em; }
.promise .who { margin-top: 28px; color: var(--muted); }
.promise .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.promise figure { margin: 0; }
.promise img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Contact ---------- */
.contact { padding-bottom: var(--section); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form fieldset + fieldset { margin-top: 48px; }
.form legend { padding: 0; margin-bottom: 20px; font: 400 clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem)/1.1 var(--f-display); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field + .field, .grid-2 + .field, .field + .grid-2, .grid-2 + .grid-2 { margin-top: 20px; }
.grid-2 > .field { margin-top: 0; }
.dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dims > .field { margin-top: 0; }
.dims label { font-weight: 500; color: var(--muted); font-size: .9375rem; }
.page-hero + .story, .page-hero + .contact { padding-top: clamp(56px, 7vw, 112px); }
.field label, .field .label { font-weight: 600; }
.field .hint { font-size: .9375rem; color: var(--muted); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; min-height: 54px; padding: 12px 16px; border: 1.5px solid #C9D5E5; border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; transition: border-color .2s; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(4, 155, 255, .35); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
textarea { min-height: 150px; resize: vertical; }
::placeholder { color: #5E6D84; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px #C9D5E5; font-weight: 500; transition: background-color .2s, color .2s, box-shadow .2s; }
.chip input:hover + span { box-shadow: inset 0 0 0 1.5px var(--muted); }
.chip input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
input[type="file"] { font: inherit; padding: 8px 0; }
input[type="file"]::file-selector-button { margin-right: 14px; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 1rem var(--f-body); cursor: pointer; }
.error { color: var(--danger); font-size: .9375rem; font-weight: 600; }
.form-error { margin-top: 28px; padding: 16px 20px; background: #F6E3E1; color: var(--danger); font-weight: 600; }
.form-error ul { margin: 8px 0 0; padding-left: 20px; }
.submit-row { margin-top: 44px; display: grid; gap: 14px; justify-items: start; }
.submit-row .btn[disabled] { opacity: .7; cursor: progress; }
.aside { position: sticky; top: 104px; display: grid; gap: 16px; }
.aside .card { background: var(--paper-2); padding: clamp(24px, 2.6vw, 36px); }
.aside .card--dark { background: var(--f-purple); color: #fff; }
.aside h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); }
.aside p { margin-top: 12px; }
.aside .card--dark p { color: #fff; }
.aside .btn { margin-top: 20px; }
.aside ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sent { padding-block: var(--section); }

/* ---------- Footer ---------- */
.site-foot { background: #0A2540; color: var(--on-dark); padding-top: clamp(72px, 9vw, 128px); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.foot-top .brandline { display: flex; align-items: center; gap: 16px; }
.foot-top .brandline img { width: 88px; }
.foot-top p { margin-top: 20px; max-width: 34ch; color: var(--on-dark-2); }
.foot-top h2 { margin-bottom: 14px; font: 600 1rem/1.2 var(--f-body); letter-spacing: 0; color: var(--on-dark); }
.foot-top ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--on-dark-2); }
.foot-top a { text-decoration: none; }
.foot-top a:hover { color: var(--on-dark); text-decoration: underline; }
.foot-base { margin-top: clamp(56px, 7vw, 96px); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 24px 32px; color: var(--on-dark-2); font-size: .9375rem; }

/* ---------- Motion ---------- */
.js [data-reveal] > * { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in > * { opacity: 1; transform: none; }
.js [data-reveal].in > *:nth-child(2) { transition-delay: .08s; }
.js [data-reveal].in > *:nth-child(3) { transition-delay: .16s; }
.js [data-reveal].in > *:nth-child(4) { transition-delay: .24s; }
.js [data-reveal].in > *:nth-child(5) { transition-delay: .32s; }
.fan figure { animation: deal 1.1s var(--ease) both; }
.fan figure:nth-child(2) { animation-delay: .12s; }
.fan figure:nth-child(3) { animation-delay: .24s; }
@keyframes deal { from { opacity: 0; translate: 0 40px; } }
.ba.moving .after { transition: clip-path .7s var(--ease); }
.ba.moving .handle { transition: left .7s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] > * { opacity: 1; transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .hero .wrap, .page-hero .wrap, .ba-section .wrap, .contact .wrap, .promise .wrap, .story .wrap { grid-template-columns: minmax(0, 1fr); }
  .fan { max-width: 560px; margin: 24px auto 0; }
  .benefits .wrap, .faq .wrap { grid-template-columns: minmax(0, 1fr); }
  .trade-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc .wrap { grid-template-columns: minmax(0, 1fr); }
  .svc:nth-of-type(even) figure { order: 0; }
  .svc img { aspect-ratio: 4 / 3.6; }
  .benefits figure, .faq h2 { position: static; }
  .benefits figure img { aspect-ratio: 16 / 11; }
  .ba { max-height: none; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside { position: static; }
  .cta .wrap { grid-template-columns: minmax(0, 1fr); }
  .cta figure img { min-height: 0; aspect-ratio: 16 / 10; }
  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-top > :first-child { grid-column: 1 / -1; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  .site-head .wrap { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-block: 12px 0; }
  .site-head .btn { margin-left: auto; }
  .brand img { width: 66px; }
  .hero h1 { font-size: 10vw; }
  .page-hero h1 { font-size: 9.6vw; }
  h2 { font-size: clamp(2.125rem, 8.6vw, 2.75rem); }
  .nav { order: 3; width: 100%; margin: 4px 0 0; gap: 22px; }
  .nav a { padding: 10px 0 12px; }
  .hero .actions .btn, .cta .actions .btn, .trade .actions .btn { width: 100%; }
  .fan { aspect-ratio: 1 / 1.08; }
  .fan figcaption { font-size: .75rem; padding: 6px 2px 8px; }
  .fan figure { padding: 6px 6px 0; }
  .score { grid-template-columns: minmax(0, 1fr); }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .strip-grid figure:first-child img { aspect-ratio: 4 / 4.4; }
  .svc .wrap { grid-template-columns: minmax(0, 1fr); }
  .svc:nth-of-type(even) figure { order: 0; }
  .trade-list { grid-template-columns: minmax(0, 1fr); }
  .gal { columns: 2; }
  .story .pair figure:nth-child(2) { margin-top: 40px; }
  .facts-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .faq summary { padding: 20px; }
  .faq details > div { padding: 0 20px 22px; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .ba .tag { bottom: 12px; font-size: .875rem; }
}

/* ---------- Image hero ---------- */
.hero--image { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(560px, 50vw, 820px); padding-block: clamp(96px, 9vw, 140px) clamp(48px, 5vw, 80px); color: #fff; background: #0A2540; overflow: hidden; }
.hero--image .hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; animation: fadein 1.2s var(--ease) both; }
.hero--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 18, 36, .62) 0%, rgba(6, 18, 36, .35) 40%, rgba(6, 18, 36, 0) 62%); }
.hero--image .wrap { display: block; }
.hero--image h1 { max-width: 13ch; color: #fff; font-size: clamp(3rem, 1.4rem + 5.4vw, 7rem); line-height: .95; }
.hero--image .lead { margin-top: 28px; max-width: 34ch; color: #fff; }
.hero--image .rating > span:not(.stars) { color: #fff; }
.hero--image .rating .stars { color: #fff; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@media (max-width: 720px) {
  .hero--image { min-height: 0; padding-top: min(96vw, 420px); padding-bottom: 36px; background: #0A1626; }
  .hero--image .hero-bg { inset: 0 0 auto 0; height: min(124vw, 540px); object-position: 80% 50%; }
  .hero--image::before { inset: 0 0 auto 0; height: min(124vw, 540px); background: linear-gradient(180deg, rgba(10, 22, 38, 0) 55%, rgba(10, 22, 38, .75) 78%, #0A1626 100%); }
  .hero--image h1 { font-size: 11vw; }
  .hero--image .lead { margin-top: 16px; }
  .hero--image .actions { margin-top: 24px; }
  .hero--image .rating { margin-top: 24px; }
}
/* ---------- Walls repeater ---------- */
.walls { display: grid; gap: 12px; }
.wall-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 12px; align-items: end; }
.wall-row .wall-n { align-self: center; padding-top: 28px; font-weight: 600; min-width: 52px; }
.wall-row .field { margin-top: 0; }
.wall-row label { font-weight: 500; color: var(--muted); font-size: .9375rem; }
.wall-row .remove { width: 44px; height: 54px; border: 0; border-radius: 0; background: var(--paper-2); color: var(--ink); font: 400 1.5rem/1 var(--f-body); cursor: pointer; }
.wall-row .remove:hover { background: var(--paper-3); }
.wall-row .remove[hidden] { display: block !important; visibility: hidden; }
.add-wall { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--paper-2); color: var(--ink); font: 600 1rem var(--f-body); cursor: pointer; }
.add-wall:hover { background: var(--paper-3); }
.add-wall span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #1F72D1; color: #fff; font-size: 1.125rem; line-height: 1; }
.story h1 { font-size: var(--t-h2); margin-bottom: 28px; max-width: 14ch; }
@media (max-width: 720px) {
  .wall-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; }
  .wall-row .wall-n { grid-column: 1 / -1; padding-top: 0; }
}

/* ---------- Blue pattern bands: small text sits on white cards ---------- */
.cta .copy { background: #fff; color: var(--ink); margin: clamp(32px, 5vw, 80px); padding: clamp(32px, 4vw, 64px); border-radius: 28px; align-self: center; }
.cta .copy h2 { color: var(--ink); }
.cta .copy .lead { color: var(--ink); }
.cta .copy .btn--light { background: var(--ink); color: #fff; }
.cta .copy .btn--light:hover { background: var(--ink-2); }
.cta .copy .btn--line-light { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cta .copy .btn--line-light:hover { background: var(--ink); color: #fff; }
.cta .mail { color: var(--muted); }
.cta .mail a { color: var(--ink); }
.trade-list li { background: #fff; color: var(--ink); padding: clamp(24px, 2.4vw, 32px); border-radius: 20px; }
.trade-list h3 { color: var(--ink); }
.trade-list p { color: var(--muted) !important; }
.trade h2 { color: #fff; }
.aside .card--dark { background: var(--f-blue) url("img/qmd-pattern-blue.svg") 0 0 / 360px 88px; }
.aside .card--dark p, .aside .card--dark h2 { font-size: 1.5rem; }
.aside .card--dark p { line-height: 1.4; }
.ba-section { background-color: var(--paper); }
@media (max-width: 720px) {
  .cta .copy { margin: 16px; border-radius: 20px; }
}

.aside .card--dark .textlink { font-size: 1.1875rem; font-weight: 700; }
.cta .copy h2 { font-size: clamp(2.25rem, 1.3rem + 2.4vw, 3.75rem); }

/* ---------- Solid plate behind text that sits on the pattern ---------- */
.plate { background: #1F72D1; color: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 56px); max-width: 780px; }
.page-hero.band .wrap { display: block; }
.plate .lead { margin-top: 20px; max-width: 40ch; }
.plate--title { display: inline-block; max-width: none; padding: 18px clamp(24px, 3vw, 36px); border-radius: 24px; }
@media (max-width: 720px) {
  .plate { border-radius: 20px; padding: 24px; }
  .plate--title { padding: 14px 20px; }
}
@media (max-width: 1024px) {
  .plate--title { font-size: clamp(1.75rem, 6.4vw, 3rem); }
}

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
