/* ==========================================================================
   matter® — the design system

   Extracted verbatim from /home-v6/, which reproduces Matter's own Figma
   design (Matter Brain Dump — UI, node 994:19071). V6 is the locked system;
   this file is its single source of truth.

   Carries: fonts, tokens, reset, type scale, layout, controls, the floating
   pill nav with its mega-menu, and the footer. Prefix mtr-.

   Anything unique to one page lives in that page's own stylesheet, which
   loads after this one and keeps its own prefix.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */

@font-face { font-family: "MTR"; src: url("../fonts/OverusedGrotesk-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "MTR"; src: url("../fonts/OverusedGrotesk-Book.otf") format("opentype"); font-weight: 350; font-display: swap; }
@font-face { font-family: "MTR"; src: url("../fonts/OverusedGrotesk-Roman.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MTR"; src: url("../fonts/OverusedGrotesk-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "MTR"; src: url("../fonts/OverusedGrotesk-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }

/* PP Editorial New carries the italic accents and the spec tiles. The Figma
   also calls for PP Editorial New Light and PP Editorial Old, neither of which
   is licensed here — Regular stands in for both. */
@font-face { font-family: "MTRS"; src: url("../fonts/PPEditorialNew-Ultralight.otf") format("opentype"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "MTRS"; src: url("../fonts/PPEditorialNew-UltralightItalic.otf") format("opentype"); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: "MTRS"; src: url("../fonts/PPEditorialNew-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "MTRS"; src: url("../fonts/PPEditorialNew-Italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }

/* ----------------------------------------------------------------- tokens */

:root {
  --paper: #ffffff;
  --ink: #111111;
  --ink-70: #4a4a4a;
  --ink-45: #808080;
  --ink-30: #a8a8a8;
  --rule: #e5e5e5;
  --tint: #f5f5f3;
  --dark: #14140f;              /* the claim panel, sampled from the Figma render */
  --foot: #262e25;              /* the footer ground, sampled from the macro */
  --on-dark: #ffffff;
  --on-dark-70: rgba(255, 255, 255, 0.72);
  --on-dark-40: rgba(255, 255, 255, 0.4);
  --on-dark-20: rgba(255, 255, 255, 0.22);
  --save: #c8102e;              /* SAVE percentages and live-figure emphasis only */

  --f: "MTR", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --s: "MTRS", Georgia, "Times New Roman", serif;

  --page: 1440px;
  --gut: 47px;
  --nav-h: 70px;
  --r-pill: 60px;
  --r-card: 13px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f); font-weight: 350; font-size: 16px; line-height: 1.5;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
table { border-collapse: collapse; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--ink); color: #fff; }

/* -------------------------------------------------------------------- type
   The Figma's display sizes are 132 / 55 / 51 / 50 / 45 / 38 at 1440. */

.mtr-d1   { font-weight: 500; font-size: clamp(52px, 9.2vw, 132px); line-height: .92; letter-spacing: -0.05em; }
.mtr-d2   { font-weight: 400; font-size: clamp(30px, 3.5vw, 51px);  line-height: 1.12; letter-spacing: -0.035em; }
.mtr-d3   { font-weight: 400; font-size: clamp(27px, 3.1vw, 45px);  line-height: 1.14; letter-spacing: -0.032em; }
.mtr-h4   { font-weight: 500; font-size: clamp(19px, 1.6vw, 23px);  line-height: 1.22; letter-spacing: -0.024em; }
.mtr-lede { font-size: 17px; line-height: 1.5; }
.mtr-body { font-size: 14px; line-height: 1.5; color: var(--ink-70); }
.mtr-lab  { font-weight: 600; font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; line-height: 1.3; }
.mtr-note { font-size: 11px; line-height: 1.5; color: var(--ink-45); }

/* the italic serif accent — "now live.", "real life.", "and every body." */
.mtr-it { font-family: var(--s); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.mtr-ro { font-family: var(--s); font-weight: 400; letter-spacing: -0.01em; }

/* ----------------------------------------------------------------- layout */

.mtr-wrap { max-width: var(--page); margin: 0 auto; padding-inline: var(--gut); }
.mtr-sec  { padding-block: clamp(56px, 6.4vw, 96px); }

.mtr-rev { opacity: 0; transform: translateY(16px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.mtr-rev.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mtr-rev { opacity: 1; transform: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------- controls */

.mtr-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-pill); border: 1px solid var(--ink);
  padding: 0 22px; height: 33px; font-size: 15px; letter-spacing: -0.012em;
  transition: background .22s var(--ease), color .22s var(--ease);
}
.mtr-pill:hover { background: var(--ink); color: #fff; }
.mtr-pill--onphoto { border-color: rgba(255,255,255,.85); color: #fff;
  background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mtr-pill--onphoto:hover { background: #fff; color: var(--ink); }
.mtr-pill--solid { background: var(--ink); color: #fff; }
.mtr-pill--solid:hover { background: var(--ink-70); }
/* an SVG with no intrinsic size defaults to 300x150 and blows the pill open */
.mtr-pill svg { width: 14px; height: 14px; flex: none; }

.mtr-ul { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.mtr-ul:hover { opacity: .6; }

/* the product-code pill */
.mtr-code { display: inline-flex; align-items: center; background: #fff; color: var(--ink);
  border-radius: var(--r-pill); padding: 4px 11px 5px; font-family: var(--s); font-size: 11px; }

/* ===========================================================================
   NAV — a floating white pill, 1346×70, r13, inset 47px
   =========================================================================== */

.mtr-nav { position: absolute; inset: 31px 0 auto; z-index: 60; }
.mtr-nav__in {
  max-width: var(--page); margin: 0 auto; padding-inline: var(--gut);
}
.mtr-nav__pill {
  height: var(--nav-h); background: var(--paper); border-radius: var(--r-card);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: 34px;
}
.mtr-nav__l { display: flex; align-items: center; gap: 42px; }
.mtr-nav__l a { font-size: 15px; letter-spacing: -0.012em; }
.mtr-nav__l a:hover { opacity: .55; }
.mtr-nav__mark { justify-self: center; display: flex; align-items: center; gap: 9px;
  font-weight: 500; font-size: 22px; letter-spacing: -0.05em; }
.mtr-nav__mark img { width: 18px; height: 18px; }
.mtr-nav__r { justify-self: end; display: flex; align-items: center; gap: 22px; }
.mtr-nav__loc { font-size: 15px; letter-spacing: -0.012em; }
.mtr-nav__r svg { width: 19px; height: 19px; }
.mtr-nav__r a:hover { opacity: .55; }
.mtr-bag { position: relative; }
.mtr-bag span {
  position: absolute; top: -6px; right: -7px; min-width: 15px; height: 15px;
  border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 9px; font-weight: 600; display: grid; place-items: center; padding-inline: 3px;
}
.mtr-burger { display: none; }

/* --- the nav on a light page rather than over a photograph --- */
.mtr-nav--solid { position: relative; inset: auto; padding-top: 31px; }
.mtr-nav--solid .mtr-nav__pill { border: 1px solid var(--rule); }

/* --- mega-menu, the timeline.com device carried into the pill system --- */
.mtr-nav__has { position: relative; }
.mtr-mega {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 61;
  max-width: var(--page); margin: 0 auto; padding-inline: var(--gut);
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
}
.mtr-mega[data-open="true"] { visibility: visible; opacity: 1; transform: none; }
/* the panel sits 10px below the pill; without a bridge the pointer leaves both
   on the way down and the menu shuts under the cursor */
.mtr-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.mtr-mega__in {
  background: var(--paper); border-radius: var(--r-card); padding: 34px 34px 38px;
  display: grid; grid-template-columns: minmax(200px, 0.6fr) 2.4fr; gap: clamp(26px, 3.6vw, 56px);
  box-shadow: 0 18px 50px rgba(17,17,17,.10);
}
.mtr-mega__list { display: flex; flex-direction: column; gap: 3px; }
.mtr-mega__list a {
  font-weight: 400; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.44; letter-spacing: -0.026em;
  transition: opacity .18s var(--ease);
}
.mtr-mega__list a:hover { opacity: .5; }
.mtr-mega__list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.mtr-mega__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.mtr-mega__card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--r-card); background: var(--tint); }
.mtr-mega__cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; }
.mtr-mega__cap span { font-size: 15px; letter-spacing: -0.012em; }
.mtr-mega__cap svg { width: 15px; height: 15px; flex: none; transition: transform .22s var(--ease); }
.mtr-mega__card:hover .mtr-mega__cap svg { transform: translateX(4px); }
.mtr-mega__card:hover img { opacity: .88; }

.mtr-scrim {
  position: fixed; inset: 0; z-index: 55; background: rgba(17, 17, 17, 0.2);
  opacity: 0; visibility: hidden; transition: opacity .26s var(--ease), visibility .26s;
}
.mtr-scrim[data-open="true"] { opacity: 1; visibility: visible; }

/* ===========================================================================
   FOOTER
   =========================================================================== */

.mtr-foot { position: relative; background: var(--foot); color: var(--on-dark); overflow: hidden; }
.mtr-foot__bg { position: absolute; inset: 0; }
.mtr-foot__bg img { width: 100%; height: 100%; object-fit: cover; }
.mtr-foot__bg::after { content: ""; position: absolute; inset: 0; background: rgba(20, 26, 19, .34); }
.mtr-foot__in { position: relative; padding-top: 56px; }

.mtr-foot__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr); gap: 40px; }
.mtr-foot__top h2 { max-width: 20ch; }
.mtr-news p { font-size: 17px; }
.mtr-news form { display: flex; align-items: center; gap: 14px; margin-top: 18px;
  border-bottom: 1px solid var(--on-dark-40); padding-bottom: 12px; }
.mtr-news input { flex: 1; min-width: 0; background: none; border: 0; padding: 0;
  font-family: var(--s); font-weight: 400; font-size: clamp(26px, 2.5vw, 36px); letter-spacing: -0.015em; color: #fff; }
.mtr-news input::placeholder { color: var(--on-dark-40); }
.mtr-news button svg { width: 26px; height: 26px; }
.mtr-news button:hover { opacity: .6; }

.mtr-foot__mid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 34px; align-items: end; margin-top: clamp(80px, 15.4vw, 221px); }
.mtr-foot__mid h4 { font-weight: 600; font-size: 15px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--on-dark-70); }
.mtr-foot__mid ul { margin-top: 22px; display: grid; gap: 12px; }
.mtr-foot__mid a { font-size: 17px; }
.mtr-foot__mid a:hover { opacity: .6; }

.mtr-endcap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; }
/* the emblem, with each petal filled by the same photograph */
.mtr-petals { display: grid; grid-template-columns: repeat(2, 74px); gap: 6px; }
.mtr-petals i { display: block; width: 74px; height: 54px; overflow: hidden; background: #223; }
.mtr-petals i img { width: 100%; height: 100%; object-fit: cover; }
.mtr-petals i:nth-child(1) { border-radius: 60% 60% 8px 60%; }
.mtr-petals i:nth-child(2) { border-radius: 60% 60% 60% 8px; }
.mtr-petals i:nth-child(3) { border-radius: 60% 8px 60% 60%; }
.mtr-petals i:nth-child(4) { border-radius: 8px 60% 60% 60%; }

.mtr-legal { display: grid; gap: 0; width: 100%; max-width: 300px; justify-self: end; }
.mtr-legal > * { border: 1px dashed var(--on-dark-40); border-bottom: 0; padding: 11px 14px;
  font-weight: 600; font-size: 11px; letter-spacing: 0.02em; text-align: center; }
.mtr-legal > :last-child { border: 0; background: #fff; color: var(--ink); padding: 11px 14px; }
.mtr-legal__mission { line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; }

.mtr-foot__mark { margin-top: 34px; padding-bottom: 8px; text-align: center;
  color: rgba(255,255,255,.86); }

/* ===========================================================================
   RESPONSIVE — the Figma is desktop-only, so everything below 1180 is a
   design decision made here and documented in the README.
   =========================================================================== */

@media (max-width: 1180px) {
  :root { --gut: 32px; }
  .mtr-nav__l { gap: 26px; }
  .mtr-nav__r { gap: 16px; }
}

@media (max-width: 1024px) {
  :root { --gut: 24px; }
  .mtr-nav__l a:not(:first-child), .mtr-nav__loc { display: none; }
  .mtr-mega__in { grid-template-columns: 1fr; gap: 26px; }
  .mtr-mega__cards { gap: 14px; }
  .mtr-foot__top { grid-template-columns: 1fr; }
  .mtr-foot__mid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mtr-endcap { grid-column: 1 / -1; margin-top: 40px; }
}

@media (max-width: 860px) {
  .mtr-nav__l a { display: none; }
  .mtr-burger { display: block; }
  .mtr-nav__pill { padding-inline: 20px; }
  .mtr-mega { display: none; }
  .mtr-endcap { grid-template-columns: 1fr; gap: 24px; }
  .mtr-legal { justify-self: start; }
}

@media (max-width: 768px) {
  :root { --gut: 18px; }
  body { font-size: 15px; }
  .mtr-foot__mid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
}
