.nav__utilities { display:flex; align-items:center; gap:var(--s-2); flex:none; }
.lang-switch { display:flex; gap:var(--s-2); font:500 var(--t-label)/1 var(--font-mono); align-items:center; }
.lang-switch [aria-disabled] { color:var(--muted); cursor:not-allowed; }
.theme-switch { display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; background:transparent; color:var(--ink); cursor:pointer; }
.theme-switch svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
html[data-tone="dark"] .theme-moon, html[data-tone="light"] .theme-sun { display:none; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.nav__logo { white-space:nowrap; }
.menu-card .sem { aspect-ratio:4/3; }
.sem { margin:0; overflow:hidden; background:var(--surface); border-radius:var(--r-lg); }
.sem img { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; }
.sem__bar { display:flex; align-items:center; gap:var(--s-4); min-height:40px; padding:var(--s-2) var(--s-4); background:#000; color:#fff; font:400 13px/1.3 var(--font-mono); }
.sem__name { flex:1; } .sem__mag, .sem__scale { white-space:nowrap; }
.sem__scale::before { content:""; display:block; width:var(--len,56px); max-width:100%; border-top:2px solid currentColor; margin-bottom:4px; }
.sem--card img { width:100%; height:100%; object-fit:cover; }
.sem[data-fc="cyan"] img { filter:url(#fc-cyan); } .sem[data-fc="ember"] img { filter:url(#fc-ember); } .sem[data-fc="lime"] img { filter:url(#fc-lime); } .sem[data-fc="rose"] img { filter:url(#fc-rose); }
.cat-card,.news-card { display:flex; flex-direction:column; height:100%; }
.cat-card .sem,.news-card .sem { width:100%; aspect-ratio:4/3; margin-bottom:var(--s-4); }
.news-card .sem { aspect-ratio:16/9; }
.cat-card__title,.news-card__title { margin:0 0 var(--s-2); font-size:var(--t-card); }
.cat-card__text,.news-card__text { margin:0; }
.news-card__meta { display:flex; justify-content:space-between; gap:var(--s-2); color:var(--muted); font:400 var(--t-label)/1.4 var(--font-mono); margin:0 0 var(--s-3); }
.nme-footer-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:var(--s-6); }
.footer__legal { display:flex; flex-wrap:wrap; gap:var(--s-4); }
.footer.closing { height:auto; min-height:100svh; }
.footer--statement { background:var(--ground-bg); color:var(--ground-ink); --ink:var(--ground-ink); --muted:var(--ground-muted); --line:color-mix(in oklab,var(--ground-ink) 18%,transparent); }
@media (min-width:1024px) and (max-width:1439px) { .nav__bar { gap:var(--s-2); } .nav__logo { font-size:17px; } .nav__link { padding-inline:var(--s-2); } .nav__actions .btn { padding-inline:var(--s-3); } }
@media (max-width:1023px) { .nav__utilities { margin-left:auto; } .nav:not(.is-open) .nav__actions { margin-left:0; } .nav.is-open .nav__utilities { position:relative; z-index:52; } .nav.is-open .menu-card .sem { display:none; } .nav.is-open .menu-col a { min-height:44px; } }
@media (max-width:639px) { .nav__logo { font-size:16px; } .nav__bar { gap:var(--s-1); } .nav__utilities { gap:0; } .lang-switch { gap:4px; font-size:13px; } .nav:not(.is-open) .nav__actions { display:none; } .nme-footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .sem__bar { gap:var(--s-2); padding-inline:var(--s-2); } }

@media (max-width:360px) { .nav__logo { font-size:14px; } .lang-switch { display:none; } }
.footer.closing > .wrap:has(> .closing__links:only-child) { display:block; }

/* close-word: the kit sizes .close__word for a short name; "Next Materials Era" must fit the .wrap at every width */
.footer.closing > .wrap { grid-template-columns: minmax(0, 1fr); }
.close__word { font-size: calc((min(100vw, 1440px) - 2 * var(--gut)) * 0.128); max-width: 100%; }

/* filtered cards (Insights) must hide even though cards are flex */
.cat-card[hidden], .news-card[hidden] { display:none; }
/* Outfit's ascenders are taller than the kit's .86 line box: give the name room so nothing is clipped */
.close__word { line-height: 1; overflow: visible; }

/* footer link columns: the kit spans footer columns 6 of 12 under 1024; our directory grid has its own columns */
.nme-footer-grid > .footer__col { grid-column: auto; }
@media (min-width:640px) and (max-width:1023px) { .nme-footer-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }

/* long addresses in the footer wrap instead of pushing the page wider on a phone */
.closing__links a, .closing__links li { overflow-wrap:anywhere; }

/* the legal row reads as one left-aligned list on a phone */
@media (max-width:639px) { .footer__legal { flex-direction:column; align-items:flex-start; gap:var(--s-2); } .footer__legal > * { min-height:44px; display:inline-flex; align-items:center; } }
