/* =========================================================
   Saftle ana sayfa
   Zemin beyaz, mürekkep siyah, alan lacivert, vurgu gök mavisi.
   Çizgi, gölge, gradyan, etiket rozeti yok. Ayrım ton farkıyla.
   ========================================================= */

.hx {
  --ink: #000000;
  --ground: #ffffff;
  --fog: #eef2f6;
  --navy: #0a2540;
  --sky: #0ea5e9;
  --sky-pale: #d8effc;
  --on-navy: #c9d6e3;
  --gap-section: clamp(6rem, 12vw, 11rem);
  --edge: clamp(1.25rem, 4vw, 3.5rem);
  position: relative;
  z-index: 1;
  color: var(--ink);
}

body:has(.hx)::after { display: none; }
body:has(.hx) { background: #fff; }
body:has(.hx) .header { background: rgba(255, 255, 255, 0.96); border-bottom: 0; }
body:has(.hx) .header .container { max-width: 1320px; padding-left: clamp(1.25rem, 4vw, 3.5rem); padding-right: clamp(1.25rem, 4vw, 3.5rem); }
body:has(.hx) .footer .container { max-width: 1320px; padding-left: clamp(1.25rem, 4vw, 3.5rem); padding-right: clamp(1.25rem, 4vw, 3.5rem); }
body:has(.hx) .footer { border-top: 0; background: #000; }
body:has(.hx) .footer,
body:has(.hx) .footer a,
body:has(.hx) .footer-copy { color: #c9ced4; }
body:has(.hx) .footer .logo,
body:has(.hx) .footer .logo-text { color: #fff; }
body:has(.hx) .footer .logo-img { filter: invert(1); }
body:has(.hx) .footer .lang-btn { color: #c9ced4; }
body:has(.hx) .footer .lang-btn.is-active { color: #fff; background: rgba(255, 255, 255, 0.12); border-color: transparent; }

.hx .container {
  max-width: 1320px;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

.hx h1, .hx h2, .hx h3 {
  font-family: var(--font-heading);
  color: inherit;
  margin: 0;
}

.hx p { margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hx-h2 {
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 18ch;
  text-wrap: balance;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem) !important;
}

.hx-h3 {
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hx-sector {
  font-size: 1rem;
  font-weight: 600;
  color: #0369a1;
}

.hx-btn {
  padding: 1.05rem 1.75rem;
  font-size: 1.0625rem;
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--sky-pale);
  color: var(--ink);
}

.hx-textlink {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: var(--sky);
}

.hx-textlink:hover { text-decoration-color: var(--ink); }

/* ----- Giriş ----- */
.hx-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100svh - 72px);
}

.hx-hero-text {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3.5rem, 8vw, 6rem) var(--edge) clamp(3rem, 6vw, 5rem);
}

.hx-title {
  font-size: clamp(2.6rem, 12.6cqi, 7rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem) !important;
}

.hx-lead {
  font-size: clamp(1.125rem, 1.45vw, 1.375rem);
  line-height: 1.5;
  max-width: 40ch;
  margin-bottom: 2.5rem !important;
}

.hx-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.hx-hero-field {
  background: var(--hero-field, #000);
  color: var(--hero-mark, #fff);
  position: relative;
  overflow: hidden;
  min-height: 62vw;
}

.hx-mark-wrap {
  position: absolute;
  inset: 0;
}

.hx-mark {
  position: absolute;
  width: 135%;
  height: auto;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
}

@media (min-width: 960px) {
  .hx-stage {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    max-height: 900px;
  }
  .hx-hero-text {
    padding-left: max(var(--edge), calc((100vw - 1320px) / 2 + var(--edge)));
  }
  .hx-hero-field { min-height: 0; }
  .hx-mark { width: 120%; left: 14%; }
}

/* ----- Kurumlar ----- */
.hx-clients {
  background: var(--fog);
  padding: 2.25rem 0;
}

.hx-clients-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 3rem;
}

.hx-clients-title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.hx-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem clamp(2rem, 4vw, 3.75rem);
}

.hx-logos li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hx-logos img {
  display: block;
  height: 40px;
  width: auto;
  mix-blend-mode: multiply;
}

.hx-logos li:nth-child(1) img { height: 44px; }
.hx-logos li:nth-child(2) img { height: 60px; }

.hx-logo-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

/* ----- İşler ----- */
.hx-work {
  padding: var(--gap-section) 0 0;
}

.hx-case {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hx-case + .hx-case { margin-top: clamp(4rem, 8vw, 7rem); }

@media (min-width: 960px) {
  .hx-case { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .hx-case-flip .hx-case-pic { order: 2; }
}

.hx-case-pic {
  margin: 0;
  aspect-ratio: 5 / 4;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.hx-case-pic figcaption {
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  font-size: 0.8125rem;
  color: #8ea4ba;
}

.hx-pic-sky { background: var(--fog); }
.hx-pic-sky img { width: min(48%, 300px); height: auto; }

.hx-case-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hx-case-text > p:not(.hx-meta) {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 50ch;
}

.hx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 1rem;
}

.hx-status { color: #4a5562; }

.hx-did {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hx-did li {
  background: var(--fog);
  padding: 0.5rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Temsilî tıbbi dikte arayüzü */
.hx-pic-stt { background: var(--navy); }

.stt {
  width: min(84%, 480px);
  background: #fff;
  color: var(--ink);
  padding: 1.25rem 1.35rem 1.35rem;
  font-size: 0.9375rem;
}

.stt-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.stt-rec {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #e11d48;
}

.stt-time { margin-left: auto; color: #4a5562; font-variant-numeric: tabular-nums; }

.stt-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 44px;
  margin: 0.9rem 0;
}

.stt-wave i {
  flex: 1;
  background: var(--sky);
  height: 30%;
}

.stt-wave i:nth-child(3n) { height: 75%; }
.stt-wave i:nth-child(4n+1) { height: 50%; }
.stt-wave i:nth-child(5n+2) { height: 95%; }
.stt-wave i:nth-child(7n) { height: 20%; }

.stt-text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #1f2933;
  margin-bottom: 1rem !important;
}

.stt-form { margin: 0; display: grid; gap: 0.4rem; }

.stt-form > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.75rem;
  background: var(--fog);
  padding: 0.55rem 0.75rem;
  align-items: baseline;
}

.stt-form dt { font-size: 0.8125rem; color: #4a5562; font-weight: 600; }
.stt-form dd { margin: 0; font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .stt-wave i { animation: stt-bar 1.2s ease-in-out infinite alternate; transform-origin: center; }
  .stt-wave i:nth-child(2n) { animation-delay: -0.4s; }
  .stt-wave i:nth-child(3n) { animation-delay: -0.8s; }
  .stt-rec { animation: stt-blink 1.4s ease-in-out infinite; }
}

@keyframes stt-bar { from { transform: scaleY(0.45); } to { transform: scaleY(1); } }
@keyframes stt-blink { 50% { opacity: 0.3; } }

/* Diğer işler */
.hx-more {
  margin-top: clamp(5rem, 9vw, 8rem);
  background: var(--fog);
  padding: clamp(2rem, 4vw, 3.5rem);
}

.hx-more-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2rem !important;
}

.hx-more-list {
  display: grid;
  gap: 2.5rem 3rem;
}

@media (min-width: 800px) { .hx-more-list { grid-template-columns: repeat(3, 1fr); } }

.hx-more-list article { display: flex; flex-direction: column; gap: 0.6rem; }

.hx-more-list h4 {
  margin: 0;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hx-more-list p:not(.hx-meta) { font-size: 1.0625rem; line-height: 1.55; }

/* ----- Ne yaptırmak istiyorsunuz (seçici) ----- */
.hx-services {
  padding: var(--gap-section) 0;
}

.hx-picker {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .hx-picker { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; }
}

.hx-opts {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.hx-opt {
  position: relative;
  display: block;
  cursor: pointer;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  padding: 0.45rem 0 0.45rem 0;
  color: #737d88;
  transition: color 0.2s var(--ease-out), padding-left 0.25s var(--ease-out);
}

.hx-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hx-opt:hover { color: var(--ink); }

.hx-opt:has(input:checked) {
  color: var(--ink);
  padding-left: 1.6rem;
}

.hx-opt:has(input:checked)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--sky);
  transform: translateY(-50%);
}

.hx-opt:has(input:focus-visible) {
  outline: 2px solid var(--sky);
  outline-offset: 4px;
}

.hx-panels {
  background: var(--navy);
  color: #fff;
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  align-content: center;
}

.hx-panel { display: none; }

.hx-picker:has(input[value="web"]:checked) .hx-panel[data-for="web"],
.hx-picker:has(input[value="mobil"]:checked) .hx-panel[data-for="mobil"],
.hx-picker:has(input[value="kurumsal"]:checked) .hx-panel[data-for="kurumsal"],
.hx-picker:has(input[value="ai"]:checked) .hx-panel[data-for="ai"],
.hx-picker:has(input[value="veri"]:checked) .hx-panel[data-for="veri"],
.hx-picker:has(input[value="goru"]:checked) .hx-panel[data-for="goru"] {
  display: block;
}

.hx-panel h3 {
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hx-panel > p {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--on-navy);
  max-width: 44ch;
}

.hx-panel ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.5rem;
}

.hx-panel li {
  font-size: 1.0625rem;
  padding-left: 1.4rem;
  position: relative;
}

.hx-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--sky);
}

/* ----- Süreç ----- */
.hx-process {
  background: var(--sky);
  color: var(--ink);
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.hx-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.25rem 2.5rem;
}

@media (min-width: 640px) { .hx-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .hx-steps { grid-template-columns: repeat(4, 1fr); } }

.hx-steps h3 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.hx-steps p {
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 30ch;
}

/* ----- Ekip ----- */
.hx-team {
  padding: var(--gap-section) 0;
}

.hx-team-inner {
  display: grid;
  gap: 3rem;
}

@media (min-width: 960px) {
  .hx-team-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 5rem; align-items: end; }
}

.hx-statement {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 34ch;
}

.hx-facts {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.hx-facts > div {
  background: var(--fog);
  padding: 1.1rem 1.4rem;
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
}

.hx-facts dt { font-weight: 600; color: #3d4752; }
.hx-facts dd { margin: 0; font-size: 1.125rem; font-weight: 600; }

/* ----- Kapanış ----- */
.hx-close {
  background: var(--ink);
  color: #fff;
  padding: clamp(5rem, 10vw, 8rem) 0 0;
  overflow: hidden;
}

.hx-close-title {
  font-size: clamp(2.75rem, 6.4vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  max-width: 14ch;
}

.hx-close-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-top: 2.5rem;
}

.hx-close-row p {
  font-size: 1.1875rem;
  line-height: 1.5;
  color: #c9ced4;
  max-width: 44ch;
}

.hx-close-row a:not(.btn) { color: #fff; text-underline-offset: 4px; }

.hx-bigname {
  font-size: clamp(6rem, 27vw, 25rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.75;
  color: var(--sky);
  margin: clamp(3rem, 7vw, 6rem) 0 0 -0.04em !important;
  padding-bottom: 0.04em;
  white-space: nowrap;
}

/* ----- Hareket (Taste motion rehberi) ----- */
.hx {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; white-space: nowrap; }
.lines [data-line] { display: block; }
.hx-hero-field, .shutter { overflow: clip; }

@media (prefers-reduced-motion: no-preference) {
  /* 1. Açılış sekansı: 1,2 sn içinde biter */
  .js .hx-hero .lines [data-line] { transform: translateY(105%); animation: hx-line 900ms var(--ease-expo) forwards; animation-delay: calc(120ms + var(--i) * 100ms); }
  .js .hx-hero [data-load] { opacity: 0; transform: translateY(14px); animation: hx-rise 560ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js .hx-hero-field[data-open] { opacity: 0; animation: hx-fade 700ms ease 120ms forwards; }
  .js .hx-hero-field[data-open] .hx-mark-wrap { transform: scale(1.1); animation: hx-settle 1300ms var(--ease-expo) 150ms forwards; }

  /* 2. Bölüm girişleri: her biri bir kez */
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js [data-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-stagger].is-in > * { opacity: 1; transform: none; }

  .js .shutter { clip-path: inset(100% 0 0 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter > * { transform: scale(1.08); transition: transform 1400ms var(--ease-soft); }
  .js .shutter.is-in { clip-path: inset(0); }
  .js .shutter.is-in > * { transform: none; }
  .js .hx-case-pic.shutter > figcaption { transform: none; }

  .js [data-lines-scroll] [data-line] { transform: translateY(105%); transition: transform 900ms var(--ease-expo); transition-delay: calc(var(--i) * 100ms); }
  .js [data-lines-scroll].is-in [data-line] { transform: none; }

  /* 3. Elin altındaki tepki */
  .hx-panel { animation: hx-panel 360ms var(--ease-out); }
  .hx-opt { transition: color 180ms ease, padding-left 300ms var(--ease-out); }
}

/* 4. Kaydırmaya bağlı imza hareketleri (destekleyen tarayıcılarda) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hx-hero { view-timeline-name: --hx-hero; }
    .hx-bigname { animation: hx-push linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
    .is-filling > span { color: color-mix(in oklab, currentColor 45%, transparent); animation: hx-ink linear both; animation-timeline: view(); animation-range: cover 18% cover 48%; }
  }
}

@keyframes hx-line { to { transform: none; } }
@keyframes hx-rise { to { opacity: 1; transform: none; } }
@keyframes hx-fade { to { opacity: 1; } }
@keyframes hx-settle { to { transform: none; } }
@keyframes hx-panel { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hx-turn { from { transform: translateY(-50%) rotate(0deg) scale(1); } to { transform: translateY(-46%) rotate(14deg) scale(1.08); } }
@keyframes hx-push { from { transform: translateX(14%); } to { transform: none; } }
@keyframes hx-ink { to { color: currentColor; } }

@media (max-width: 768px) {
  .hx-facts > div { grid-template-columns: 1fr; gap: 0.15rem; }
  .stt-form > div { grid-template-columns: 1fr; gap: 0.1rem; }
}

@media (max-width: 959px) {
  .hx-pic-stt { aspect-ratio: auto; padding: 2rem 0 3rem; }
  .stt { width: calc(100% - 2.5rem); }
}

.hx-case-btn { align-self: flex-start; margin-top: 0.75rem; padding: 0.95rem 1.5rem; }


/* ----- Giriş sahnesi: logo kutusundan taşar, döner, ekranı kaplar ----- */
.hx-whiteout { display: none; }

.scene .hx-whiteout {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  padding: var(--edge);
}

.scene .hx-clients { display: none; }

.hx-wo-inner { text-align: center; will-change: transform, opacity; }

.hx-wo-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: clamp(2rem, 4vw, 3.5rem) !important;
}

.hx-logos-big { justify-content: center; gap: 2rem clamp(2.5rem, 5vw, 5rem); }
.hx-logos-big img { height: clamp(44px, 5vw, 64px); }
.hx-logos-big li:nth-child(1) img { height: clamp(48px, 5.4vw, 70px); }
.hx-logos-big li:nth-child(2) img { height: clamp(64px, 7vw, 92px); }
.hx-logos-big .hx-logo-name { font-size: clamp(1.4rem, 2.4vw, 2rem); }

.scene .hx-hero { height: calc(var(--stage-h) + var(--scene-len)); }

.scene .hx-stage {
  position: sticky;
  top: var(--hh);
  height: var(--stage-h);
  min-height: 0;
  max-height: none;
  overflow: clip;
}

.scene .hx-hero-field {
  position: absolute;
  inset: 0;
  min-height: 0;
  z-index: 2;
}

.scene .hx-hero-text { position: relative; z-index: 1; }

.scene .hx-hero .hx-mark {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
}

@media (max-width: 959px) {
  .scene .hx-stage { align-content: start; }
}


/* Vaat cümleleri: ekran kaplandığında kaydırmayla tek tek yükselir */
.hx-kw { display: none; }

.scene .hx-kw {
  display: flex;
  align-items: center;
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  padding: 0 max(var(--edge), calc((100vw - 1320px) / 2 + var(--edge)));
}

.hx-kw-list {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(0.25rem, 1.2vh, 0.9rem);
}

.hx-kw-line {
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.hx-kw-in {
  display: block;
  color: #fff;
  font-size: clamp(1.9rem, min(8.2vw, 13vh), 10rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  transform: translateY(125%);
  opacity: 0;
}
