/* HiFiTurk — /markalar/
   A typographic brand index: huge serif names stacked full width. Hover (or focus) reveals origin, year,
   a famous model and one line; choosing a name opens its story in place. Every accent uses the mood
   variables (--accent, --accent-soft, --glow, --brass-line) so the page follows the radio. */

/* ---------- hero: one word, one sentence ---------- */
.mk-hero { padding-bottom: clamp(48px, 7vw, 104px); }
.mk-hero__grid {
  display: grid; gap: 28px clamp(32px, 6vw, 96px);
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: end;
}
.mk-hero .mk-hero__title { font-size: clamp(4.2rem, 1rem + 9vw, 10rem); line-height: .88; margin: 0; max-width: none; letter-spacing: -.04em; }
.mk-hero__side { display: grid; gap: 18px; justify-items: start; padding-bottom: .6rem; }
.mk-hero__lede { margin: 0; font-size: var(--step-1); line-height: 1.45; color: #C3C9CF; max-width: 34ch; }
.mk-hero__ask {
  color: var(--fg); text-decoration: none; font-weight: 600; font-size: var(--step-0);
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .5s cubic-bezier(.16,1,.3,1), color .3s;
}
.mk-hero__ask:hover { background-size: 40% 1px; color: var(--accent-soft); }

/* ---------- index head ---------- */
.mx-wrap { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 120px); }
.mx-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  padding-bottom: 16px;
}
.mx-head h2 { font-size: var(--step-2); margin: 0; letter-spacing: -.01em; }
.mx-hint { margin: 0; font-size: var(--step--1); color: var(--muted); }
.mx-hint__touch { display: none; }
@media (hover: none), (max-width: 860px) { .mx-hint__fine { display: none; } .mx-hint__touch { display: inline; } }

/* ---------- the index ---------- */
.mx { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--brass-line); }
.mx__item { border-bottom: 1px solid var(--line); scroll-margin-top: 92px; transition: border-color .5s; }
.mx__item.is-open { border-bottom-color: var(--brass-line); }
.mx__h { margin: 0; font: inherit; }

.mx__btn {
  width: 100%; display: grid; align-items: center;
  grid-template-columns: auto minmax(0, 1fr) 44px; gap: 0 clamp(20px, 3vw, 48px);
  padding: clamp(8px, 1.1vw, 18px) 0;
  border: 0; background: none; color: var(--fg); cursor: pointer; text-align: left; font: inherit;
}
.mx__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.mx__name {
  display: block;
  font-family: var(--serif); font-weight: 300; font-optical-sizing: auto;
  font-size: clamp(2.9rem, 1rem + 8.2vw, 9.6rem); line-height: .94; letter-spacing: -.035em;
  padding-bottom: .04em;
  transition: transform .8s cubic-bezier(.16,1,.3,1), color .45s var(--ease);
}

/* peek: origin, year, famous model, one line */
.mx__peek {
  justify-self: end; display: grid; gap: 8px; text-align: right; max-width: 34ch;
  clip-path: inset(0 0 0 100%); opacity: 0;
  transition: clip-path .75s cubic-bezier(.76,0,.24,1), opacity .4s var(--ease);
}
.mx__meta { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 22px; font-size: var(--step--1); color: var(--muted); font-feature-settings: "tnum" 1; }
.mx__famous { font-family: var(--serif); font-style: italic; font-size: 1.1em; color: var(--accent-soft); }
.mx__line { font-family: var(--serif); font-size: var(--step-1); font-weight: 350; line-height: 1.25; color: var(--fg); }

/* plus / minus */
.mx__sign { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); transition: border-color .4s, transform .8s cubic-bezier(.16,1,.3,1), background .4s; }
.mx__sign::before, .mx__sign::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; margin: -.5px 0 0 -7px;
  background: currentColor; transition: transform .6s cubic-bezier(.76,0,.24,1);
}
.mx__sign::after { transform: rotate(90deg); }
.mx__item.is-open .mx__sign { border-color: var(--accent); transform: rotate(180deg); }
.mx__item.is-open .mx__sign::after { transform: rotate(0deg); }

/* hover / focus: the row leans in, the others step back */
@media (hover: hover) and (pointer: fine) {
  .mx:hover .mx__item:not(:hover):not(.is-open) .mx__name { color: color-mix(in srgb, var(--fg) 24%, transparent); }
  .mx__btn:hover .mx__name { transform: translateX(clamp(8px, 1.4vw, 22px)); }
  .mx__btn:hover .mx__sign { border-color: var(--accent); }
  .mx__btn:hover .mx__peek { clip-path: inset(0 0 0 0); opacity: 1; }
}
.mx__btn:focus-visible .mx__peek, .mx__item.is-open .mx__peek { clip-path: inset(0 0 0 0); opacity: 1; }
.mx__item.is-open .mx__name { color: var(--fg); }

/* ---------- the story panel ---------- */
.mx__panel { display: grid; grid-template-rows: 1fr; }
.mx__clip { min-height: 0; overflow: hidden; }
.mx__body {
  display: grid; gap: 28px clamp(32px, 5vw, 80px);
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) minmax(0, 3fr);
  padding: clamp(12px, 1.6vw, 24px) 0 clamp(40px, 5vw, 72px);
}
.mx__body:not(:has(.mx__fig)) { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); }

.mx__story p { margin: 0 0 1em; max-width: 54ch; color: #D3D8DD; font-size: 1.05rem; line-height: 1.7; }
.mx__story .mx__founded { margin-bottom: 1.2em; font-size: var(--step--1); color: var(--accent-soft); font-weight: 600; letter-spacing: .01em; }
.mx__story .mx__founded + p { font-family: var(--serif); font-size: clamp(1.25rem, 1.05rem + .6vw, 1.6rem); font-weight: 350; line-height: 1.4; color: var(--fg); letter-spacing: -.005em; }
.mx__story .mx__sound {
  margin: 1.6em 0 0; padding-left: 16px; border-left: 1px solid var(--accent);
  font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: #C3C9CF;
}

.mx__side { align-self: start; padding-top: .3rem; }
.mx__label { margin: 0 0 10px; font-size: var(--step--1); color: var(--muted); }
.mx__models { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; border-top: 1px solid var(--line); }
.mx__models li { padding: 8px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.1rem, 1rem + .3vw, 1.3rem); font-weight: 350; line-height: 1.3; color: var(--fg); }
.mx__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.mx__stock, .mx__none { font-size: var(--step--1); }
.mx__stock { color: var(--fg); text-decoration: underline; text-decoration-color: var(--brass-line); text-underline-offset: .25em; transition: text-decoration-color .3s; }
.mx__stock:hover { text-decoration-color: var(--accent); }
.mx__none { color: var(--muted); }

.mx__fig { margin: 0; align-self: start; }
.mx__fig img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 4px; filter: saturate(.85) contrast(1.02);
}

/* JS-enhanced accordion: closed rows collapse; opening reveals with a vertical wipe */
html.js .mx .mx__panel { transition: grid-template-rows .85s cubic-bezier(.76,0,.24,1); }
html.js .mx .mx__item:not(.is-open) .mx__panel { grid-template-rows: 0fr; }
html.js .mx .mx__body {
  clip-path: inset(0 0 100% 0);
  transition: clip-path .95s cubic-bezier(.76,0,.24,1);
}
html.js .mx .mx__item.is-open .mx__body { clip-path: inset(0 0 0 0); }
html.js .mx .mx__body > * { transform: translateY(28px); opacity: 0; transition: transform 1s cubic-bezier(.16,1,.3,1), opacity .6s var(--ease); }
html.js .mx .mx__item.is-open .mx__body > * { transform: none; opacity: 1; transition-delay: .18s; }
html.js .mx .mx__item.is-open .mx__body > :nth-child(2) { transition-delay: .26s; }
html.js .mx .mx__item.is-open .mx__body > :nth-child(3) { transition-delay: .34s; }
.mx.is-js.no-anim .mx__panel, .mx.is-js.no-anim .mx__body, .mx.is-js.no-anim .mx__body > * { transition: none !important; }

/* cursor-following photo (fine pointers only) */
.mx-float {
  position: fixed; left: 0; top: 0; z-index: 30; width: clamp(200px, 18vw, 280px);
  pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s .35s;
}
.mx-float.is-on { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.mx-float img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
  transform: scale(.86); transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.mx-float.is-on img { transform: scale(1); }

/* ---------- outro ---------- */
.mk-outro {
  background:
    radial-gradient(60% 90% at 20% 0%, color-mix(in srgb, var(--glow) 9%, transparent), transparent 70%),
    var(--surface);
  border-top: 1px solid var(--brass-line);
}
.mk-outro__inner {
  display: grid; gap: 20px clamp(32px, 6vw, 96px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
}
.mk-outro h2 { font-size: var(--display-3); max-width: 14ch; margin: 0; }
.mk-outro__p { margin: 0 0 24px; font-size: var(--step-0); line-height: 1.6; color: #C3C9CF; max-width: 46ch; }
.mk-outro__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .mx__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mx__fig { grid-column: 2; grid-row: 1; }
  .mx__side { grid-column: 2; }
  .mx__story { grid-row: 1 / span 2; }
}
@media (max-width: 960px) {
  .mk-hero__grid, .mk-outro__inner { grid-template-columns: minmax(0, 1fr); }
}
/* touch and narrow screens: the peek is always visible under the name; tapping opens the story */
@media (hover: none), (max-width: 860px) {
  .mx__btn { grid-template-columns: minmax(0, 1fr) 40px; gap: 6px 16px; padding: 14px 0 16px; }
  .mx__name { grid-column: 1; grid-row: 1; }
  .mx__sign { grid-column: 2; grid-row: 1; width: 40px; height: 40px; }
  .mx__peek {
    grid-column: 1 / -1; grid-row: 2; justify-self: start; text-align: left; max-width: none;
    clip-path: none; opacity: 1; gap: 4px;
  }
  .mx__meta { justify-content: flex-start; gap: 2px 16px; }
  .mx__line { font-size: var(--step-0); color: #C3C9CF; }
}
@media (max-width: 860px) {
  .mx__body, .mx__body:not(:has(.mx__fig)) { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 4px; }
  .mx__fig, .mx__side, .mx__story { grid-column: auto; grid-row: auto; }
  .mx__fig { order: -1; max-width: 420px; }
  .mx__fig img { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) {
  .mk-outro__actions .btn { flex: 1 1 100%; justify-content: center; }
  .mx__actions .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .mx__name, .mx__peek, .mx__sign, .mx__sign::before, .mx__sign::after,
  html.js .mx .mx__panel, html.js .mx .mx__body, html.js .mx .mx__body > *, .mx-float, .mx-float img { transition: none !important; }
  html.js .mx .mx__body > * { transform: none; }
}
