:root {
  --bone: #f3efe6;
  --sand: #e8dfcf;
  --sand-deep: #ddd2be;
  --ink: #171915;
  --muted: #717166;
  --terracotta: #b95537;
  --olive: #5a6a4e;
  --deep: #232b22;
  --line: rgba(23, 25, 21, 0.16);
  --line-soft: rgba(23, 25, 21, 0.09);
  --line-light: rgba(243, 239, 230, 0.2);
  --pad: 48px;
  --max: 1600px;
  --rail: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Questrial", "Inter Tight", system-ui, sans-serif;
  --sans: "Inter Tight", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Eski temanın main{overflow:hidden} kuralı position:sticky bölümlerini bozuyor. */
#v4-main {
  overflow: visible;
}

body.is-loading,
body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

::selection {
  background: var(--terracotta);
  color: var(--bone);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 400;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bone);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-180%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 1px solid var(--terracotta);
  outline-offset: 5px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: calc(var(--rail) + 18px);
  z-index: 118;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 12px 28px rgba(23, 25, 21, 0.22);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.wa-float img {
  width: 25px;
  height: 25px;
  filter: brightness(0) invert(1);
}

.wa-float:hover {
  transform: translateY(-3px);
}

.wa-float.is-hidden,
body.menu-open .wa-float {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Intro ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--bone);
  color: var(--ink);
  transition: transform 1s var(--ease), visibility 1s;
}

.intro.is-done {
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
}

.intro__mark {
  font-family: var(--display);
  font-size: clamp(12rem, 30vw, 30rem);
  line-height: 0.7;
  letter-spacing: -0.06em;
  transform: translateY(-2%);
}

.intro__bar {
  position: absolute;
  left: 50%;
  bottom: 104px;
  width: 160px;
  height: 1px;
  background: var(--line);
  transform: translateX(-50%);
  overflow: hidden;
}

.intro__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--terracotta);
  animation: introBar 1.3s var(--ease) forwards;
}

@keyframes introBar {
  to {
    width: 100%;
  }
}

.intro__meta {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Chrome ---------- */
.chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 24px var(--pad);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(243, 239, 230, 0.96) 0%, rgba(243, 239, 230, 0.66) 55%, rgba(243, 239, 230, 0) 100%);
  transition: color 0.35s ease, background 0.35s ease;
}

.chrome__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  justify-self: start;
}

.chrome__brand strong {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.chrome__brand span {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.chrome__note {
  margin: 0;
  justify-self: center;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.chrome__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-self: end;
}

.chrome__blog {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chrome__blog span {
  font-size: 11px;
}

.chrome__blog:hover {
  color: var(--terracotta);
}

.chrome__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.chrome__cta i {
  font-style: normal;
  font-size: 12px;
}

.chrome__cta:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.chrome__menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chrome__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
}

.chrome.is-dark {
  color: var(--bone);
  background: linear-gradient(180deg, rgba(35, 43, 34, 0.92) 0%, rgba(35, 43, 34, 0.62) 55%, rgba(35, 43, 34, 0) 100%);
}

.chrome.is-dark .chrome__brand span,
.chrome.is-dark .chrome__note {
  color: rgba(243, 239, 230, 0.58);
}

.chrome.is-dark .chrome__cta {
  border-color: var(--line-light);
}

.chrome.is-dark .chrome__cta:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

body.menu-open .chrome {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(243, 239, 230, 0.98) 0%, rgba(243, 239, 230, 0.8) 55%, rgba(243, 239, 230, 0) 100%);
}

body.menu-open .chrome .chrome__brand span,
body.menu-open .chrome .chrome__note {
  color: var(--muted);
}

body.menu-open .chrome .chrome__cta {
  border-color: var(--line);
}

/* ---------- Rail ---------- */
.rail {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 15px var(--pad) 17px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  pointer-events: none;
  transition: color 0.35s ease, opacity 0.3s ease;
}

.rail__section {
  color: var(--muted);
}

.rail__cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  color: var(--muted);
}

.rail__cue i {
  position: relative;
  display: block;
  width: 44px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.rail__cue i::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: var(--terracotta);
  animation: railCue 2.4s var(--ease) infinite;
}

@keyframes railCue {
  0% {
    transform: translateX(0);
  }
  70%,
  100% {
    transform: translateX(350%);
  }
}

.rail__index {
  justify-self: end;
  color: var(--muted);
}

.rail__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line-soft);
}

.rail__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--terracotta);
}

.rail.is-dark {
  color: var(--bone);
}

.rail.is-dark .rail__section,
.rail.is-dark .rail__cue,
.rail.is-dark .rail__index {
  color: rgba(243, 239, 230, 0.56);
}

.rail.is-dark .rail__cue i {
  background: var(--line-light);
}

.rail.is-dark .rail__bar {
  background: rgba(243, 239, 230, 0.12);
}

body.menu-open .rail {
  opacity: 0;
}

/* ---------- Menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 130px var(--pad) 42px;
  background: var(--bone);
  color: var(--ink);
  overflow-y: auto;
}

.menu[hidden] {
  display: none;
}

.menu__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.menu__nav a span {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--terracotta);
}

.menu__nav a:hover {
  color: var(--terracotta);
}

.menu__page-link {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.menu__page-link span {
  color: var(--terracotta);
}

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 32px;
  width: 100%;
  max-width: var(--max);
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.menu__foot a:hover {
  color: var(--ink);
}

/* ---------- Shared ---------- */
.label {
  margin: 0 0 22px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.label--light {
  color: rgba(243, 239, 230, 0.58);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text-link span {
  font-size: 12px;
}

.text-link:hover {
  color: var(--terracotta);
}

.media-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(185, 85, 55, 0.42), rgba(90, 106, 78, 0.2));
  mix-blend-mode: multiply;
  opacity: 0.16;
  transition: opacity 1s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 140px var(--pad) var(--rail);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  top: 18%;
  right: max(var(--pad), calc((100vw - var(--max)) / 2));
  width: min(44vw, 760px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sand);
  box-shadow: 0 30px 70px rgba(23, 25, 21, 0.08);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100svh - 140px - var(--rail));
  max-width: var(--max);
  margin: 0 auto;
}

.hero__eyebrow {
  margin: 0 0 26px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title {
  margin: 0;
  max-width: 55%;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.4rem, 6.8vw, 7.4rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: var(--ink);
}

/* Eski temanın .hero__title:after "12. Yıl" rozetini bu sayfada gösterme. */
.hero__title::after {
  content: none;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .line > span {
  display: block;
}

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  max-width: 55%;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero__foot p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.hero__caption {
  position: absolute;
  right: calc(var(--pad) + 72px);
  bottom: calc(var(--rail) + 14px);
  z-index: 2;
  margin: 0;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Approach ---------- */
.approach {
  background: var(--sand);
  padding: 130px var(--pad);
}

.approach__stage {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 60px;
}

.approach__content {
  order: 1;
}

.approach__steps {
  display: grid;
  gap: 54px;
}

.approach__step {
  position: relative;
}

.step__no {
  display: block;
  margin-bottom: 20px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.approach__step h2 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.4rem, 7vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.approach__step p {
  max-width: 430px;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.approach__progress {
  display: none;
  height: 1px;
  margin-top: 60px;
  background: var(--line);
}

.approach__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--terracotta);
}

.approach__media {
  order: 2;
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--sand-deep);
}

.approach__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.approach.is-pinned {
  height: 200vh;
  padding: 0;
}

.approach.is-pinned .approach__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  max-width: none;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 6vw;
  padding: 110px var(--pad) 100px;
  align-items: stretch;
}

.approach.is-pinned .approach__content {
  order: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 6px;
}

.approach.is-pinned .approach__steps {
  position: relative;
  flex: 1;
  display: block;
  min-height: 0;
}

.approach.is-pinned .approach__step {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px);
}

.approach.is-pinned .approach__step.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.approach.is-pinned .approach__step h2 {
  font-size: clamp(3.6rem, 6.4vw, 7rem);
}

.approach.is-pinned .approach__progress {
  display: block;
  margin-top: 0;
}

.approach.is-pinned .approach__media {
  order: 2;
  height: 100%;
  min-height: 0;
}

/* ---------- Work ---------- */
.work {
  position: relative;
  padding: 130px var(--pad);
  background: var(--bone);
  border-top: 1px solid var(--line-soft);
}

.work__stage {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}

.work__ghost {
  display: none;
}

.work__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.work__head .label {
  margin: 0;
}

.work__counter {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.work__slides {
  display: grid;
  gap: 80px;
  margin-top: 50px;
}

.work__slide {
  display: grid;
  gap: 28px;
}

.work__media {
  margin: 0;
  background: #ece4d6;
  border: 1px solid var(--line-soft);
  padding: 18px;
}

.work__frame-label {
  display: block;
  margin-bottom: 14px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.work__image {
  position: relative;
  overflow: hidden;
  background: #e7dfd1;
}

.work__image img {
  width: 100%;
  height: auto;
  filter: grayscale(0.55) sepia(0.12) contrast(1.02);
  transition: filter 1.2s ease;
}

.work__slide.is-active .work__image img {
  filter: none;
}

.work__image .media-wash {
  opacity: 0.26;
}

.work__slide.is-active .work__image .media-wash {
  opacity: 0.05;
}

.work__image--phone {
  display: grid;
  place-items: center;
  padding: 26px;
}

.work__image--phone img {
  width: auto;
  max-height: 560px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(23, 25, 21, 0.18);
}

.work__info {
  align-self: end;
}

.work__index {
  display: block;
  margin-bottom: 16px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--terracotta);
}

.work__info h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 3.8vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.work__meta {
  margin: 0 0 18px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.work__desc {
  max-width: 390px;
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.work__progress {
  display: none;
  height: 1px;
  margin-top: 28px;
  background: var(--line);
}

.work__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--terracotta);
}

.work.is-pinned {
  height: 200vh;
  padding: 0;
}

.work.is-pinned .work__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  max-width: none;
  padding: 100px var(--pad) 96px;
  overflow: hidden;
}

.work.is-pinned .work__ghost {
  display: block;
  position: absolute;
  top: 28px;
  left: var(--pad);
  z-index: 0;
  margin: 0;
  font-family: var(--display);
  font-size: 23vw;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: rgba(23, 25, 21, 0.045);
  pointer-events: none;
  white-space: nowrap;
}

.work.is-pinned .work__head,
.work.is-pinned .work__slides {
  position: relative;
  z-index: 2;
}

.work.is-pinned .work__slides {
  height: calc(100% - 86px);
  margin-top: 26px;
  display: block;
}

.work.is-pinned .work__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5vw;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
}

.work.is-pinned .work__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.work.is-pinned .work__media {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.work.is-pinned .work__image {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.work.is-pinned .work__image img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.work.is-pinned .work__image--phone img {
  width: auto;
  max-height: 100%;
}

.work.is-pinned .work__info {
  align-self: end;
  padding-bottom: 8px;
}

.work.is-pinned .work__info h2 {
  font-size: clamp(2.4rem, 4.1vw, 4.4rem);
}

.work.is-pinned .work__progress {
  display: block;
}

/* ---------- Services ---------- */
.services {
  position: relative;
  padding: 150px var(--pad);
  background: var(--bone);
  border-top: 1px solid var(--line-soft);
}

.section-head {
  max-width: 1120px;
}

.section-head h2 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 5.4vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.section-head h2 span {
  color: var(--terracotta);
}

.section-aside {
  max-width: 340px;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.services__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6vw;
  margin-top: 70px;
  align-items: start;
}

.services__media {
  position: sticky;
  top: 110px;
  margin: 0;
}

.services__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center bottom;
}

.services__media figcaption {
  margin-top: 14px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.services__list {
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 44px 1fr 1fr 24px;
  align-items: baseline;
  gap: 22px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.service__no {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--terracotta);
}

.service h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.9vw, 1.75rem);
  letter-spacing: -0.02em;
  transition: color 0.3s ease, transform 0.4s var(--ease);
}

.service p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.service i {
  font-style: normal;
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.4s var(--ease), color 0.3s ease;
}

.service:hover h3 {
  color: var(--terracotta);
  transform: translateX(5px);
}

.service:hover i {
  color: var(--terracotta);
  transform: translate(4px, -4px);
}

.seo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.seo-link span {
  font-size: 12px;
}

.seo-link:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

/* ---------- AI ---------- */
.ai {
  position: relative;
  padding: 110px var(--pad);
  background: var(--sand);
  border-top: 1px solid var(--line-soft);
}

.ai__stage {
  max-width: var(--max);
  margin: 0 auto;
}

.ai__stage .section-head {
  max-width: 1120px;
}

.ai-app {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f3e9;
  box-shadow: 0 28px 70px rgba(23, 25, 21, 0.08);
}

.ai-app__tabs {
  display: flex;
  flex-direction: column;
  background: #ece3d3;
  border-right: 1px solid var(--line);
}

.ai-tab {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 6px 12px;
  padding: 20px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  border-left: 2px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.ai-tab span {
  grid-row: 1 / span 2;
  padding-top: 4px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--terracotta);
}

.ai-tab strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.ai-tab em {
  font-style: normal;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}

.ai-tab:hover {
  background: rgba(243, 239, 230, 0.5);
}

.ai-tab.is-active {
  background: #f8f3e9;
  border-left-color: var(--terracotta);
}

.ai-chat {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 20px 26px 16px;
}

.ai-chat__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.ai-chat__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ai-chat__status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--olive);
}

.ai-chat__head h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.ai-chat__badge {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.ai-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  max-height: 170px;
  padding: 14px 2px;
  overflow-y: auto;
}

.ai-msg {
  max-width: 82%;
  padding: 11px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 4px 14px 14px 14px;
  background: #fffdf8;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink);
}

.ai-msg--user {
  align-self: flex-end;
  border-color: transparent;
  border-radius: 14px 4px 14px 14px;
  background: var(--ink);
  color: var(--bone);
}

.ai-msg--typing {
  color: var(--muted);
  letter-spacing: 0.14em;
}

.ai-chat__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
}

.ai-suggestion {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.3;
  color: var(--muted);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.ai-suggestion:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: rgba(185, 85, 55, 0.05);
}

.ai-chat__form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.ai-chat__form input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink);
  outline: none;
}

.ai-chat__form input::placeholder {
  color: var(--muted);
}

.ai-chat__form button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bone);
  font-size: 15px;
  transition: background 0.3s ease;
}

.ai-chat__form button:hover {
  background: var(--terracotta);
}

.ai-chat__note {
  margin: 12px 0 0;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- References / devices ---------- */
.references {
  position: relative;
  padding: 120px var(--pad) 92px;
  background: var(--sand);
  border-top: 1px solid var(--line-soft);
}

.references .section-head {
  max-width: 1120px;
}

.references .section-aside {
  max-width: 460px;
}

.device-grid {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  margin-top: 64px;
}

.device-grid--macs {
  grid-template-columns: 1fr 1fr;
  margin-top: 52px;
}

.device-grid--phones {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  margin-top: 30px;
}

.device-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: 54px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.device-group-head .label {
  margin: 0;
}

.device-group-head > span {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.device-group-head + .device-grid {
  margin-top: 26px;
}

.device-group-head--logos {
  margin-top: 48px;
}

.device {
  margin: 0;
  min-width: 0;
}

.macbook {
  position: relative;
  width: 100%;
  aspect-ratio: 1298 / 754;
}

.macbook__screen {
  position: absolute;
  left: 11.71%;
  top: 7.16%;
  z-index: 1;
  width: 76.27%;
  height: 81.83%;
  overflow: hidden;
  border-radius: 2px;
  background: #0d0f0e;
}

.macbook__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1.1s var(--ease);
}

.macbook__frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(23, 25, 21, 0.16));
}

.device--mac:hover .macbook__screen img {
  transform: scale(1.02);
}

.device--phone {
  width: min(100%, 250px);
}

.phone {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  border: 8px solid #1a1c19;
  border-radius: 34px;
  background: #0d0f0e;
  box-shadow: 0 24px 50px rgba(23, 25, 21, 0.16);
}

.phone > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone__notch {
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 3;
  width: 32%;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #101210;
}

.device figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.device figcaption strong {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.device figcaption span {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* WhatsApp mockup */
.phone--wa {
  background: #0b141a;
}

.wa {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0b141a;
  color: #e9edef;
  font-size: 9px;
  line-height: 1.45;
}

.wa__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 26px 10px 9px;
  background: #1f2c34;
  color: #e9edef;
}

.wa__avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #b95537;
  font-size: 8px;
  font-weight: 600;
}

.wa__head strong {
  display: block;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.wa__head div > span {
  display: block;
  margin-top: 1px;
  font-size: 7px;
  color: #8696a0;
}

.wa__dots {
  margin-left: auto;
  color: #8696a0;
  font-size: 14px;
  line-height: 1;
}

.wa__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
  padding: 12px 9px;
  overflow-y: auto;
  background: #0b141a;
  scrollbar-width: none;
}

.wa__body::-webkit-scrollbar {
  display: none;
}

.wa__botnote {
  margin: 0;
  padding: 3px 0;
  text-align: center;
  font-size: 7px;
  line-height: 1.4;
  color: #8696a0;
}

.wa__date {
  align-self: center;
  margin: 3px 0;
  padding: 3px 7px;
  border-radius: 5px;
  background: #182229;
  font-size: 7px;
  color: #8696a0;
}

.wa__msg {
  max-width: 88%;
  margin: 0;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 8px;
  line-height: 1.5;
}

.wa__msg strong {
  color: #ffffff;
  font-weight: 600;
}

.wa__msg--in {
  align-self: flex-start;
  border-radius: 2px 7px 7px 7px;
  background: #202c33;
}

.wa__msg--out {
  align-self: flex-end;
  border-radius: 7px 2px 7px 7px;
  background: #005c4b;
}

.wa__msg--models {
  font-size: 7px;
}

.wa__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  background: #1f2c34;
  color: #8696a0;
  font-size: 8px;
}

.wa__bar i {
  font-style: normal;
  color: #00a884;
}

.references__note {
  max-width: 620px;
  margin: 46px 0 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.5;
  color: var(--muted);
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 44px;
  margin-top: 24px;
}

.logo-row img {
  max-height: 27px;
  width: auto;
  filter: grayscale(1) contrast(1.08);
  mix-blend-mode: multiply;
  opacity: 0.72;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.logo-row img:hover {
  filter: none;
  opacity: 1;
}

.logo-row .logo--ismer {
  max-height: 36px;
}

.logo-row .logo--titanic {
  max-height: 24px;
}

.references__title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.references__note {
  max-width: 560px;
  margin: 34px 0 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 140px var(--pad) calc(var(--rail) + 24px);
  background: var(--deep);
  color: var(--bone);
}

.cta__media {
  position: absolute;
  inset: -8% 0;
  z-index: 0;
}

.cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.72) saturate(0.92);
  transform: scale(1.03);
  will-change: transform;
}

.cta__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(20, 27, 20, 0.82) 0%, rgba(20, 27, 20, 0.35) 58%, rgba(20, 27, 20, 0.08) 100%),
    linear-gradient(180deg, rgba(20, 27, 20, 0.3) 0%, rgba(20, 27, 20, 0.12) 38%, rgba(20, 27, 20, 0.84) 100%);
}

.cta__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.cta h2 {
  margin: 0 0 32px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 6.3vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.cta h2 span {
  color: #d87d5d;
}

.cta__mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.cta__mail span {
  font-size: 16px;
}

.cta__mail:hover {
  color: #d87d5d;
  border-color: #d87d5d;
}

.cta__meta {
  display: grid;
  grid-template-columns: 1fr 1.7fr 1fr;
  gap: 40px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
}

.cta__meta div {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(243, 239, 230, 0.66);
}

.cta__meta div > span {
  display: block;
  margin-bottom: 7px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.4);
}

.cta__meta a {
  color: var(--bone);
}

.cta__meta a:hover {
  color: #d87d5d;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
}

.footer__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.footer__brand span {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(243, 239, 230, 0.5);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.55);
}

.footer nav a:hover {
  color: var(--bone);
}

.footer > span {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(243, 239, 230, 0.48);
}

/* ---------- Responsive ---------- */
@media (min-width: 981px) {
  .approach:not(.is-pinned) .approach__media {
    width: min(46vw, 640px);
    margin-left: auto;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 1200px) {
  .hero__media {
    width: 44vw;
  }

  .service {
    grid-template-columns: 38px 1fr 1fr 20px;
    gap: 16px;
  }
}

@media (max-width: 980px) {
  :root {
    --pad: 24px;
    --rail: 66px;
  }

  /* Masaüstünden mobil boyuta geçişte kalan is-pinned sınıfını etkisizleştir. */
  .approach.is-pinned {
    height: auto;
    padding: 130px var(--pad);
  }

  .approach.is-pinned .approach__stage {
    position: static;
    height: auto;
    max-width: var(--max);
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 0;
  }

  .approach.is-pinned .approach__content {
    display: block;
    padding-top: 0;
  }

  .approach.is-pinned .approach__steps {
    display: grid;
    gap: 54px;
    min-height: 0;
  }

  .approach.is-pinned .approach__step {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .approach.is-pinned .approach__progress {
    display: none;
  }

  .approach.is-pinned .approach__media {
    height: auto;
  }

  .ai,
  .references {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .ai-app {
    grid-template-columns: 1fr;
    margin-top: 44px;
  }

  .ai-app__tabs {
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ai-tab {
    flex: 1;
    grid-template-columns: 20px 1fr;
    padding: 16px 14px;
    border-bottom: 0;
    border-left: 0;
    border-top: 2px solid transparent;
  }

  .ai-tab.is-active {
    border-left-color: transparent;
    border-top-color: var(--terracotta);
  }

  .ai-tab em {
    display: none;
  }

  .ai-tab strong {
    font-size: 1.1rem;
  }

  .ai-chat {
    min-height: 430px;
    padding: 22px 20px 18px;
  }

  .device-grid {
    margin-top: 44px;
  }

  .device-grid--macs {
    grid-template-columns: 1fr;
  }

  .device-grid--phones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .device--phone {
    width: min(100%, 220px);
  }

  .references__note {
    margin-top: 32px;
  }

  .chrome {
    grid-template-columns: 1fr auto;
    padding: 20px var(--pad);
  }

  .chrome__note,
  .chrome__blog {
    display: none;
  }

  .hero {
    padding: 112px var(--pad) calc(var(--rail) + 20px);
    min-height: auto;
  }

  .hero__inner {
    min-height: 0;
  }

  .hero__media {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin-top: 38px;
    order: 2;
    box-shadow: none;
  }

  .hero__title {
    max-width: 100%;
    font-size: clamp(3rem, 12vw, 5.6rem);
  }

  .hero__foot {
    max-width: 100%;
    margin-top: 30px;
  }

  .hero__caption {
    display: none;
  }

  .approach,
  .work,
  .services {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .approach__step h2 {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .approach__media {
    aspect-ratio: 4 / 5;
  }

  .work__info h2 {
    font-size: 2.2rem;
  }

  .work__image--phone img {
    max-height: 460px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .services__media {
    position: static;
    max-width: 520px;
  }

  .service {
    grid-template-columns: 32px 1fr 22px;
    gap: 12px;
    padding: 22px 0;
  }

  .service p {
    grid-column: 2 / span 2;
    margin-top: 2px;
  }

  .service i {
    grid-column: 3;
    grid-row: 1;
  }

  .references {
    margin-top: 70px;
  }

  .cta {
    padding-top: 120px;
  }

  .cta__meta {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 44px;
  }

  .footer {
    flex-wrap: wrap;
    margin-top: 36px;
  }

  .footer nav {
    order: 3;
    width: 100%;
  }

  .rail {
    padding: 13px var(--pad);
  }

  .rail__cue {
    display: none;
  }

  .rail {
    grid-template-columns: 1fr auto;
  }

  .rail__index {
    grid-column: 2;
  }

  .menu {
    padding: 104px var(--pad) 30px;
  }

  .menu__nav a {
    font-size: clamp(2.4rem, 10vw, 3.6rem);
    gap: 16px;
  }

  .menu__foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .chrome__cta {
    display: none;
  }

  .ai-tab {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 10px;
  }

  .ai-tab span {
    display: none;
  }

  .ai-tab strong {
    font-size: 0.95rem;
  }

  .ai-chat {
    min-height: 400px;
    padding: 18px 14px 14px;
  }

  .ai-chat__messages {
    max-height: 260px;
  }

  .ai-msg {
    font-size: 12px;
  }

  .device-grid--phones {
    gap: 16px;
  }

  .device--phone {
    width: 100%;
    max-width: 190px;
  }

  .device figcaption {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .wa-float {
    right: 16px;
    bottom: calc(var(--rail) + 12px);
    width: 46px;
    height: 46px;
  }

  .wa-float img {
    width: 22px;
    height: 22px;
  }

  .chrome__actions {
    gap: 0;
  }

  .hero__eyebrow {
    margin-bottom: 20px;
  }

  .hero__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .work__ghost {
    display: none;
  }

  .work__media {
    padding: 12px;
  }

  .work__frame-label {
    margin-bottom: 10px;
  }

  .work__image--phone {
    padding: 18px;
  }

  .logo-row {
    gap: 20px 28px;
  }

  .logo-row img {
    max-height: 22px;
  }

  .logo-row .logo--ismer {
    max-height: 30px;
  }

  .cta h2 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

  .cta__mail {
    font-size: 1.1rem;
  }

  .footer__brand {
    width: 100%;
  }

  .footer > span {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .intro {
    display: none;
  }

  .rail__cue i::after {
    animation: none;
  }
}
