/* ---------- self-hosted display serif: Playfair Display (OFL 1.1) ----------
   Variable font (weight 600-700). Family name is site-prefixed
   ("May10 Display") so these global @font-face rules cannot leak
   into another site's styling. Subsets split by unicode-range. */
@font-face {
  font-family: "May10 Display";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("./font-playfair-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "May10 Display";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("./font-playfair-display-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* ============================================================
   May 10 concept — scoped under [data-site="may10"]
   Direction 2026-2030: Loom & Thread
   Fingerprint: tailor tape topnav · needle thread canvas ·
   tailored serif stitch · warp weft swatches · seam dashed
   breaks · indigo-duotone-atelier · stitch dash needle ·
   measured handwork
   Imagery: real, lawfully-licensed tailoring photography
   (Wikimedia Commons) — b&w workshop hero, thread spools, a
   suit on a mannequin, a working tailor, and a sewing-machine
   detail behind the CTA; ALL FIVE pass through one indigo/red
   multiply duotone. WebP, explicit width/height, credited
   on-page and in sources.yaml.
   ============================================================ */

[data-site="may10"] {
  --m1-canvas: #f6f3ec;
  --m1-surface: #ffffff;
  --m1-text: #1e2a3a;
  --m1-muted: #5b6673;
  --m1-red: #9a2a1f;
  --m1-red-bright: #c4372a;
  --m1-indigo: #22406b;
  --m1-indigo-deep: #182f52;
  --m1-muslin: #ede7d9;
  --m1-chalk: #fbf9f4;
  --m1-border: #dcd5c4;
  --m1-serif: "May10 Display", Georgia, "Times New Roman", "Noto Serif", serif;
  --m1-container: 74rem;
  --m1-t-fast: 150ms;
  --m1-t-base: 260ms;

  font-family: system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--m1-canvas);
  color: var(--m1-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  position: relative;
}

[data-site="may10"] *,
[data-site="may10"] *::before,
[data-site="may10"] *::after { box-sizing: border-box; }

[data-site="may10"] h1,
[data-site="may10"] h2,
[data-site="may10"] h3 {
  font-family: var(--m1-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

[data-site="may10"] p { margin: 0 0 1em; }
[data-site="may10"] ul, [data-site="may10"] ol { margin: 0; padding: 0; list-style: none; }
[data-site="may10"] a { color: var(--m1-red); }
[data-site="may10"] svg { max-width: 100%; }

[data-site="may10"] :focus-visible {
  outline: 3px solid var(--m1-red-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

[data-site="may10"] .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

[data-site="may10"] .skip {
  position: absolute;
  left: 1rem; top: -4rem;
  background: var(--m1-red);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  z-index: 100;
  text-decoration: none;
  transition: top var(--m1-t-fast) ease;
}
[data-site="may10"] .skip:focus { top: 1rem; }

[data-site="may10"] .container {
  width: min(100% - 2.5rem, var(--m1-container));
  margin-inline: auto;
}

/* thread running through the page */
[data-site="may10"] .thread {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* keep the red thread a background stitch so it never competes with type */
  opacity: 0.42;
}
[data-site="may10"] .thread svg { width: 100%; height: 100%; display: block; }
[data-site="may10"] .thread svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
[data-site="may10"] main { position: relative; z-index: 1; }

/* ---------- concept strip ---------- */
[data-site="may10"] .concept-strip {
  background: var(--m1-indigo-deep);
  color: #ccd8ea;
  font-size: 0.8rem;
  padding: 0.55rem 1rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
[data-site="may10"] .concept-tag {
  display: inline-block;
  background: var(--m1-red-bright);
  color: #fff;
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  padding: 0.12rem 0.6rem;
  margin-right: 0.5rem;
  vertical-align: 1px;
}

/* ---------- header ---------- */
[data-site="may10"] .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 244, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px dashed var(--m1-border);
}
[data-site="may10"] .header-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.65rem 0;
}
[data-site="may10"] .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--m1-indigo);
}
[data-site="may10"] .brand-glyph {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  background: var(--m1-indigo);
  border-radius: 10px;
  color: #fff;
}
[data-site="may10"] .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
[data-site="may10"] .brand-name { font-size: 1.2rem; font-weight: 900; letter-spacing: 0.08em; color: var(--m1-indigo-deep); }
[data-site="may10"] .brand-sub {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--m1-red);
  text-transform: uppercase;
}
[data-site="may10"] .main-nav { margin-left: auto; }
[data-site="may10"] .main-nav ul { display: flex; gap: 0.15rem; flex-wrap: wrap; }
[data-site="may10"] .main-nav a {
  display: block;
  text-decoration: none;
  color: var(--m1-text);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  transition: background var(--m1-t-fast) ease, color var(--m1-t-fast) ease;
}
[data-site="may10"] .main-nav a:hover { background: var(--m1-indigo); color: #fff; }
[data-site="may10"] .header-cta {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  background: var(--m1-red);
  padding: 0.6rem 1.05rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: background var(--m1-t-fast) ease;
}
[data-site="may10"] .header-cta:hover { background: var(--m1-red-bright); }

[data-site="may10"] .nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  margin-left: auto;
}
[data-site="may10"] .nav-toggle span {
  width: 24px; height: 3px;
  background: var(--m1-indigo);
}

/* ---------- hero ---------- */
[data-site="may10"] .hero {
  background:
    radial-gradient(48rem 26rem at 108% -10%, var(--m1-muslin) 0%, transparent 60%),
    var(--m1-canvas);
  padding: 3.75rem 0;
}
[data-site="may10"] .hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 2.75rem;
  align-items: center;
}
[data-site="may10"] .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--m1-red);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
[data-site="may10"] .eyebrow-dark { color: #5a5140; }
[data-site="may10"] .chip {
  background: var(--m1-indigo);
  color: #fff;
  padding: 0.18rem 0.7rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}
[data-site="may10"] .hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.7rem);
  margin-bottom: 0.35em;
}
[data-site="may10"] .hero h1 em { font-style: italic; color: var(--m1-indigo); }
[data-site="may10"] .lede { color: var(--m1-muted); max-width: 40rem; }
[data-site="may10"] .hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }

[data-site="may10"] .btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  border-radius: 8px;
  padding: 0.85rem 1.55rem;
  border: 2px solid transparent;
  transition: transform var(--m1-t-fast) ease, background var(--m1-t-fast) ease, border-color var(--m1-t-fast) ease;
}
[data-site="may10"] .btn-thread { background: var(--m1-red); color: #fff; }
[data-site="may10"] .btn-thread:hover { background: var(--m1-red-bright); transform: translateY(-2px); }
[data-site="may10"] .btn-outline { color: var(--m1-indigo); border-color: var(--m1-indigo); }
[data-site="may10"] .btn-outline:hover { border-color: var(--m1-red); color: var(--m1-red); }
[data-site="may10"] .btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }

/* hero: real workshop photograph under an indigo/red duotone */
[data-site="may10"] .hero-fabric { margin: 0; }
[data-site="may10"] .hero-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 50px -34px rgba(24, 47, 82, 0.6);
}
[data-site="may10"] .hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 42%;
  filter: grayscale(0.85) contrast(1.16) brightness(0.95);
}
[data-site="may10"] .hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(194deg, rgba(34, 64, 107, 0.72) 0%, rgba(34, 64, 107, 0.2) 44%, rgba(154, 42, 31, 0.44) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
[data-site="may10"] .hero-label {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fbf9f4;
  background: rgba(24, 47, 82, 0.55);
  padding: 0.24rem 0.6rem;
  border-left: 3px solid var(--m1-red-bright);
}
[data-site="may10"] .hero-thread {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--m1-red-bright) 0 12px, rgba(251, 249, 244, 0.5) 12px 22px);
}
[data-site="may10"] .hero-fabric figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  margin-top: 0.85rem;
  font-size: 0.74rem;
  color: var(--m1-muted);
}
[data-site="may10"] .m1-mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--m1-red);
}

/* ---------- documentary plates (real photography) ---------- */
[data-site="may10"] .plate { margin: 0 0 2rem; }
[data-site="may10"] .plate-media {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--m1-indigo-deep);
}
[data-site="may10"] .plate-portrait .plate-media { aspect-ratio: 16 / 7; }
[data-site="may10"] .plate img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  filter: grayscale(0.78) contrast(1.16) brightness(0.93);
}
[data-site="may10"] .plate-portrait img { object-position: 50% 34%; }
[data-site="may10"] .plate-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(194deg, rgba(34, 64, 107, 0.66) 0%, rgba(34, 64, 107, 0.18) 46%, rgba(154, 42, 31, 0.44) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
[data-site="may10"] .plate figcaption {
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 2px dashed var(--m1-border);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--m1-muted);
}

/* cta: photograph as the closing band material */
[data-site="may10"] .cta { position: relative; overflow: hidden; padding: 4.5rem 0; }
[data-site="may10"] .cta-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  filter: grayscale(0.9) contrast(1.18) brightness(0.6);
}
[data-site="may10"] .cta-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 47, 82, 0.82) 0%, rgba(34, 64, 107, 0.72) 55%, rgba(154, 42, 31, 0.6) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
[data-site="may10"] .cta-inner { position: relative; z-index: 2; }
[data-site="may10"] .cta h2 { color: #fbf9f4; }
[data-site="may10"] .cta-credit {
  position: relative;
  z-index: 2;
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.68rem;
  color: rgba(251, 249, 244, 0.66);
}

/* stitch underline headings */
[data-site="may10"] .stitch {
  display: inline-block;
  background-image: linear-gradient(90deg, var(--m1-red) 55%, transparent 45%);
  background-size: 14px 3px;
  background-repeat: repeat-x;
  background-position: 0 100%;
  padding-bottom: 0.35rem;
}

/* ---------- sections ---------- */
[data-site="may10"] .section { padding: 4rem 0; }
[data-site="may10"] .section-head { max-width: 44rem; margin-bottom: 2.25rem; }
[data-site="may10"] .section-head h2 { font-size: clamp(1.85rem, 3.5vw, 2.6rem); }
[data-site="may10"] .section-note { color: var(--m1-muted); }

/* swatches */
[data-site="may10"] .swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem 1.25rem;
}
[data-site="may10"] .swatch {
  background: var(--m1-surface);
  border: 2px dashed var(--m1-border);
  border-radius: 14px;
  padding: 1.6rem 1.55rem 1.5rem;
  position: relative;
  transform: rotate(-0.6deg);
  transition: transform var(--m1-t-fast) ease, border-color var(--m1-t-fast) ease;
}
[data-site="may10"] .swatch:nth-child(even) { transform: rotate(0.6deg) translateY(10px); }
[data-site="may10"] .swatch:hover { transform: rotate(0deg) translateY(-3px); border-color: var(--m1-red); }
[data-site="may10"] .swatch-indigo { background: var(--m1-indigo-deep); border-color: rgba(255,255,255,.28); }
[data-site="may10"] .swatch-grid .swatch-indigo h3 { color: #fff; }
[data-site="may10"] .swatch-grid .swatch-indigo p { color: #d4deee; }
[data-site="may10"] .swatch-indigo .swatch-code { color: #e8a79d; }
[data-site="may10"] .swatch-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--m1-red);
}
[data-site="may10"] .swatch h3 { font-size: 1.3rem; margin: 0.35em 0 0.3em; }
[data-site="may10"] .swatch p { margin: 0; color: var(--m1-muted); font-size: 0.93rem; }

/* veston metrics */
[data-site="may10"] .veston { background: var(--m1-muslin); }
[data-site="may10"] .metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
[data-site="may10"] .metric {
  border-radius: 14px;
  padding: 1.5rem 1.35rem;
  background: var(--m1-surface);
  border: 2px dashed var(--m1-border);
}
[data-site="may10"] .metric-red { background: var(--m1-red); border-color: var(--m1-red); color: #fff; }
[data-site="may10"] .metric-indigo { background: var(--m1-indigo); border-color: var(--m1-indigo); color: #fff; }
[data-site="may10"] .metric-value {
  display: block;
  font-family: var(--m1-serif);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
[data-site="may10"] .metric-label { font-size: 0.84rem; }
[data-site="may10"] .veston-note { margin-top: 1.5rem; color: var(--m1-muted); max-width: 46rem; }

/* tape history */
[data-site="may10"] .tape-history {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}
[data-site="may10"] .tape-history li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.4rem;
  align-items: baseline;
  background: var(--m1-surface);
  border: 2px dashed var(--m1-border);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
}
[data-site="may10"] .t-year {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--m1-indigo);
}
[data-site="may10"] .tape-history p { margin: 0; color: var(--m1-muted); font-size: 0.94rem; }

[data-site="may10"] .fact-card {
  background: var(--m1-surface);
  border: 2px dashed var(--m1-border);
  padding: 1.5rem 1.6rem;
  display: grid;
  gap: 0.9rem;
  margin: 0;
  max-width: 46rem;
  border-radius: 12px;
}
[data-site="may10"] .fact-card div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--m1-border);
}
[data-site="may10"] .fact-card div:last-child { border-bottom: 0; padding-bottom: 0; }
[data-site="may10"] .fact-card dt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--m1-muted);
}
[data-site="may10"] .fact-card dd { margin: 0; font-weight: 600; font-size: 0.95rem; }

/* cta */
[data-site="may10"] .cta { padding: 4rem 0; text-align: center; }
[data-site="may10"] .cta-inner h2 { font-size: clamp(1.85rem, 3.5vw, 2.5rem); }

/* footer */
[data-site="may10"] .site-footer {
  background: var(--m1-indigo-deep);
  color: #c2cfe3;
  padding: 3.25rem 0 2rem;
  border-top: 3px dashed rgba(255, 255, 255, 0.25);
}
[data-site="may10"] .footer-brand { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
[data-site="may10"] .f-name { color: #fff; font-size: 1.3rem; font-weight: 900; letter-spacing: 0.08em; }
[data-site="may10"] .f-sub { font-size: 0.8rem; color: #e8a79d; }
[data-site="may10"] .footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 1.6rem; }
[data-site="may10"] .footer-nav a { color: #e6ecf5; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
[data-site="may10"] .footer-nav a:hover { color: #e8a79d; }
[data-site="may10"] .disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.4rem;
  font-size: 0.82rem;
  color: #a3b4cc;
  max-width: 60rem;
}
[data-site="may10"] .colophon { font-size: 0.75rem; color: #8497b2; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  [data-site="may10"] .hero-grid { grid-template-columns: 1fr; }
  [data-site="may10"] .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  [data-site="may10"] .swatch-grid { grid-template-columns: 1fr 1fr; }
  [data-site="may10"] .plate-media { aspect-ratio: 16 / 9; }
  [data-site="may10"] .plate-portrait .plate-media { aspect-ratio: 4 / 3; }
}

@media (max-width: 760px) {
  [data-site="may10"] .nav-toggle { display: flex; }
  [data-site="may10"] .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--m1-chalk);
    border-bottom: 2px dashed var(--m1-border);
    padding: 0.75rem 1.25rem 1.25rem;
  }
  [data-site="may10"] .main-nav.is-open { display: block; }
  [data-site="may10"] .main-nav ul { flex-direction: column; gap: 0.25rem; }
  [data-site="may10"] .header-cta { display: none; }
  [data-site="may10"] .swatch-grid { grid-template-columns: 1fr; }
  [data-site="may10"] .swatch, [data-site="may10"] .swatch:nth-child(even) { transform: none; }
  [data-site="may10"] .thread { display: none; }
}

@media (max-width: 520px) {
  [data-site="may10"] .metrics-grid { grid-template-columns: 1fr; }
  [data-site="may10"] .section { padding: 3rem 0; }
  [data-site="may10"] .tape-history li { grid-template-columns: 1fr; gap: 0.3rem; }
  [data-site="may10"] .fact-card div { grid-template-columns: 1fr; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-site="may10"] * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- polish: motion layer 2 ---------- */
[data-site="may10"] .stitch {
  animation: m1-march 1.4s linear infinite;
}
@keyframes m1-march {
  to { background-position: 14px 100%; }
}
[data-site="may10"] .swatch:hover .swatch-code {
  display: inline-block;
  animation: m1-sew 0.5s ease;
}
@keyframes m1-sew {
  35% { transform: translateX(5px); }
  70% { transform: translateX(-3px); }
}
[data-site="may10"] .thread path {
  animation: m1-thread 26s linear infinite alternate;
}
@keyframes m1-thread {
  to { transform: translateY(26px); }
}
