/* ==== Nov 3 (NG, item 14): the new style match (public/fad/match.js) ====
   The approved mock-ups (/root/ew/nov3/mock: Main, Touch, Photo, Phone*) on the site's own tokens (css/style.css).
   Dark, full screen over the page; the site nav steps aside while it is open. Reduced motion: nothing moves. */
.fd-sm.sm { position: fixed; inset: 0; z-index: 9550; padding: 0; min-height: 0; overflow: hidden auto; background: var(--ink); color: var(--stone); font-family: var(--sans); --line: rgba(220, 217, 206, .22); --soft: #a8a499; --bright: #f1eee6; --red: #c4553f; -webkit-tap-highlight-color: transparent; overscroll-behavior: contain; }
html.sm-open { overflow: hidden; }
html.sm-open .nav, html.sm-open .menu { visibility: hidden; }
.sm a { color: var(--stone); }
.sm a:hover { color: #fff; }
.sm-fade { animation: sm-fade .5s var(--ease) both; }
@keyframes sm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sm-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sm-in { animation: sm-in .8s var(--ease) both; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }

/* type and buttons */
.sm-label { margin: 0; font: 500 12px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--soft); }
.sm-h1 { margin: 0; font: 300 clamp(44px, 5.3vw, 76px)/1.02 var(--display); letter-spacing: -.015em; color: var(--bright); max-width: 13ch; }
.sm-h1--style { font-size: clamp(44px, 5.8vw, 84px); line-height: 1; }
.sm-h1--photo { font-size: clamp(40px, 4.4vw, 64px); max-width: 16ch; }
.sm-h2 { margin: 0; font: 300 clamp(34px, 3.1vw, 44px)/1.05 var(--display); color: var(--bright); }
.sm-lead { margin: 0; font-size: 17px; line-height: 1.6; color: #c9c5b9; max-width: 480px; }
.sm-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sm-btn { font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; border-radius: 999px; padding: 17px 28px; min-height: 48px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box; transition: background .3s, color .3s, border-color .3s; }
.sm-btn--solid { background: var(--stone); color: var(--ink) !important; border: 1px solid var(--stone); }
.sm-btn--solid:hover { background: #fff; }
.sm-btn--line { background: transparent; color: var(--stone); border: 1px solid rgba(220, 217, 206, .55); }
.sm-btn--line:hover { border-color: var(--stone); color: #fff; }
.sm-link { background: none; border: 0; padding: 12px 0; min-height: 44px; font: 400 14px/1 var(--sans); color: #b9b5aa; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.sm-link:hover { color: #fff; }
.sm-link[disabled] { opacity: .35; cursor: default; text-decoration: none; }
.sm-quiet { font-size: 14px; color: var(--soft) !important; text-underline-offset: 4px; padding: 0; min-height: 44px; display: inline-flex; align-items: center; }
.sm-up { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.sm :focus-visible { outline: 2px solid var(--stone); outline-offset: 3px; }
.sm [tabindex="-1"]:focus, .sm [tabindex="-1"]:focus-visible { outline: none; }

/* the photos with depth (depth.js draws over the img; the img stays as the fallback) */
.fd-depth { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .9s var(--ease); }
.fd-depth.is-on { opacity: 1; }

/* ---------- intro ---------- */
.sm-intro { min-height: 100svh; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sm-intro__text { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 96px 72px 64px 96px; }
.sm-intro__text .sm-row { margin-top: 8px; }
.sm-intro__text .sm-quiet { align-self: flex-start; }
.sm-intro__pic { position: relative; overflow: hidden; min-height: 320px; }
.sm-intro__pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sm-intro__pic .fd-depth { z-index: 0; }
@keyframes sm-drift { from { transform: scale(1.08) translate3d(-1.5%, 0, 0); } to { transform: scale(1.08) translate3d(1.5%, -1%, 0); } }
.sm-drift { animation: sm-drift 14s ease-in-out infinite alternate; }
.sm-intro__pic.has-depth .sm-drift { animation: none; }
.sm-intro__fade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink) 0%, rgba(32, 32, 30, 0) 30%); }
.sm-intro__thumbs { position: absolute; right: 48px; bottom: 48px; z-index: 2; display: flex; gap: 10px; }
.sm-intro__thumbs img { width: 92px; height: 120px; object-fit: cover; border-radius: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }

/* ---------- rounds ---------- */
.sm-round { height: 100svh; display: flex; flex-direction: column; }
.sm-top { height: 96px; flex: none; display: flex; align-items: center; gap: 40px; padding: 0 48px; box-sizing: border-box; }
.sm-top .sm-label { white-space: nowrap; }
.sm-segs { flex: 1 1 auto; display: flex; gap: 8px; }
.sm-seg { height: 2px; flex: 1 1 0; background: var(--line); transition: background .6s var(--ease); }
.sm-seg.is-on { background: var(--stone); }
.sm-seg.is-now { background: var(--red); }
.sm-stage { position: relative; flex: 1 1 auto; min-height: 0; }
.sm-pair { display: flex; gap: 2px; height: 100%; }
.sm-pick { position: relative; flex: 1 1 0; min-width: 0; border: 0; padding: 0; margin: 0; background: #2a2a27; cursor: pointer; overflow: hidden; color: inherit; transition: flex-grow .7s var(--ease), opacity .4s; font: inherit; text-align: left; }
.sm-pick > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease), filter .7s; }
.sm-pick .fd-depth { transition: opacity .9s var(--ease), filter .7s; }
.sm-shade { position: absolute; inset: auto 0 0 0; height: 46%; z-index: 1; background: linear-gradient(to top, rgba(20, 20, 18, .86), rgba(20, 20, 18, 0)); }
.sm-cap { position: absolute; left: 40px; right: 90px; bottom: 36px; z-index: 2; text-align: left; color: var(--bright); }
.sm-cap b { display: block; font: 300 clamp(40px, 3.9vw, 56px)/1 var(--display); letter-spacing: -.01em; }
.sm-cap span { display: block; margin-top: 12px; font: 400 15px/1.5 var(--sans); color: #d6d2c6; max-width: 360px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.sm-key { position: absolute; right: 28px; bottom: 36px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(241, 238, 230, .7); color: var(--bright); font: 500 13px/34px var(--sans); text-align: center; }
.sm-or { display: none; }
.sm-q { position: absolute; left: 50%; top: 36px; transform: translateX(-50%); z-index: 3; margin: 0; padding: 12px 22px; border-radius: 999px; background: rgba(32, 32, 30, .78); font: 400 20px/1.2 var(--display); color: var(--bright); white-space: nowrap; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .sm-pick:hover, .sm-pick:focus-visible { flex-grow: 1.45; }
  .sm-pick:hover > img { transform: scale(1) translate3d(-1%, 0, 0); }
  .sm-pair:hover .sm-pick:not(:hover) > img, .sm-pair:hover .sm-pick:not(:hover) .fd-depth { filter: brightness(.55) saturate(.8); }
  .sm-pick:hover .sm-cap span, .sm-pick:focus-visible .sm-cap span { opacity: 1; transform: none; }
}
.sm-pick:focus-visible { outline: 2px solid var(--stone); outline-offset: -6px; }
.sm-pick.is-picked { flex-grow: 2.2; }
.sm-pick.is-picked .sm-key { background: var(--red); border-color: var(--red); }
.sm-pair:has(.is-picked) .sm-pick:not(.is-picked) { opacity: .35; }
.sm-pick.is-both .sm-key { background: rgba(220, 217, 206, .25); }
.sm-foot { height: 92px; flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; padding: 0 48px; box-sizing: border-box; }
.sm-foot__mid { display: flex; align-items: center; justify-content: center; gap: 16px; }
.sm-foot__mid p { margin: 0; font-size: 13px; color: var(--soft); max-width: 190px; line-height: 1.4; }
.sm-foot__end { text-align: right; }
.sm-compass { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(220, 217, 206, .35); }
.sm-compass i { position: absolute; background: rgba(220, 217, 206, .2); }
.sm-compass i.v { left: 50%; top: 4px; bottom: 4px; width: 1px; }
.sm-compass i.h { top: 50%; left: 4px; right: 4px; height: 1px; }
.sm-compass b { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(196, 85, 63, .25); transition: left .8s var(--ease), top .8s var(--ease); }
.sm-compass--s { width: 40px; height: 40px; }

/* ---------- bonus round ---------- */
.sm-touch { position: relative; height: 100svh; overflow: hidden; }
.sm-touch__pic { position: absolute; inset: 0; overflow: hidden; }
.sm-touch__frame { position: absolute; }
.sm-touch__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sm-touch__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(32, 32, 30, .72) 0%, rgba(32, 32, 30, 0) 18%, rgba(32, 32, 30, 0) 62%, rgba(32, 32, 30, .7) 100%); }
.sm-top--over { position: absolute; left: 0; right: 0; top: 0; z-index: 3; }
.sm-top--over .sm-label, .sm-top--over .sm-quiet { color: #d6d2c6 !important; }
.sm-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sm-lines path { fill: rgba(241, 238, 230, 0); stroke: rgba(241, 238, 230, 0); stroke-width: 2.5; vector-effect: non-scaling-stroke; transition: fill .5s, stroke .5s; }
.sm-lines path.is-on { fill: rgba(196, 85, 63, .14); stroke: #f1eee6; }
@keyframes sm-pulse { 0% { box-shadow: 0 0 0 0 rgba(241, 238, 230, .55); } 100% { box-shadow: 0 0 0 18px rgba(241, 238, 230, 0); } }
.sm-spot { position: absolute; z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 1.5px solid var(--bright); background: rgba(32, 32, 30, .25); cursor: pointer; padding: 0; animation: sm-pulse 2.2s ease-out infinite; }
.sm-spot.is-on { background: var(--red); border-color: var(--red); animation: none; }
.sm-tag { position: absolute; z-index: 2; transform: translate(30px, -50%); padding: 9px 14px; border-radius: 999px; background: rgba(32, 32, 30, .82); color: var(--bright); font: 500 13px/1 var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .4s; }
.sm-tag.is-on { opacity: 1; }
.sm-sheet { position: absolute; z-index: 4; left: 50%; bottom: 40px; transform: translateX(-50%); width: 420px; box-sizing: border-box; padding: 32px; border-radius: 6px; background: rgba(32, 32, 30, .9); display: flex; flex-direction: column; gap: 18px; }
.sm-sheet__p { margin: 0; font-size: 15px; line-height: 1.6; color: #c9c5b9; }
.sm-grab { display: none; }
.sm-found { display: flex; flex-direction: column; gap: 10px; }
.sm-found:not(:empty) { padding-top: 16px; border-top: 1px solid rgba(220, 217, 206, .16); }
.sm-mat { display: flex; align-items: center; gap: 14px; }
.sm-mat img, .sm-mat i { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: #3a3833; }
.sm-mat p { margin: 0; font-size: 15px; color: var(--bright); }
.sm-mat p.sm-mat__sub { margin-top: 2px; font-size: 13px; color: var(--soft); }
.sm-count { margin: 0; font-size: 13px; color: var(--soft); }
.sm-back { align-self: flex-start; padding-bottom: 0; }

/* ---------- Your style ---------- */
.sm-style { min-height: 100svh; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; padding: 72px; box-sizing: border-box; }
.sm-style__you { display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.sm-style__them { display: flex; flex-direction: column; justify-content: center; }
.sm-style__them .sm-label { margin-bottom: 6px; }
.sm-chosen { display: flex; gap: 8px; flex-wrap: wrap; }
.sm-chosen img { width: 84px; height: 84px; object-fit: cover; border-radius: 4px; }
.sm-chosen img.is-both { outline: 1px dashed rgba(220, 217, 206, .5); outline-offset: 2px; }
.sm-chosen img[alt="The photo you added"] { width: 180px; height: 130px; }
.sm-touchline { margin: 0; font-size: 14px; color: #c9c5b9; }
.sm-card { display: flex; gap: 20px; align-items: center; padding: 20px 0; border-top: 1px solid rgba(220, 217, 206, .16); }
.sm-card__pt { position: relative; flex: none; width: 80px; height: 80px; border-radius: 50%; border: 1.5px solid var(--red); display: grid; place-items: center; box-sizing: border-box; }
.sm-card__pt.is-good { border-color: rgba(220, 217, 206, .5); border-width: 1px; }
.sm-card__pt .fd-pt { --s: 70px; }
.sm-card__t { flex: 1 1 auto; min-width: 0; }
.sm-card__tag { margin: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #e3a093; }
.sm-card h3 { margin: 4px 0 2px; font: 400 26px/1.15 var(--display); color: var(--bright); }
.sm-card h3 a { color: inherit !important; text-decoration: none; }
.sm-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sm-card__why { margin: 0; font-size: 14px; color: #b9b5aa; overflow-wrap: anywhere; }
.sm-card__ph { flex: none; width: 104px; height: 80px; object-fit: cover; border-radius: 3px; }
.sm-note, .sm-wait { margin: 18px 0 0; font-size: 13px; color: var(--soft); line-height: 1.5; }

/* ---------- Start from a photo ---------- */
.sm-photo { min-height: 100svh; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; padding: 72px; box-sizing: border-box; }
.sm-photo__pic, .sm-photo__side { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.sm-photo__side { gap: 24px; }
.sm-drop { position: relative; height: min(620px, 70svh); border: 1px dashed rgba(220, 217, 206, .4); border-radius: 6px; display: grid; place-items: center; cursor: pointer; text-align: center; transition: border-color .3s, background .3s; }
.sm-drop.is-over, .sm-drop:hover { border-color: var(--stone); background: rgba(220, 217, 206, .04); }
.sm-drop:focus-within { outline: 2px solid var(--stone); outline-offset: 3px; }
.sm-drop__in { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 340px; padding: 24px; }
.sm-drop__in b { font: 300 28px/1.15 var(--display); color: var(--bright); }
.sm-drop__in > span:not(.sm-btn) { font-size: 14px; color: var(--soft); line-height: 1.5; }
.sm-private { margin: 0; font-size: 13px; color: var(--soft); display: flex; gap: 8px; align-items: center; }
.sm-shot { position: relative; height: min(620px, 70svh); border-radius: 6px; overflow: hidden; }
.sm-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes sm-scan { 0% { top: 0; } 100% { top: 100%; } }
.sm-scan { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, rgba(196, 85, 63, 0), var(--red), rgba(196, 85, 63, 0)); box-shadow: 0 0 24px 6px rgba(196, 85, 63, .35); animation: sm-scan 3.2s var(--ease-io) infinite alternate; }
.sm-scan.is-done { opacity: 0; transition: opacity .6s; }
.sm-load { height: 4px; background: rgba(220, 217, 206, .18); max-width: 480px; }
.sm-load i { display: block; height: 100%; width: 0; background: var(--stone); transition: width .3s; }
.sm-load__t { margin: 0; font-size: 14px; color: var(--soft); }
.sm-err { margin: 0; font-size: 15px; color: #e3a093; max-width: 480px; }
.sm-scales { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; max-width: 560px; }
.sm-scale { display: grid; grid-template-columns: 110px minmax(0, 1fr) 110px; align-items: center; column-gap: 16px; }
.sm-scale span { font-size: 14px; color: var(--soft); }
.sm-scale span.on { color: var(--bright); }
.sm-scale span:last-child { text-align: right; }
.sm-scale input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: grab; }
.sm-scale input[type=range]::-webkit-slider-runnable-track { height: 4px; background: rgba(220, 217, 206, .18); }
.sm-scale input[type=range]::-moz-range-track { height: 4px; background: rgba(220, 217, 206, .18); }
.sm-scale input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--stone); border: 0; }
.sm-scale input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--stone); border: 0; }
.sm-close { font-size: 15px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .sm-intro__text { padding: 96px 48px 56px 56px; }
  .sm-style, .sm-photo { padding: 56px 48px; column-gap: 36px; }
  .sm-card__ph:nth-of-type(2) { display: none; }
}
@media (max-width: 900px) {
  .sm-style { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .sm-photo { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
}
/* phones: the mock-ups PhoneRound, PhoneTouch and PhoneReveal */
@media (max-width: 767px) {
  .sm-intro { grid-template-columns: minmax(0, 1fr); grid-template-rows: 42svh auto; }
  .sm-intro__pic { order: -1; min-height: 0; }
  .sm-intro__fade { background: linear-gradient(0deg, var(--ink) 0%, rgba(32, 32, 30, 0) 45%); }
  .sm-intro__thumbs { display: none; }
  .sm-intro__text { padding: 8px 20px 32px; gap: 18px; justify-content: flex-start; }
  .sm-h1 { font-size: 40px; }
  .sm-lead { font-size: 15px; }
  .sm-intro__text .sm-btn { width: 100%; }
  .sm-top { height: auto; flex-wrap: wrap; gap: 6px 12px; padding: 12px 20px 14px; }
  .sm-top .sm-label { font-size: 11px; flex: 1 1 auto; }
  .sm-top .sm-segs { order: 3; flex: 1 1 100%; gap: 6px; }
  .sm-up { font-size: 12px; padding: 12px 0; }
  .sm-pair { flex-direction: column; }
  .sm-pick { flex: 1 1 0; min-height: 0; width: 100%; }
  .sm-pick.is-drag { transition: none; }
  .sm-pick > img { transform: none; }
  .sm-shade { height: 60%; }
  .sm-cap { left: 20px; right: 64px; bottom: 18px; }
  .sm-cap b { font-size: 34px; }
  .sm-cap span { opacity: 1; transform: none; margin-top: 6px; font-size: 13px; line-height: 1.45; }
  .sm-key { right: 16px; bottom: 18px; }
  .sm-or { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--bright); font: 400 16px/52px var(--display); text-align: center; }
  .sm-q { top: 12px; font-size: 16px; padding: 10px 16px; }
  .sm-foot { height: 76px; display: flex; justify-content: space-between; gap: 12px; padding: 0 20px; }
  .sm-foot > div:first-child { order: 2; }
  .sm-foot__mid { order: 1; gap: 10px; justify-content: flex-start; flex: 1 1 auto; min-width: 0; }
  .sm-foot__mid p { font-size: 12px; max-width: 150px; order: -1; }
  .sm-foot__end { order: 3; }
  .sm-foot .sm-compass { width: 40px; height: 40px; }
  .sm-foot .sm-link { font-size: 13px; }
  .sm-sheet { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: auto; border-radius: 16px 16px 0 0; background: var(--ink); padding: 14px 20px 24px; gap: 12px; max-height: 62svh; overflow: auto; }
  .sm-grab { display: block; width: 36px; height: 4px; border-radius: 2px; background: rgba(220, 217, 206, .3); align-self: center; }
  .sm-sheet__p { display: none; }
  .sm-sheet .sm-h2 { position: fixed; left: 20px; right: 20px; top: 86px; font-size: 34px; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
  .sm-sheet .sm-row { flex-wrap: nowrap; }
  .sm-sheet .sm-btn { flex: 1 1 auto; }
  .sm-sheet .sm-back { display: none; }
  .sm-tag { display: none; }
  .sm-style { padding: 24px 20px; row-gap: 26px; }
  .sm-style__you { gap: 14px; justify-content: flex-start; }
  .sm-h1--style { font-size: 46px; }
  .sm-chosen { gap: 6px; flex-wrap: nowrap; }
  .sm-chosen img { width: calc((100% - 24px) / 5); height: auto; aspect-ratio: 1; }
  .sm-style__you .sm-row { order: 9; flex-direction: column; align-items: stretch; gap: 6px; }
  .sm-style__you .sm-row .sm-btn { width: 100%; }
  .sm-card { gap: 14px; padding: 14px 0; }
  .sm-card__pt { width: 58px; height: 58px; }
  .sm-card__pt .fd-pt { --s: 50px; }
  .sm-card h3 { font-size: 20px; }
  .sm-card__why { font-size: 12px; }
  .sm-card__ph { width: 64px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .sm *, .sm *::before, .sm *::after { animation: none !important; transition: none !important; }
  .sm-pick > img { transform: none !important; }
  .sm-tag.is-on { opacity: 1; }
}
