/* Uğur Kadir Karahan — site stilleri
   Koyu varsayılan + açık tema; tek vurgu rengi (sinyal turuncusu). */

:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --surface: #141417;
  --line: #24242a;
  --line-strong: #383840;
  --text: #f4f3ef;
  --text-2: #a9a7a1;
  --text-3: #85837d;
  --accent: #ff5b1f;
  --accent-hover: #ff7440;
  --accent-ink: #ff7a45;
  --on-accent: #0b0b0c;
  --grid: rgba(255, 255, 255, 0.045);
  --glow: rgba(255, 91, 31, 0.16);
  --shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.85);
  --tint-strength: 34%;

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-text: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f5f4ef;
  --bg-2: #edebe4;
  --surface: #fbfaf7;
  --line: #dedbd2;
  --line-strong: #c6c2b7;
  --text: #0f0f11;
  --text-2: #53514c;
  --text-3: #6b6862;
  --accent: #f0521a;
  --accent-hover: #d9460f;
  --accent-ink: #c2410c;
  --on-accent: #0f0f11;
  --grid: rgba(15, 15, 17, 0.06);
  --glow: rgba(240, 82, 26, 0.12);
  --shadow: 0 30px 60px -35px rgba(30, 20, 10, 0.45);
  --tint-strength: 22%;
  color-scheme: light;
}

/* ---------- Temel ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--f-display);
  font-optical-sizing: auto;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--f-mono);
}

.muted {
  color: var(--text-2);
}

.sep {
  margin-inline: 0.6em;
  color: var(--text-3);
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  flex: none;
}

.arrow {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

a:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Butonlar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text);
}

.btn .apple {
  width: 18px;
  height: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-weight: 550;
  white-space: nowrap;
  transition: border-color 0.2s;
}

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

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s;
}

.icon-btn:hover {
  border-color: var(--line-strong);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun {
  display: none;
}

.role-tag {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--text);
}

.role-dev {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--accent-ink);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin-top: 22px;
}

.tags li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-2);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--text-2);
}

.check-list,
.dash-list {
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 9px 0;
  padding-left: 22px;
  color: var(--text-2);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.dash-list li {
  position: relative;
  margin: 8px 0;
  padding-left: 20px;
  color: var(--text-2);
}

.dash-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-3);
}

.dash-list a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* ---------- Header ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

/* Bulanık zemin ayrı katmanda: backdrop-filter header'ın kendisinde olursa
   mobil menünün position: fixed'i header'a göre hesaplanır. */
.hdr::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.hdr.is-open::before {
  background: var(--bg);
}

.hdr.is-scrolled {
  border-bottom-color: var(--line);
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-family: var(--f-display);
  font-size: 1.06rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.mark {
  width: 32px;
  height: 32px;
  color: var(--text);
}

.mark-caret {
  fill: var(--accent);
}

.brand:hover .mark-caret {
  animation: blink 1s steps(1) infinite;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.95rem;
  color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: var(--bg-2);
}

.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
}

.hdr-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
}

.lang a {
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--text-3);
  transition: color 0.2s;
}

.lang a:hover {
  color: var(--text);
}

.lang a[aria-current="true"] {
  background: var(--bg-2);
  color: var(--text);
}

.menu-btn {
  display: none;
}

.burger {
  display: grid;
  gap: 5px;
  width: 16px;
}

.burger span {
  height: 1.6px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.hdr.is-open .burger span:first-child {
  transform: translateY(3.3px) rotate(45deg);
}

.hdr.is-open .burger span:last-child {
  transform: translateY(-3.3px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(40px, 8vw, 112px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, var(--glow), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 75% 15%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 70% at 75% 15%, #000 10%, transparent 72%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.eyebrow-status {
  flex-wrap: wrap;
}

.eyebrow-status::before {
  display: none;
}

.eyebrow-status .muted {
  text-transform: none;
  letter-spacing: 0.02em;
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ping 2.2s var(--ease) infinite;
}

.hero-title {
  margin-top: clamp(20px, 3vw, 32px);
  font-size: clamp(3.1rem, 0.8rem + 9.2vw, 9.6rem);
  font-weight: 750;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.hero-title .line {
  display: block;
}

.line-accent {
  color: var(--accent);
}

.caret {
  display: inline-block;
  width: 0.36em;
  height: 0.72em;
  margin-left: 0.1em;
  background: var(--accent);
  vertical-align: -0.02em;
  animation: blink 1.1s steps(1) infinite;
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 48px;
  margin-top: clamp(32px, 4vw, 52px);
}

.lead {
  max-width: 620px;
  font-size: clamp(1.06rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--line);
}

.stat {
  padding: 26px 24px 8px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat dt {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 1.6rem + 3vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat dd {
  max-width: 22ch;
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--text-2);
}

/* ---------- Bölümler ---------- */

.section {
  padding-block: clamp(80px, 11vw, 150px);
}

.section-tight {
  padding-block: clamp(36px, 5vw, 64px);
}

.section-flush {
  padding-top: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-title {
  margin-top: 16px;
  font-size: clamp(2rem, 1.25rem + 2.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section-text {
  max-width: 58ch;
  margin-top: 16px;
  color: var(--text-2);
}

/* ---------- Süreç (pipeline) ---------- */

.process {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.pipeline::before,
.pipeline::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}

.pipeline::after {
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease) 0.2s;
}

.pipeline.is-in::after,
html:not(.js) .pipeline::after {
  transform: scaleX(1);
}

.step {
  position: relative;
  padding: 44px 28px 0 0;
}

.step-node {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-2);
  transition: background-color 0.4s, border-color 0.4s;
  transition-delay: calc(0.3s + var(--i) * 0.4s);
}

.pipeline.is-in .step-node {
  border-color: var(--accent);
  background: var(--accent);
}

.step-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-3);
}

.step-title {
  margin-top: 14px;
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.step-text {
  margin-top: 8px;
  font-size: 0.98rem;
  color: var(--text-2);
}

/* ---------- Seçili işler ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.work-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.work-card .window {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.work-card img {
  transition: transform 0.8s var(--ease);
}

.work-card:hover img {
  transform: scale(1.025);
}

.work-body {
  padding: 24px 26px 28px;
}

.work-cat {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.work-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.work-title .arrow {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.work-text {
  margin-top: 8px;
  color: var(--text-2);
}

.work-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

.work-card-wide .window {
  border-bottom: 0;
  border-right: 1px solid var(--line);
}

.work-card-wide .work-body {
  align-self: center;
  padding: clamp(28px, 3.5vw, 52px);
}

.work-card-wide .work-title {
  font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem);
}

.work-card-wide .work-text {
  font-size: 1.1rem;
}

/* Tarayıcı penceresi çerçevesi — ekran görüntüleri her temada koyu kalır */
.window {
  position: relative;
  overflow: hidden;
  border: 1px solid #2a2a31;
  border-radius: 14px;
  background: #0d0d10;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid #24242a;
  background: #17171b;
}

.window-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3a42;
}

.window-url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  margin-right: 39px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: #8f8d87;
}

.window-url svg {
  width: 11px;
  height: 11px;
}

.window img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
}

/* ---------- App şeridi ---------- */

.app-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.app-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.app-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--tint) var(--tint-strength), transparent), transparent 65%);
  opacity: 0.5;
  transition: opacity 0.4s;
}

.app-tile:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.app-tile:hover::before {
  opacity: 1;
}

.app-tile img {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 15px;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
}

.app-tile-name {
  font-weight: 600;
}

.app-tile-cat {
  font-size: 0.86rem;
  color: var(--text-3);
}

/* ---------- Deneyim özeti ---------- */

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

.exp-teaser-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px 80px;
  align-items: start;
}

.exp-teaser .text-link {
  margin-top: 28px;
}

.mini-timeline {
  list-style: none;
  border-top: 1px solid var(--line);
}

.mini-timeline li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.mini-timeline .mono {
  font-size: 0.85rem;
  color: var(--text-3);
}

.mini-timeline .is-current .mono {
  color: var(--accent-ink);
}

.tl-role {
  font-weight: 550;
}

.tl-co {
  font-size: 0.92rem;
  color: var(--text-2);
}

/* ---------- İç sayfa başlığı ---------- */

.page-hero {
  padding-top: clamp(56px, 9vw, 128px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.page-title {
  max-width: 15ch;
  margin: 20px 0 26px;
  font-size: clamp(2.7rem, 1rem + 5.4vw, 5.8rem);
  font-weight: 750;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

/* ---------- Projeler ---------- */

.roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.role-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.role-title {
  margin: 16px 0 10px;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.case {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
  padding-block: clamp(44px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.case:nth-of-type(even) .case-media {
  order: 2;
}

.case-index {
  font-size: 0.8rem;
  color: var(--text-3);
}

.case-title {
  margin-top: 12px;
  font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3.4rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
}

.case-cat {
  margin-top: 10px;
  font-weight: 550;
  color: var(--accent-ink);
}

.case-summary {
  margin-top: 18px;
  font-size: 1.12rem;
}

.case-ps {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.case-ps > div {
  padding-left: 16px;
  border-left: 2px solid var(--line-strong);
}

.case-ps dt {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.case-ps dd {
  margin-top: 4px;
  font-size: 0.98rem;
  color: var(--text-2);
}

.soon-card {
  position: relative;
  padding: clamp(32px, 5vw, 64px);
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, var(--grid) 14px 15px);
}

.soon-card .btn {
  margin-top: 28px;
}

.oss-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 20px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s;
}

.oss-card:hover {
  border-color: var(--line-strong);
}

.oss-card img {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 13px;
}

.oss-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-family: var(--f-mono);
  font-size: 1rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.oss-card p {
  color: var(--text-2);
}

.oss-card .tags {
  margin-top: 14px;
}

/* ---------- Uygulamalar ---------- */

.app-list {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.app {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.app::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(55% 75% at 78% 55%, color-mix(in srgb, var(--tint) var(--tint-strength), transparent), transparent 72%);
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 21px;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.7);
}

.app-meta {
  margin-top: 26px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.app-name {
  margin-top: 8px;
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.badge {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--accent-ink);
}

.app-text {
  margin-top: 16px;
  font-size: 1.06rem;
  color: var(--text-2);
}

.app .check-list {
  margin: 18px 0 30px;
}

.app-shots {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 18px);
}

.app-shots img {
  width: 31%;
  max-width: 214px;
  height: auto;
  border-radius: clamp(12px, 1.6vw, 20px);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.75);
  transition: transform 0.6s var(--ease);
}

.app-shots img:nth-child(1) {
  transform: translateY(18px) rotate(-4deg);
}

.app-shots img:nth-child(2) {
  position: relative;
  z-index: 1;
  transform: translateY(-12px);
}

.app-shots img:nth-child(3) {
  transform: translateY(18px) rotate(4deg);
}

.app:hover .app-shots img:nth-child(1) {
  transform: translate(-8px, 14px) rotate(-6deg);
}

.app:hover .app-shots img:nth-child(3) {
  transform: translate(8px, 14px) rotate(6deg);
}

/* ---------- Deneyim ---------- */

.timeline {
  list-style: none;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.job {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 12px 40px;
  padding-block: clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.job-dates {
  padding-top: 10px;
  font-size: 0.84rem;
  color: var(--text-3);
}

.job.is-current .job-dates {
  color: var(--accent-ink);
}

.job-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.now {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job-co {
  margin-top: 4px;
  color: var(--text-2);
}

.job-summary {
  max-width: 70ch;
  margin-top: 14px;
  font-size: 1.05rem;
}

.job-body > .dash-list {
  margin-top: 12px;
}

.job-group {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 20px;
}

.job-group .role-tag {
  justify-self: start;
  margin-top: 9px;
}

.facts {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px 80px;
}

.facts .section-title {
  margin-top: 0;
  font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.4rem);
}

.facts .section-title ~ .section-title {
  margin-top: 56px;
}

.skill-group h3 {
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.skill-group .tags {
  margin-top: 12px;
}

.skill-group .tags li {
  font-size: 0.8rem;
  padding: 6px 10px;
}

.edu {
  list-style: none;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.edu li {
  display: grid;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.edu strong {
  font-weight: 600;
}

.edu span {
  color: var(--text-2);
}

.edu .mono {
  font-size: 0.82rem;
  color: var(--text-3);
}

.facts .dash-list {
  margin-top: 16px;
}

/* ---------- 404 ---------- */

.nf {
  padding-block: clamp(72px, 12vw, 168px);
}

.nf-code {
  font-family: var(--f-display);
  font-size: clamp(6rem, 3rem + 14vw, 14rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.nf .lead {
  margin-bottom: 36px;
}

/* ---------- Footer / iletişim ---------- */

.ftr {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding-top: clamp(80px, 12vw, 160px);
}

.ftr::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: 120vw;
  height: 70vw;
  max-height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--glow), transparent 60%);
  pointer-events: none;
}

.ftr .wrap {
  position: relative;
}

.ftr-title {
  max-width: 13ch;
  margin-top: 18px;
  font-size: clamp(2.7rem, 1rem + 6vw, 6.2rem);
  font-weight: 750;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.ftr-text {
  max-width: 48ch;
  margin: 24px 0 40px;
  font-size: 1.15rem;
  color: var(--text-2);
}

.ftr-mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 0.9rem + 2.1vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.ftr-mail:hover {
  color: var(--accent-ink);
}

.ftr-mail .arrow {
  width: 0.8em;
  height: 0.8em;
}

.ftr-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.ftr-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  transition: color 0.2s;
}

.ftr-social a:hover {
  color: var(--text);
}

.ftr-social svg {
  width: 18px;
  height: 18px;
}

.ftr-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: clamp(80px, 10vw, 140px);
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-3);
}

/* ---------- Hareket ---------- */

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  80%,
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.3em);
  }
}

.js .hero-title .line {
  animation: rise 0.9s var(--ease) both;
  animation-delay: calc(var(--i) * 110ms + 60ms);
}

.js .hero-foot,
.js .hero .stats {
  animation: rise 0.9s var(--ease) 0.45s both;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .pipeline::after {
    transform: scaleX(1);
  }

  .pipeline .step-node {
    border-color: var(--accent);
    background: var(--accent);
  }
}

/* ---------- Duyarlı ---------- */

@media (max-width: 1080px) {
  .app-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .job {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .menu-btn {
    display: inline-grid;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 32px;
    background: var(--bg);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }

  .hdr.is-open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s, transform 0.25s var(--ease);
  }

  .nav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-family: var(--f-display);
    font-size: 2rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--text);
  }

  .nav a:hover {
    background: none;
  }

  .nav a[aria-current="page"] {
    color: var(--accent);
  }

  .nav a[aria-current="page"]::after {
    display: none;
  }

  .hero-foot {
    grid-template-columns: 1fr;
  }

  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }

  .pipeline::before,
  .pipeline::after {
    display: none;
  }

  .step {
    padding-top: 32px;
    border-top: 1px solid var(--line-strong);
  }

  .step-node {
    top: -8px;
  }

  .work-grid,
  .work-card-wide,
  .exp-teaser-in,
  .roles,
  .case,
  .app,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-card-wide .window {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case:nth-of-type(even) .case-media {
    order: 0;
  }

  .app-shots {
    padding-top: 8px;
  }

  .job {
    grid-template-columns: minmax(0, 1fr);
  }

  .job-dates {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .brand-name {
    display: none;
  }

  .hdr-in {
    gap: 12px;
  }

  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat,
  .stat:first-child {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 18px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat dt {
    min-width: 2.2ch;
  }

  .stat dd {
    margin-top: 0;
  }

  .pipeline {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .eyebrow-status .sep {
    display: none;
  }

  .eyebrow-status .muted {
    flex-basis: 100%;
    padding-left: 18px;
  }

  /* Uygulama kutuları: kenara taşan yatay kaydırmalı şerit */
  .app-strip {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .app-strip::-webkit-scrollbar {
    display: none;
  }

  .app-tile {
    flex: 0 0 152px;
    padding: 18px;
    scroll-snap-align: start;
  }

  .mini-timeline li {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .tl-co {
    grid-column: 2;
    margin-top: -12px;
  }

  .job-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .window-url {
    margin-right: 0;
  }

  .actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
