/* page CSS: only what sits inside a visual, plus the language switch and the contact list */
.nav__logo img { height: 22px; width: auto; }
.footer__logo img { height: 28px; }
.lang { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.lang a { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border-radius: var(--r-sm); font-size: var(--t-label); font-weight: 500; color: var(--muted); text-decoration: none; }
.lang a[aria-current] { color: var(--ink); background: var(--g-alt, var(--surface)); }
@media (hover: hover) and (pointer: fine) { .lang a:hover { color: var(--ink); } }

/* picture-develops: the section's one photograph on the split's right column */
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(620px, var(--ly-fit, 620px)); }
.develop img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%; }

/* cut-out pictures (client composites on transparent grounds) sit whole inside their panel */
.panel--cut { background: #fff; }
.panel--cut > .frame__img { object-fit: contain; padding: var(--s-5); }
#products .panel { --p-h: 300px; }
#process .panel { --p-h: 300px; }
@media (max-width: 639px) { #products .panel { --p-h: 160px; } #process .panel { --p-h: 200px; } }

/* the supply map: the client's own drawing, whole */
.frame--map { margin: 0; border-radius: var(--r-lg); background: #fff; padding: var(--s-6); display: grid; place-items: center; }
.frame--map img { width: 100%; height: auto; }
.rows--cases .rows__name { color: var(--accent); }

/* letters of thanks: four portrait scans, opened in full on click */
.letter { display: block; border-radius: var(--r-md); overflow: hidden; background: #fff; aspect-ratio: 1100 / 1554; max-height: 480px; }
.letter img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.list-head { margin: 0 0 var(--s-4); }
.rows--plain > li { padding-block: var(--s-3); }
.muted-ink { color: var(--muted); font-weight: 400; }
.brands { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: var(--s-5); }
.brands li { padding-block: var(--s-2); border-bottom: 1px solid var(--line); break-inside: avoid; font-weight: 500; }
.brands__more { margin-top: var(--s-4); color: var(--muted); }
@media (max-width: 639px) { .brands { columns: 2; } .letters .letter { max-height: none; } }

/* contacts beside the form */
.contacts { margin: var(--s-6) 0 0; display: grid; gap: var(--s-5); }
.contacts > div { display: grid; grid-template-columns: 160px 1fr; gap: var(--s-4); }
.contacts dt { color: var(--muted); font-size: var(--t-small); padding-top: 2px; }
.contacts dd { margin: 0; line-height: 1.7; }
@media (max-width: 639px) { .contacts > div { grid-template-columns: 1fr; gap: var(--s-1); } }
.form--panel { background: var(--g-alt, var(--surface)); border-radius: var(--r-lg); padding: var(--s-7); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 639px) { .form--panel { padding: var(--s-5); } .field-pair { grid-template-columns: 1fr; gap: 0; } }

/* fixes after the first check */
.card .panel.panel--cut { background: #fff; }
.letters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.letters > .letter { grid-column: auto; }
@media (max-width: 639px) { .letters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nav__item--lang { display: none; }
@media (max-width: 1023px) {
  .lang-bar { display: none; }
  .nav__item--lang { display: block; padding-block: var(--s-3); }
  .nav__item--lang .lang a { min-width: 48px; height: 44px; font-size: var(--t-body); }
}
.brands__line { display: none; }
@media (max-width: 639px) { .brands, .brands__more { display: none; } .brands__line { display: block; } }
/* the tablet, held upright: two screens where the stack needs them */
@media (min-width: 640px) and (max-width: 1023px) {
  #services { --h: 2 }
  .frame--map { padding: var(--s-4); }
  .develop { height: 760px; }
}
@media (min-width: 640px) and (max-width: 1279px) { #process { --h: 2 } }
@media (min-width: 1024px) and (max-width: 1279px) { #products .panel { --p-h: 260px; } }
@media (max-width: 639px) { #services, #process, #request { --hm: 2 } .develop { height: 420px; } }

.wall.letters { display: grid; gap: var(--s-5); }
@media (max-width: 639px) { .wall.letters { gap: var(--s-3); } }
.request__photo { margin-top: var(--s-6); height: 200px; border-radius: var(--r-lg); overflow: hidden; }
.request__photo .frame__img { object-position: 50% 45%; }
@media (max-width: 1023px) { .request__photo { display: none; } }
.menu-card .panel--cut .frame__img { padding: var(--s-2); }

/* a phone: the logo and the menu button only; the main action sits in the sheet and in the hero */
@media (max-width: 639px) {
  html body .nav:not(.is-open) .nav__actions { display: none; }
  html body .nav:not(.is-open) .nav__actions + .nav__toggle { margin-left: auto; }
}

/* ===== v2.1: denser layout at the client's request =====
   sections take the height of their content instead of a whole screen */
main > section.section, main > .section, footer.closing { height: auto !important; min-height: 0 !important; padding-top: 96px; padding-bottom: 96px; }
main > section.hero { height: auto !important; min-height: min(100svh, 860px); padding-bottom: 56px; }
main > section.section .wrap, footer.closing .wrap { height: auto !important; }
main > section .group + .grid { margin-top: var(--s-7); padding-top: 0 !important; }
.g2 > .wrap { display: block !important; }
@media (max-width: 1023px) { main > section.section, footer.closing { padding-top: 72px; padding-bottom: 72px; } #services, #process { --h: 1 } }
@media (max-width: 639px) { main > section.section, footer.closing { padding-top: 56px; padding-bottom: 56px; } main > section.hero { min-height: 0; } }
footer.closing .closing__links { margin-top: var(--s-8); }
.section-head { margin-bottom: var(--s-7); }

/* hero facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin: var(--s-7) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.facts dt { font: var(--display-weight) 34px/1 var(--font-display); letter-spacing: var(--display-tracking); color: var(--accent); }
.facts dd { margin: var(--s-2) 0 0; font-size: var(--t-small); color: var(--muted); line-height: 1.35; }
@media (max-width: 639px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); } .facts dt { font-size: 28px; } }

/* about: statement + four reasons */
#about { padding-bottom: 80px; }
#about .mo-wh__text { max-width: 980px; }
.why { list-style: none; margin: var(--s-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.why li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); }
.why svg { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: color-mix(in oklab, var(--accent) 10%, #fff); stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.why h3 { font-size: var(--t-card); margin: var(--s-4) 0 var(--s-2); }
.why p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
@media (max-width: 1023px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .why { grid-template-columns: 1fr; gap: var(--s-3); } .why li { padding: var(--s-5); } }

/* services photo: no taller than the list beside it */
.develop { height: 560px; }
@media (max-width: 1023px) { .develop { height: 420px; } }
@media (max-width: 639px) { .develop { height: 300px; } }

/* products: four cards in a row with what we supply in each */
#products .panel { --p-h: 190px; }
.product { display: flex; flex-direction: column; }
.product > .panel--top { margin: 0 0 var(--s-5); border: 1px solid var(--line); }
.product h3 { font-size: var(--t-card); margin-bottom: var(--s-2); }
.product > p { font-size: 15px; color: var(--muted); margin-bottom: var(--s-4); }
.ticks { list-style: none; margin: 0; padding: var(--s-4) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-2); font-size: 15px; }
.ticks li { position: relative; padding-left: 20px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.products__more { margin: var(--s-7) 0 0; padding: var(--s-5) var(--s-6); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; justify-content: space-between; }
@media (min-width: 640px) and (max-width: 1279px) { .grid.products > .product { grid-column: auto / span 6; } }
@media (max-width: 639px) { .grid.products > .product { grid-column: 1 / -1; } #products .panel { --p-h: 170px; } }

/* process cards a little shorter */
#process .panel { --p-h: 230px; }

/* clients: letters smaller, lists closer */
#clients .group + .grid { margin-top: var(--s-8); }
.letter { max-height: 360px; }

/* FAQ */
.section--faq { background: var(--g-alt, var(--surface)); }
.faq__item { padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.faq__item:first-child { padding-top: 0; }
.faq__item h3 { font-size: var(--t-card); margin: 0 0 var(--s-2); }
.faq__item p { margin: 0; color: var(--muted); }

/* v2.1 tightening */
main > section.section, main > .section, footer.closing { padding-top: 80px; padding-bottom: 80px; }
main > section.hero { min-height: 0; padding-bottom: 72px; }
#about { padding-top: 72px; }
.letter { max-height: none; }
@media (min-width: 1024px) {
  footer.closing .closing__cta.close--type { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-7); }
  footer.closing .closing__cta .section-head { margin-bottom: 0; }
  footer.closing .closing__cta > .btn--xl { align-self: auto; width: 420px; flex: none; }
}
@media (max-width: 1023px) { main > section.section, footer.closing { padding-top: 64px; padding-bottom: 64px; } }
@media (max-width: 639px) { main > section.section, footer.closing { padding-top: 56px; padding-bottom: 56px; } main > section.hero { padding-bottom: 48px; } }
@media (min-width: 1024px) {
  html body footer.closing .closing__cta.close--type { display: grid !important; grid-template-columns: minmax(0, 1fr) 420px; align-items: end; gap: var(--s-7); }
  html body footer.closing .closing__cta.close--type > .section-head { grid-column: 1 !important; grid-row: 1; max-width: none; margin: 0; }
  html body footer.closing .closing__cta.close--type > .btn--xl { grid-column: 2 !important; grid-row: 1; width: 100%; }
}

/* ===== v2.2: motion at the client's request ===== */
/* header: compact and translucent once the page scrolls */
.nav { transition: height .3s cubic-bezier(.2,.8,.2,1), background-color .3s ease, box-shadow .3s ease; }
.nav .nav__logo img { transition: height .3s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 640px) {
  .nav.is-compact { --nav: 60px; height: 60px; background: color-mix(in oklab, var(--bg) 78%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    box-shadow: 0 6px 24px -18px rgba(19, 26, 48, .45); }
  .nav.is-compact .nav__logo img { height: 19px; }
}
.nav.is-open { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* map: routes draw in, then a light runs each route slowly */
.map-anim { position: relative; width: 100%; }
.map-anim > img { display: block; }
.routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.routes__line { fill: none; stroke: #6fb6ff; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .95; }
.routes__dot { fill: #fff; stroke: #6fb6ff; stroke-width: 3; opacity: 0; offset-distance: 0%; }
.routes__hub { fill: none; stroke: #6fb6ff; stroke-width: 3; opacity: 0; transform-origin: 902px 258px; transform-box: view-box; }
.map-anim.is-armed .routes__line { stroke-dashoffset: 1; }
.map-anim.is-on .routes__line { animation: route-draw 1.1s cubic-bezier(.65,0,.35,1) calc(var(--i) * 90ms) both; }
.map-anim.is-on .routes__dot { animation: route-run 5.5s cubic-bezier(.45,0,.55,1) calc(1.3s + var(--i) * 600ms) infinite; }
.map-anim.is-on .routes__hub { animation: hub-pulse 2.8s ease-out 1.4s infinite; }
@keyframes route-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes route-run { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 55% { offset-distance: 100%; opacity: 1; } 62%, 100% { offset-distance: 100%; opacity: 0; } }
@keyframes hub-pulse { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* work steps: a line runs from step to step and each number lights up as it arrives */
.steps { position: relative; }
.steps__track { position: absolute; height: 2px; background: var(--line); border-radius: 2px; z-index: 1; pointer-events: none; }
.steps__track[hidden] { display: none; }
.steps__track > span { position: absolute; inset: 0; background: var(--accent); border-radius: inherit; transform-origin: left; transform: scaleX(1); }
#process .step-num { position: relative; z-index: 2; background: var(--accent); color: var(--accent-ink, #fff); border-color: var(--accent); transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease; }
#process .card { transition: border-color .4s ease, box-shadow .4s ease; }
.steps.is-armed .step-num { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.steps.is-armed .steps__track > span { transform: scaleX(0); }
.steps.is-on .steps__track > span { transform: scaleX(1); transition: transform 1.4s cubic-bezier(.65,0,.35,1) .35s; }
.steps.is-on .card:nth-of-type(1) .step-num { transition-delay: .1s; }
.steps.is-on .card:nth-of-type(2) .step-num { transition-delay: .95s; }
.steps.is-on .card:nth-of-type(3) .step-num { transition-delay: 1.75s; }
.steps.is-on .step-num { background: var(--accent); color: var(--accent-ink, #fff); border-color: var(--accent); box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 14%, transparent); }
.steps.is-armed .card { opacity: .55; }
.steps.is-on .card { opacity: 1; transition: opacity .5s ease; }
.steps.is-on .card:nth-of-type(2) { transition-delay: .85s; }
.steps.is-on .card:nth-of-type(3) { transition-delay: 1.65s; }

/* brand ticker: two slow rows in opposite directions */
.brands__line { display: none !important; }
.brands__more { display: block !important; margin-top: var(--s-4); }
.marquee { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); }
.marquee__track { display: grid; gap: var(--s-3); overflow: hidden; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { display: flex; width: max-content; }
.marquee__list { display: flex; gap: var(--s-3); list-style: none; margin: 0; padding: 0 var(--s-3) 0 0; }
.marquee__list li { white-space: nowrap; padding: 10px 18px; border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent); border-radius: 999px; font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
html.mo-js .marquee__row--a { animation: marquee 48s linear infinite; }
html.mo-js .marquee__row--b { animation: marquee 56s linear infinite reverse; }
.marquee:hover .marquee__row, .marquee.is-paused .marquee__row, .marquee.is-off .marquee__row { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee__pause { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid color-mix(in oklab, var(--ink) 25%, transparent); background: transparent; color: inherit; cursor: pointer; }
.marquee__pause svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.marquee__pause[aria-pressed="true"] svg path { d: path("M3.5 2l6 4-6 4z"); fill: currentColor; stroke-linejoin: round; }
@media (hover: hover) { .marquee__pause:hover { background: color-mix(in oklab, var(--ink) 10%, transparent); } }
@media (max-width: 639px) { .marquee__list li { font-size: 15px; padding: 8px 14px; } }

/* cards: the photo grows a little inside its frame on hover */
.product .panel, #process .panel { overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .product .frame__img, #process .frame__img { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
  .product:hover .frame__img, #process .card:hover .frame__img { transform: scale(1.06); }
  .product .panel, #process .panel { transition: box-shadow .4s ease, border-color .4s ease; }
  .product:hover .panel, #process .card:hover .panel { box-shadow: 0 18px 36px -24px rgba(19, 26, 48, .4); border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); }
}

/* reduced motion: finished pictures, nothing travels */
@media (prefers-reduced-motion: reduce) {
  .nav, .nav .nav__logo img { transition: none; }
  .routes__dot, .routes__hub { display: none; }
  .routes__line { animation: none !important; stroke-dashoffset: 0 !important; }
  .steps .step-num, .steps .card, .steps__track > span { transition: none !important; opacity: 1 !important; }
  .marquee__track { -webkit-mask-image: none; mask-image: none; }
  .marquee__row { animation: none !important; width: auto; }
  .marquee__list { flex-wrap: wrap; }
  .marquee__list[aria-hidden] { display: none; }
  .product .frame__img, #process .frame__img { transition: none; transform: none !important; }
}

/* v2.2 checker fixes */
.why h3, .why .why__h { font-size: var(--t-card); font-weight: 500; margin: var(--s-4) 0 var(--s-2); color: var(--ink); line-height: 1.3; }
.why p:not(.why__h) { color: #3d4356; }
.ticks li { padding-left: 0; }
.ticks li::before { left: -18px; }
@media (min-width: 1024px) {
  html body footer.closing .closing__cta.close--type { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut, 24px); }
  html body footer.closing .closing__cta.close--type > .section-head { grid-column: 1 / span 7 !important; }
  html body footer.closing .closing__cta.close--type > .btn--xl { grid-column: 9 / span 4 !important; }
}
