/* HiFiTurk — /hakkimizda/
   Hero manifesto, three things we do (pointer-following preview), the workshop journey as a pinned
   horizontal track (signature), a manifesto line lit by scroll, and a short visit block.
   Every accent uses the mood vars (--accent, --accent-soft, --glow, --brass-line). */

/* ---------- hero ---------- */
.ab-hero {
  min-height: min(88vh, 860px); display: flex; align-items: flex-end;
  padding-block: clamp(96px, 12vw, 160px) clamp(56px, 7vw, 96px);
}
.ab-hero .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); }
.ab-hero .breadcrumb { grid-column: 1 / -1; margin-bottom: clamp(12px, 2vw, 28px); }
.ab-hero__title {
  grid-column: 1 / -1; margin: 0;
  font-size: clamp(4.2rem, 1rem + 11.5vw, 12.5rem); line-height: 1; letter-spacing: -.045em;
}
/* room for the dots of "Ö" inside the word-rise mask */
.ab-hero__title.split .w { padding-top: .3em; margin-top: -.3em; }
.ab-hero__lede {
  grid-column: 7 / span 5; margin: clamp(28px, 4vw, 56px) 0 0;
  padding-top: 18px; border-top: 1px solid var(--brass-line);
  font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 42ch;
}

/* ---------- what we do ---------- */
.ab-do__title { font-size: var(--step-1); font-family: inherit; color: var(--muted); margin: 0 0 clamp(18px, 2.5vw, 28px); letter-spacing: 0; }
.ab-do__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--brass-line); }
.ab-do__row { border-top: 1px solid var(--brass-line); }
.ab-do__link {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); align-items: baseline;
  padding-block: clamp(22px, 3.2vw, 44px); color: var(--fg); text-decoration: none;
  transition: opacity .5s var(--ease);
}
.ab-do__t {
  grid-column: 1 / span 7; font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.1rem, 1rem + 3.6vw, 4.6rem); line-height: 1; letter-spacing: -.03em;
  transition: transform .8s cubic-bezier(.16,1,.3,1), color .4s;
}
.ab-do__d { grid-column: 8 / span 5; color: var(--muted); max-width: 40ch; line-height: 1.5; }
.ab-do__thumb { display: none; }
@media (hover: hover) {
  .ab-do__list:hover .ab-do__link { opacity: .32; }
  .ab-do__list .ab-do__link:hover, .ab-do__list .ab-do__link:focus-visible { opacity: 1; }
  .ab-do__link:hover .ab-do__t, .ab-do__link:focus-visible .ab-do__t { transform: translateX(clamp(10px, 1.6vw, 24px)); color: var(--accent-soft); }
}
.ab-do__preview {
  position: fixed; left: 0; top: 0; z-index: 4; pointer-events: none;
  width: clamp(220px, 22vw, 320px); aspect-ratio: 4 / 3; margin: -60% 0 0 -50%;
  border-radius: 6px; overflow: hidden; opacity: 0; scale: .85;
  transition: opacity .35s, scale .6s cubic-bezier(.16,1,.3,1);
}
.ab-do__preview.is-on { opacity: 1; scale: 1; }
.ab-do__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .ab-do__preview { display: none; }
  .ab-do__link { grid-template-columns: minmax(0, 1fr) 84px; row-gap: 10px; align-items: center; }
  .ab-do__t { grid-column: 1; }
  .ab-do__d { grid-column: 1; grid-row: 2; font-size: var(--step--1); }
  .ab-do__thumb { display: block; grid-column: 2; grid-row: 1 / span 2; width: 84px; height: 84px; object-fit: cover; border-radius: 4px; filter: saturate(.8); }
}

/* ---------- journey: default is a plain vertical list (no JS, reduced motion) ---------- */
.jr { position: relative; padding-block: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.jr__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.jr__head h2 { font-size: var(--display-3); max-width: 18ch; margin: 0; }
.jr__count { margin: 0; font-family: var(--serif); font-size: var(--step-2); color: var(--muted); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.jr__count b { color: var(--accent-soft); font-weight: 400; }
.jr:not(.is-pinned) .jr__count, .jr:not(.is-pinned) .jr__foot { display: none; }
.jr__track { list-style: none; margin: clamp(28px, 4vw, 56px) auto 0; padding: 0 var(--gutter); max-width: var(--max); }
.jr__panel {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 6fr) minmax(0, 4fr); column-gap: clamp(20px, 3vw, 40px); align-items: center;
  padding-block: clamp(24px, 3vw, 40px); border-top: 1px solid var(--brass-line);
}
.jr__num { font-family: var(--serif); font-weight: 300; font-size: clamp(3.5rem, 2rem + 4vw, 6rem); line-height: .8; color: var(--accent); font-variant-numeric: lining-nums; }
.jr__text h3 { margin: 0 0 .3em; font-family: var(--serif); font-weight: 400; font-size: var(--step-3); line-height: 1.05; letter-spacing: -.02em; }
.jr__text p { margin: 0; color: var(--muted); font-size: var(--step-1); line-height: 1.45; max-width: 34ch; }
.jr__fig { margin: 0; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--surface); display: grid; place-items: center; }
.jr__fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jr__panel[data-kind="svg"] .jr__fig { background: radial-gradient(70% 70% at 50% 45%, color-mix(in srgb, var(--glow) 9%, transparent), transparent 70%), var(--surface); }
@media (max-width: 760px) {
  .jr__panel { grid-template-columns: auto minmax(0, 1fr); row-gap: 18px; align-items: start; }
  .jr__fig { grid-column: 1 / -1; }
}

/* drawn instruments */
.jr__svg { width: 72%; height: auto; max-height: 86%; overflow: visible; }
.jr__svg .ln { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.jr__svg .ln--soft { stroke-opacity: .35; }
.jr__svg .ticks line { stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.jr__svg text { fill: var(--muted); font: 600 15px/1 var(--font); }
.jr__svg .needle line { stroke: var(--accent-soft); stroke-width: 3; stroke-linecap: round; }
.jr__svg .needle circle { fill: var(--accent); }
.jr__svg .needle { transform-origin: 160px 160px; transform: rotate(118deg); }
.jr__svg .grid line { stroke: var(--line); stroke-width: 1; }
.jr__svg .trace { fill: none; stroke: var(--accent-soft); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--glow) 70%, transparent)); }
.jr__svg .label { fill: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.jr__svg .mark { stroke: var(--bg); stroke-width: 3; stroke-linecap: round; }
.jr__svg .spindle { fill: var(--fg); }
.jr__svg .arm { fill: none; stroke: var(--fg); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.jr__svg .disc { transform-origin: 160px 160px; }

/* ---------- journey: pinned horizontal track (js adds .is-pinned and sets the section height) ---------- */
.jr.is-pinned { padding: 0; }
.jr.is-pinned .jr__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; padding-top: calc(76px + clamp(20px, 3vh, 40px)); padding-bottom: clamp(20px, 3.5vh, 40px);
}
.jr.is-pinned .jr__track {
  flex: 1; min-height: 0; display: flex; margin: clamp(16px, 3vh, 36px) 0 0; max-width: none;
  padding: 0 0 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  will-change: transform;
}
.jr.is-pinned .jr__panel {
  flex: 0 0 min(76vw, 1060px); height: 100%; padding: 0 clamp(28px, 4vw, 64px); border-top: 0;
  border-left: 1px solid var(--brass-line);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: minmax(0, 1fr) auto; column-gap: clamp(24px, 3.5vw, 56px); align-items: stretch;
}
.jr.is-pinned .jr__panel:last-child { margin-right: 12vw; }
.jr.is-pinned .jr__num {
  grid-column: 1; grid-row: 1; align-self: start;
  font-size: clamp(7rem, 2rem + 20vh, 17rem); line-height: .78; letter-spacing: -.05em;
  color: color-mix(in srgb, var(--accent) 22%, transparent);
  transition: color .8s var(--ease), transform 1.1s cubic-bezier(.16,1,.3,1); transform: translateY(6%);
}
.jr.is-pinned .jr__text { grid-column: 1; grid-row: 2; align-self: end; }
.jr.is-pinned .jr__text p { max-width: 30ch; }
.jr.is-pinned .jr__fig { grid-column: 2; grid-row: 1 / span 2; aspect-ratio: auto; height: 100%; }
.jr.is-pinned .jr__fig img { filter: grayscale(.75) brightness(.7); transform: scale(1.08); transition: filter 1.2s var(--ease), transform 1.6s cubic-bezier(.16,1,.3,1); }
.jr.is-pinned .jr__panel.is-active .jr__num { color: var(--accent); transform: none; }
.jr.is-pinned .jr__panel.is-active .jr__fig img { filter: none; transform: none; }
/* the instruments come alive on their step */
.jr.is-pinned .jr__svg .needle { transform: rotate(-135deg); transition: transform 2.2s cubic-bezier(.34,1.2,.4,1) .2s; }
.jr.is-pinned .is-active .jr__svg .needle { transform: rotate(118deg); }
.jr.is-pinned .jr__svg .trace { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.65,0,.35,1) .2s; }
.jr.is-pinned .is-active .jr__svg .trace { stroke-dashoffset: 0; }
.jr.is-pinned .jr__svg .disc { animation: jr-spin 1.8s linear infinite; animation-play-state: paused; }
.jr.is-pinned .is-active .jr__svg .disc { animation-play-state: running; }
@keyframes jr-spin { to { transform: rotate(360deg); } }

/* progress rail: one lamp per step */
.jr__foot { margin-top: clamp(14px, 2.5vh, 28px); }
.jr__rail { position: relative; display: flex; justify-content: space-between; align-items: center; height: 12px; max-width: min(560px, 60%); }
.jr__rail::before, .jr__fill { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.jr__fill { background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.jr__rail b { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); border: 1px solid var(--muted); transition: background .4s, border-color .4s, box-shadow .4s; }
.jr__rail b.is-on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--glow) 70%, transparent); }

@media (max-width: 900px) {
  /* the radio dock sits at the bottom of the screen on phones: keep the step text above it */
  .jr.is-pinned .jr__sticky { padding-top: calc(76px + 12px); padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .jr.is-pinned .jr__head h2 { font-size: clamp(1.6rem, 1rem + 3vw, 2.4rem); }
  .jr.is-pinned .jr__track { padding-left: var(--gutter); }
  .jr.is-pinned .jr__panel {
    flex-basis: 84vw; padding: 0 20px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; row-gap: 16px;
  }
  .jr.is-pinned .jr__num { grid-row: 1; font-size: clamp(4.5rem, 1rem + 11vh, 7.5rem); }
  .jr.is-pinned .jr__fig { grid-column: 1; grid-row: 2; height: 100%; }
  .jr.is-pinned .jr__text { grid-column: 1; grid-row: 3; }
  .jr.is-pinned .jr__text h3 { font-size: var(--step-2); }
  .jr.is-pinned .jr__text p { font-size: var(--step-0); }
  .jr__rail { max-width: none; margin-right: 0; }
}

/* ---------- manifesto ---------- */
.ab-mf { padding-block: clamp(96px, 16vw, 240px); }
.ab-mf__line {
  margin: 0; max-width: 17ch;
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, .8rem + 6.6vw, 8.6rem);
  line-height: 1; letter-spacing: -.04em; color: var(--fg);
}
.ab-mf__w:nth-last-child(-n+2) { font-style: italic; color: var(--accent-soft); }
.ab-mf.is-live .ab-mf__w { opacity: .42; transition: opacity .5s var(--ease); }   /* unlit words stay readable (3:1) */
.ab-mf.is-live .ab-mf__w.is-lit { opacity: 1; }

/* ---------- visit ---------- */
.ab-next { border-top: 1px solid var(--line); }
.ab-next__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); align-items: end; }
.ab-next__title { grid-column: 1 / span 7; margin: 0; font-size: var(--display-2); max-width: 13ch; }
.ab-next__body { grid-column: 9 / span 4; display: grid; gap: 18px; justify-items: start; }
.ab-next__body p { margin: 0; color: var(--muted); }
.ab-next__meta { font-family: var(--serif); font-size: var(--step-1); line-height: 1.35; color: var(--fg) !important; }
.ab-next__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.ab-next__sell { font-size: var(--step--1); padding-top: 18px; border-top: 1px solid var(--line); }
.ab-next__sell a { color: var(--fg); text-decoration-color: var(--brass-line); text-underline-offset: 3px; }
.ab-next__sell a:hover { text-decoration-color: var(--accent); }

@media (max-width: 900px) {
  .ab-hero { min-height: 0; }
  .ab-hero__lede { grid-column: 1 / -1; }
  .ab-next__title, .ab-next__body { grid-column: 1 / -1; }
  .ab-next__body { margin-top: 28px; }
}
