/* =========================================================
   Hizmetler (/hizmetler) — trionn.com/services layout
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-services .ch, .page-services .wd { display: inline-block; }
.page-services .wd { white-space: nowrap; }

/* ---------- opening: sticky WebGL behind three screens ---------- */
.sv-scope { position: relative; z-index: 3; background: var(--bg); color: var(--fg); }
.sv-gl { position: sticky; top: 0; height: 100vh; height: 100dvh; margin-bottom: -100vh; margin-bottom: -100dvh; z-index: 0; overflow: hidden; }
.sv-gl canvas { display: block; width: 100%; height: 100%; }
.sv-scope > section { position: relative; z-index: 1; }

.sv-exp { height: 100vh; height: 100dvh; min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 var(--pad); text-align: center; }
.sv-exp__head { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sv-exp__title { font-size: var(--h1); line-height: .95; letter-spacing: -0.065em; }
.sv-exp__list { position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%); width: min(640px, calc(100% - 32px)); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; list-style: none; }
.sv-exp__list button { color: rgba(216,216,216,.55); transition: color .25s; cursor: pointer; }
.sv-exp__list button:hover { color: #fff; }
.sv-exp__down { position: absolute; right: var(--pad); bottom: 56px; opacity: .5; }

.sv-focus { height: 100vh; height: 100dvh; min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(40px, 8vh, 80px); padding: 0 var(--pad); text-align: center; }
.sv-focus__title { font-size: var(--h2); line-height: 1; letter-spacing: -0.055em; max-width: 17ch; }
.sv-focus__cta { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; }
.sv-focus__cta .mono-link { width: 230px; color: var(--fg); }

.sv-disc { height: 220vh; }
.sv-disc__pin { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sv-disc__marquee { width: 100%; overflow: hidden; }
.sv-disc__track { display: flex; align-items: center; gap: clamp(24px, 3vw, 50px); width: max-content; will-change: transform; }
.sv-disc__track span { font-family: var(--f-display); font-size: clamp(4.4rem, 11vw, 10.5rem); line-height: .9; letter-spacing: -0.065em; color: var(--fg); white-space: nowrap; }
.sv-disc__track svg { width: 26px; height: 26px; color: var(--fg); opacity: .5; flex: none; }
.sv-disc__claim { position: absolute; top: calc(50% + clamp(90px, 13vh, 150px)); left: 0; right: 0; text-align: center; }
.sv-disc .stripes { z-index: 6; }

/* ---------- scope ("technology stack") ---------- */
.sv-stack { position: relative; z-index: 4; background: #fff; color: #3c3c3e; padding: clamp(80px, 13vh, 130px) var(--pad) clamp(80px, 13vh, 130px); overflow: hidden; }
.sv-stack__claim { display: block; text-align: center; margin-bottom: 40px; }
.sv-stack__line { display: flex; align-items: center; max-width: 1140px; margin: 0 auto clamp(40px, 7vh, 70px); color: rgba(17,18,20,.5); }
.sv-stack__line i { flex: 1; height: 1px; background: rgba(17,18,20,.14); }
.sv-stack__line i:first-child { transform-origin: right; } .sv-stack__line i:last-child { transform-origin: left; }
.sv-stack__line svg { width: 14px; height: 14px; flex: none; }
.sv-stack__big { display: flex; flex-direction: column; font-family: var(--f-display); font-size: clamp(3.6rem, 9.6vw, 9.4rem); line-height: .86; letter-spacing: -0.06em; color: #3c3c3e; margin-bottom: clamp(70px, 12vh, 130px); }
.sv-stack__w1 { padding-left: 10%; }
.sv-stack__row { display: flex; align-items: flex-end; gap: clamp(20px, 4vw, 60px); padding-left: 21%; }
.sv-stack__cap { font-size: var(--t-title); line-height: 1.2; letter-spacing: 0; padding-bottom: 1.2em; order: -1; max-width: 230px; }
.sv-acc { border-top: 1px solid rgba(17,18,20,.1); }
.sv-acc__item { border-bottom: 1px solid rgba(17,18,20,.1); }
.sv-acc__btn { width: 100%; display: grid; grid-template-columns: 1fr 2.1fr 20px; align-items: center; gap: 20px; padding: 26px 0; text-align: left; color: #3c3c3e; cursor: pointer; }
.sv-acc__n { font-family: var(--f-display); font-size: clamp(1.1rem, 1.5vw, 1.4rem); }
.sv-acc__t { font-family: var(--f-display); font-size: clamp(1.25rem, 1.75vw, 1.7rem); letter-spacing: -0.04em; line-height: 1.1; }
.sv-acc__btn svg { width: 9px; height: 11px; justify-self: end; transition: transform .5s var(--ease); }
.sv-acc__item.is-open .sv-acc__btn svg { transform: rotate(180deg); }
.sv-acc__btn:hover .sv-acc__t { color: var(--accent); }
.sv-acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-io); }
.sv-acc__item.is-open .sv-acc__body { grid-template-rows: 1fr; }
.sv-acc__body > div { overflow: hidden; }
.sv-acc__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 50px; padding: 0 0 34px calc((100% - 40px) / 3.1 + 20px); }
.sv-acc__cols .title { display: block; opacity: .5; margin-bottom: 14px; }
.sv-acc__cols ul { list-style: none; }
.sv-acc__cols li { font-size: 14px; line-height: 1.6; }

/* ---------- process ---------- */
.sv-proc { position: relative; z-index: 4; height: 230vh; background: linear-gradient(180deg, #fcfcfc 0%, #d2d2d2 100%); color: #3c3c3e; }
.sv-proc__pin { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; padding: clamp(100px, 15vh, 140px) var(--pad) 0; }
.sv-proc__head { display: grid; grid-template-columns: minmax(80px, 1fr) 11fr; gap: 20px; margin-bottom: clamp(50px, 9vh, 90px); }
.sv-proc__label { padding-top: 1em; }
.sv-proc__head h2 { font-size: var(--h2); line-height: .95; letter-spacing: -0.06em; margin-bottom: 18px; }
.sv-proc__head p { opacity: .65; }
.sv-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin-left: calc((100% - 20px) / 12 + 20px); max-width: 1100px; }
.sv-step .title { display: block; opacity: .6; margin-bottom: 20px; }
.sv-step h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 1.9vw, 1.8rem); letter-spacing: -0.04em; margin-bottom: 16px; }
.sv-step p { opacity: .7; max-width: 250px; }
.sv-steps__rail { position: relative; height: 14px; margin: clamp(40px, 7vh, 70px) 0 0 calc((100% - 20px) / 12 + 20px); max-width: 1100px; color: rgba(17,18,20,.55); }
.sv-steps__line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(17,18,20,.2); transform-origin: left; }
.sv-steps__rail svg { position: absolute; top: 0; width: 14px; height: 14px; left: calc(var(--k) * (100% + 30px) / 4 - 7px); }
.sv-proc .stripes { z-index: 6; }

@media (max-width: 900px) {
  .sv-stack__w1 { padding-left: 0; }
  .sv-stack__row { padding-left: 8%; flex-direction: column; align-items: flex-start; gap: 10px; }
  .sv-stack__cap { order: 1; padding-bottom: 0; }
  .sv-acc__btn { grid-template-columns: 34px 1fr 20px; }
  .sv-acc__cols { grid-template-columns: 1fr; padding-left: 54px; gap: 22px; }
  .sv-proc { height: auto; }
  .sv-proc__pin { position: relative; height: auto; padding-bottom: 90px; }
  .sv-proc__head { grid-template-columns: 1fr; }
  .sv-steps { grid-template-columns: 1fr 1fr; margin-left: 0; row-gap: 40px; }
  .sv-steps__rail { display: none; }
  .sv-proc .stripes { display: none; }
}
@media (max-width: 560px) {
  .sv-exp__title { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .sv-exp__down { display: none; }
  .sv-focus__cta { flex-direction: column; gap: 18px; align-items: center; }
  .sv-steps { grid-template-columns: 1fr; }
}

/* logo over a black image half (set from services.js) */
body.sv-logo-light .header .brand { color: #fff; transition: color .3s; }

/* links to the detail pages */
.sv-acc__more { display: inline-block; margin: 0 0 30px calc((100% - 40px) / 3.1 + 20px); font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; color: #3c3c3e; transition: color .3s; }
.sv-acc__more:hover { color: var(--accent); }
@media (max-width: 900px) { .sv-acc__more { margin-left: 54px; } }

/* ---------- opening: the About page's hero (copied from about.css) ---------- */
.ab-hero { position: relative; height: 200vh; background: #fff; color: var(--ink); }
.ab-hero__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.ab-hero__title {
  position: absolute; left: 50%; top: clamp(96px, 13vh, 130px); transform: translateX(-50%); width: min(1100px, 92vw);
  text-align: center; font-size: clamp(2.6rem, 5.6vw, 5.4rem); line-height: .96; letter-spacing: -0.055em; color: var(--ink); z-index: 3;
}
.ab-hero__line { display: inline; }
.ab-hero__title .w { display: inline-block; color: #d8d8d8; }
.ab-hero__sub { position: absolute; left: 50%; top: calc(clamp(96px, 13vh, 130px) + clamp(2.6rem, 5.6vw, 5.4rem) * 2.1); transform: translateX(-50%); text-align: center; opacity: .6; z-index: 3; }
.ab-hero__hint { position: absolute; right: var(--pad); bottom: 30px; text-align: right; z-index: 4; font-size: 12px; }
.ab-hero__left { position: absolute; left: var(--pad); top: 30vh; z-index: 4; opacity: 0; }

/* dragon, cut into horizontal strips (built by about.js) */
.ab-strips { position: absolute; left: 50%; top: 42vh; width: min(58vh, 72vw); aspect-ratio: 283 / 283.5; transform: translateX(-50%); z-index: 2; }
.ab-strip { position: absolute; left: 0; right: 0; overflow: hidden; will-change: transform; }
.ab-strip__in {
  position: absolute; left: 0; right: 0;
  background:
    linear-gradient(180deg, #4a4b52 0%, #2a2b31 34%, #17181c 46%, #c2151c 52.5%, #ff6a55 54%, #c2151c 55.5%, #141518 62%, #0a0b0d 100%);
  -webkit-mask: url("../logo.svg") center / contain no-repeat; mask: url("../logo.svg") center / contain no-repeat;
}
.ab-strip__in::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 7px); }

.ab-hero__marquee { position: absolute; left: 0; right: 0; top: 34vh; z-index: 3; pointer-events: none; }
.ab-hero__track { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); width: max-content; will-change: transform; }
.ab-hero__track span { font-family: var(--f-display); font-size: clamp(4.2rem, 10.5vw, 10rem); letter-spacing: -0.07em; line-height: .9; color: var(--ink); }
.ab-hero__track svg { width: 26px; height: 26px; color: var(--ink); opacity: .5; }
.ab-hero__who { position: absolute; left: clamp(20px, 5.3vw, 76px); right: clamp(20px, 5.3vw, 76px); bottom: clamp(28px, 6vh, 60px); z-index: 4; display: grid; grid-template-columns: 1fr 2fr; gap: 20px; align-items: end; opacity: 0; }
.ab-hero__who .h3 { font-size: clamp(1.4rem, 2.3vw, 2.2rem); line-height: 1.04; max-width: 760px; }
.ab-hero__who .title { opacity: .55; padding-bottom: .4em; }

@media (max-width: 900px) {
  .ab-hero { height: 170vh; }
  .ab-hero__title { font-size: clamp(2.1rem, 8.4vw, 3.2rem); }
  .ab-hero__sub { top: calc(clamp(96px, 13vh, 130px) + clamp(2.1rem, 8.4vw, 3.2rem) * 3.3); }
  .ab-strips { top: 46vh; width: min(80vw, 46vh); }
  .ab-hero__who { grid-template-columns: 1fr; }
  .ab-hero__hint, .ab-hero__left { display: none; }
}
/* services: brand-red hero, the dragon in brand grey (no red band) */
.sv-hero { background: #c2151c; color: #fff; }
.sv-hero .ab-hero__title, .sv-hero .ab-hero__track span { color: #fff; }
.sv-hero .ab-hero__title .w { color: rgba(255,255,255,.35); }
.sv-hero .ab-hero__track svg { color: #fff; }
.sv-hero .ab-hero__sub { opacity: .8; }
.sv-hero .ab-strip__in { background: linear-gradient(180deg, #6b6b6e 0%, #58585a 30%, #4d4d4f 55%, #3c3c3e 80%, #2e2e30 100%); }

/* ---------- services: sticky showcase + scrolling services (brand grey) ---------- */
.sv-list { position: relative; z-index: 4; background: #4d4d4f; color: #fff; padding: clamp(100px, 14vh, 160px) var(--pad) clamp(60px, 10vh, 120px); }
.sv-list__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 110px); max-width: 1480px; margin: 0 auto; }
.sv-list__sticky { position: sticky; top: clamp(90px, 12vh, 120px); display: flex; flex-direction: column; gap: clamp(16px, 2.6vh, 26px); }
.sv-list__num { display: flex; align-items: flex-start; gap: 14px; font-family: var(--f-display); font-size: clamp(4.6rem, 9vw, 9rem); line-height: .8; letter-spacing: -0.06em; }
.sv-list__cur { display: inline-block; }
.sv-list__of { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0; opacity: .55; padding-top: .6em; }
.sv-list__media { position: relative; aspect-ratio: 16 / 9; max-height: 48vh; border-radius: 8px; overflow: hidden; background: #3e3e40; }
.sv-list__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.1); transition: clip-path 1s var(--ease-io), transform 1.4s var(--ease); }
.sv-list__img.is-prev { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; transition: none; }
.sv-list__img.is-on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 2; }
.sv-list__caps { display: grid; }
.sv-list__caption { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease); }
.sv-list__caption.is-on { opacity: .7; transform: none; }
.sv-list__index { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: clamp(10px, 2vh, 20px); border-top: 1px solid rgba(255,255,255,.2); }
.sv-list__index button { position: relative; color: rgba(255,255,255,.45); cursor: pointer; transition: color .3s; padding-left: 0; }
.sv-list__index button:hover { color: #fff; }
.sv-list__index button.is-on { color: #fff; padding-left: 12px; }
.sv-list__index button.is-on::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }

.sv-item { padding: clamp(50px, 11vh, 110px) 0; border-top: 1px solid rgba(255,255,255,.18); opacity: .32; transition: opacity .6s; }
.sv-item:first-child { border-top: 0; padding-top: 0; }
.sv-item:last-child { padding-bottom: clamp(40px, 20vh, 220px); }
.sv-item.is-on { opacity: 1; }
.sv-item__img { display: none; }
.sv-item__num { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; opacity: .7; margin-bottom: 20px; }
.sv-item__num::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.sv-item__title { font-size: clamp(2.3rem, 3.8vw, 3.9rem); line-height: .95; letter-spacing: -0.05em; margin-bottom: 22px; max-width: 14ch; }
.sv-item__desc { font-size: 16px; line-height: 1.55; opacity: .82; max-width: 52ch; margin-bottom: clamp(28px, 5vh, 46px); }
.sv-item__label { display: block; opacity: .55; margin-bottom: 16px; }
.sv-item__caps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(30px, 5vh, 46px); }
.sv-item__caps li { padding: 9px 15px; border: 1px solid rgba(255,255,255,.3); border-radius: 100px; font-size: 13.5px; transition: background .5s, border-color .5s; }
.sv-item.is-on .sv-item__caps li { background: var(--accent); border-color: var(--accent); }
.sv-item.is-on .sv-item__caps li:nth-child(2) { transition-delay: .06s; } .sv-item.is-on .sv-item__caps li:nth-child(3) { transition-delay: .12s; } .sv-item.is-on .sv-item__caps li:nth-child(4) { transition-delay: .18s; }
.sv-item__more { width: 230px; color: #fff; }
@media (max-width: 900px) {
  .sv-list__grid { grid-template-columns: 1fr; }
  .sv-list__aside { display: none; }
  .sv-item, .sv-item:first-child { opacity: 1; padding: 46px 0; border-top: 1px solid rgba(255,255,255,.18); }
  .sv-item:first-child { border-top: 0; padding-top: 0; }
  .sv-item__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 24px; }
  .sv-item__caps li { background: transparent !important; border-color: rgba(255,255,255,.3) !important; }
}
