/* Fonts: Inter Tight (display/body) and JetBrains Mono (labels), latin + latin-ext for Turkish */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/it-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/it-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/it-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/it-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/it-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/it-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jb-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jb-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/jb-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/jb-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #000;
  --fg: #fff;
  --grey: #8a8a8a;
  --grey-dim: #5b5b5b;
  --line: rgba(255, 255, 255, 0.16);
  --red: #f44849;
  --red-ink: #000;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(1.1rem, 2.4vw, 2rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.mono {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.5;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--red); color: var(--red-ink); font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; }
.skip:focus { top: 1rem; }

.wrap { padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem var(--gutter);
  background: linear-gradient(#000 40%, rgba(0, 0, 0, 0));
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; justify-self: start; }
.brand img { height: 1.25rem; width: auto; }
.brand .mono { color: var(--grey); }
.header-nav { display: flex; gap: clamp(1.25rem, 3vw, 2.75rem); color: var(--grey); }
.header-nav a { transition: color 0.2s ease; }
.header-nav a:hover { color: var(--fg); }
.header-end { display: flex; align-items: center; gap: 0.85rem; justify-self: end; }
.lang { color: var(--grey); padding: 0.3rem 0.1rem; transition: color 0.2s ease; }
.lang:hover { color: var(--fg); }
.pill {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  background: var(--red);
  color: var(--red-ink);
  border-radius: 3px;
  font-weight: 500;
  white-space: nowrap;
  transition: filter 0.2s ease;
}
.pill:hover { filter: brightness(1.12); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--fg); color: #000; border-color: var(--fg); }
.btn-red { background: var(--red); color: var(--red-ink); border-color: var(--red); }
.btn-red:hover { background: var(--fg); border-color: var(--fg); }

.chip {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--red);
  color: var(--red-ink);
  border-radius: 2px;
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 7rem);
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  background: radial-gradient(45% 38% at 50% 58%, rgba(244, 72, 73, 0.16), transparent 70%);
}
h1 {
  max-width: 13em;
  margin-top: 1.75rem;
  font-weight: 400;
  font-size: clamp(2.9rem, 9vw, 8.5rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  background: linear-gradient(100deg, #fff 0%, #fff 38%, #8d8d8d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}
.hero-lede {
  max-width: 34rem;
  margin-top: 2rem;
  color: var(--grey);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  letter-spacing: -0.01em;
}
.hero-lede strong { color: var(--fg); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.25rem; }

/* ---------- Names strip ---------- */
.strip { padding: 1.5rem 0 clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.strip > .mono { display: block; margin-bottom: 1.25rem; text-align: center; color: var(--grey-dim); letter-spacing: 0.2em; }
.strip-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.strip-track { display: flex; width: max-content; animation: strip 80s linear infinite; }
.strip-track li { display: flex; align-items: center; white-space: nowrap; font-size: clamp(1.05rem, 1.7vw, 1.35rem); letter-spacing: -0.02em; color: #cfcfcf; }
.strip-track li::after { content: "/"; margin-inline: 1.5rem; color: var(--red); }
@keyframes strip { to { transform: translateX(-50%); } }

/* ---------- Section frame ---------- */
.sec { padding: clamp(4rem, 10vw, 9rem) 0; }
.sec-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--gutter) 0;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--grey);
}
.sec-top span:last-child { color: var(--fg); }
h2 {
  font-weight: 400;
  font-size: clamp(2.3rem, 6.2vw, 5.75rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}
h2 .dim { color: var(--grey-dim); }
.h2-wrap { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.lead { color: var(--grey); letter-spacing: -0.01em; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.portrait { max-width: 24rem; }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; filter: grayscale(1) contrast(1.05); transition: filter 0.6s ease; }
.portrait:hover img { filter: none; }
.portrait figcaption { margin-top: 0.75rem; color: var(--grey-dim); }
.about-copy p { max-width: 38rem; margin-top: 1.5rem; color: var(--grey); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); letter-spacing: -0.01em; }
.about-copy h2 + p { margin-top: 2rem; }
.edu { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); max-width: 38rem; }
.edu .mono { color: var(--grey-dim); }
.edu p { margin-top: 0.4rem; color: var(--fg); font-size: 1.0625rem; }
.edu span { color: var(--grey); }

/* ---------- Work ---------- */
.work-head { padding-inline: var(--gutter); margin-bottom: clamp(2rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; }
.work-head h2 { max-width: 11em; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 1.8vw, 1.5rem); padding-inline: var(--gutter); }
.card { display: block; }
.card figure { overflow: hidden; border-radius: 2px; background: #0b0b0b; }
.card img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; filter: grayscale(1) brightness(0.92) contrast(1.05); transform: scale(1.001); transition: filter 0.5s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover img, .card:focus-visible img { filter: none; transform: scale(1.04); }
.card-meta { display: grid; grid-template-columns: 2.25rem 1fr auto; align-items: baseline; gap: 0.5rem; padding-top: 0.75rem; }
.card-meta .mono { color: var(--grey-dim); }
.card h3 { font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.02em; transition: color 0.2s ease; }
.card:hover h3 { color: var(--red); }
.card .tag { color: var(--grey-dim); text-align: right; }
.work-foot { margin-top: 3rem; padding-inline: var(--gutter); display: flex; justify-content: center; }

/* ---------- Stack and experience rows ---------- */
.rows { padding-inline: var(--gutter); }
.srow, .job {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 1rem 2rem;
  padding: clamp(1.25rem, 2.4vw, 2rem) 0;
  border-top: 1px solid var(--line);
  background: radial-gradient(38% 160% at 40% 50%, transparent, transparent);
  transition: background 0.5s ease;
}
.srow:last-child, .job:last-child { border-bottom: 1px solid var(--line); }
.srow:hover, .job:hover { background: radial-gradient(38% 160% at 40% 50%, rgba(244, 72, 73, 0.2), transparent); }
.srow dt, .job time { color: var(--grey); padding-top: 0.55rem; }
.srow dd { display: flex; flex-wrap: wrap; align-items: baseline; font-size: clamp(1.6rem, 4.2vw, 3.5rem); line-height: 1.12; letter-spacing: -0.045em; color: var(--grey-dim); transition: color 0.4s ease; }
.srow:hover dd { color: var(--fg); }
.srow dd span + span::before { content: "/"; margin-inline: 0.45em; color: var(--red); }
.job h3 { font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.045em; }
.job .where { margin-top: 0.4rem; color: var(--grey); }
.job .chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.job .chips .mono { padding: 0.2rem 0.5rem; border: 1px solid var(--line); border-radius: 2px; color: var(--grey); }
.job .chip { margin-left: 0.75rem; vertical-align: 0.4em; }

/* ---------- Red section ---------- */
.faq { background: var(--red); color: #000; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 7rem); }
.faq .mono { display: block; padding-inline: var(--gutter); margin-bottom: clamp(2rem, 5vw, 4rem); }
.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem clamp(1.5rem, 3vw, 3rem); padding-inline: var(--gutter); }
.faq-item { padding-top: 1rem; border-top: 1px solid #000; }
.faq h3 { font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.1; letter-spacing: -0.035em; }
.faq p { margin-top: 0.75rem; max-width: 22rem; color: rgba(0, 0, 0, 0.78); font-size: 1rem; }

/* ---------- Footer ---------- */
.cta-bars { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(0.5rem, 1vw, 0.9rem); padding: clamp(0.5rem, 1vw, 0.9rem) var(--gutter) 0; }
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: clamp(4rem, 8vw, 6.5rem);
  padding: 0 clamp(1rem, 2vw, 2rem);
  font-weight: 600;
  font-size: clamp(1.25rem, 3.4vw, 3.1rem);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 1;
}
.bar-line { border: 1px solid var(--fg); }
.bar-solid { background: var(--fg); color: #000; transition: background 0.2s ease; }
.bar-solid:hover { background: var(--red); }
.bar-solid .arrows { letter-spacing: -0.12em; white-space: nowrap; }
.contact-line { padding: 1.75rem var(--gutter) 0; display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; color: var(--grey); }
.contact-line a:hover { color: var(--fg); }
.contact-line .mail { color: var(--fg); border-bottom: 1px solid var(--line); }
.wordmark {
  height: 0.62em;
  margin-top: 2rem;
  overflow: hidden;
  font-size: min(48vw, 58rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.78;
  text-transform: uppercase;
  white-space: nowrap;
  padding-left: 0.02em;
  user-select: none;
}
footer { margin-top: 1.25rem; padding: 0 var(--gutter) 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; color: var(--grey-dim); }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 18rem; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-nav { display: none; }
  .srow, .job { grid-template-columns: 1fr; gap: 0.35rem; }
  .srow dt, .job time { padding-top: 0; }
  .cta-bars { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .brand .mono { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip-mask { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .strip-track { animation: none; }
  .strip-track [aria-hidden="true"] { display: none; }
  .card img, .portrait img { transition: none; }
}
