/* Design tokens — Figma: brand/black, brand/white, brand/purple */
:root {
  --black: #131313;
  --white: #ffffff;
  --purple: #8f6fdb;
  /* the digital blue already in the Figma cover gradients */
  --blue: #1a3ae1;

  --font-display: 'Gambarino', 'Times New Roman', serif;
  --font-body: 'Cabinet Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --page: 1232px;
  --gutter: 24px;
  --rule: 1.5px solid var(--black);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* the fixed nav is ~97px tall — stop section headings landing underneath it */
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--white);
  color: var(--blue);
}

img { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- shared bits ---------- */

.eyebrow {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.85); }

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 57px;
  padding: 0 23px;
  border: var(--rule);
  border-radius: 38px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--black); color: var(--white); }
.btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

.btn--solid {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}
.btn--solid:hover { background: transparent; color: var(--white); transform: translateY(-2px); }
.btn--solid:focus-visible { outline-color: var(--white); }

.btn--lg { height: 64px; padding: 0 34px; }

a:focus-visible,
button:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  color: var(--white);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.nav__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.24px;
  white-space: nowrap;
}
.nav__right { display: flex; align-items: center; gap: 24px; }
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.nav__links a:hover { opacity: 0.6; }

.nav .btn { border-color: currentColor; }
.nav .btn:hover { background: var(--white); color: var(--black); }

.nav.is-solid {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 0 rgba(19, 19, 19, 0.08);
}
.nav.is-solid .btn:hover { background: var(--black); color: var(--white); }

/* language toggle */
.lang {
  display: flex;
  align-items: center;
  border: 1.5px solid currentColor;
  border-radius: 38px;
  overflow: hidden;
}
.lang__btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 8px 12px;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  opacity: 0.55;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.lang__btn:hover { opacity: 1; }
/* the active chip inverts against whichever state the bar is in */
.lang__btn.is-on { opacity: 1; background: var(--white); color: var(--black); }
.nav.is-solid .lang__btn.is-on { background: var(--black); color: var(--white); }

/* ---------- banner ---------- */

.banner {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 140px var(--gutter) 96px;
  overflow: hidden;
  color: var(--white);
}
.banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.banner__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(19, 19, 19, 0.55) 0%, rgba(19, 19, 19, 0.15) 42%, rgba(19, 19, 19, 0.6) 100%),
    linear-gradient(90deg, rgba(19, 19, 19, 0.5) 0%, rgba(19, 19, 19, 0) 65%);
}
.banner__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.banner__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  /* sized so the longer Turkish line still fits two lines inside --page */
  font-size: clamp(34px, 5.2vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-wrap: balance;
}
.banner__lede {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.4;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.9);
}
.banner__cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  font-size: 20px;
  color: var(--white);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- intro ---------- */

.intro {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 160px) var(--gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.intro__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--blue);
}
.intro__second { display: inline-block; margin-left: clamp(0px, 7vw, 100px); }
.intro__underlined {
  /* the Figma underline is a flat 1.5px rule; drawn in CSS so it follows the text colour */
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom 0.06em;
  background-size: 100% 1.5px;
  padding-bottom: 0.04em;
}

/* ---------- projects ---------- */

.projects {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(72px, 10vh, 120px) var(--gutter) 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 82px 16px;
}
.projects__eyebrow { grid-column: 1 / -1; margin-bottom: -50px; }

.project { display: flex; flex-direction: column; gap: 12px; }
/* class display would otherwise beat the browser's own [hidden] rule */
[hidden] { display: none !important; }
.project__meta {
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.project__tech { opacity: 0.5; }
.project__title {
  margin: 0;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.4;
}
.project__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.75;
  max-width: 56ch;
}

.cover {
  position: relative;
  aspect-ratio: 608 / 493;
  overflow: hidden;
  background: var(--white);
}
.cover__img { position: absolute; }
.cover__img img { width: 100%; height: 100%; object-fit: cover; }
.cover__noise {
  position: absolute;
  inset: 0;
  background-image: url('assets/noise.png');
  background-repeat: repeat;
  background-size: 116.47px 116.47px;
  mix-blend-mode: overlay;
  opacity: 0.7;
  pointer-events: none;
}
.cover__ellipse { position: absolute; max-width: none; }

/* Figma cover geometry — insets copied from the source nodes, do not round */
.cover--coffee { background: var(--white); }
.cover__img--coffee {
  inset: -93.94% -60.23% -49.39% -113.41%;
  mix-blend-mode: multiply;
}
.cover--coffee .cover__tint {
  position: absolute;
  inset: 0;
  background: var(--purple);
  mix-blend-mode: multiply;
  opacity: 0.12;
}
.cover__ellipse--coffee { left: -67%; top: 68.5%; width: 203.2%; }

.cover--coins {
  background-image:
    linear-gradient(-0.74deg, rgb(85, 163, 255) 78.18%, rgba(136, 83, 222, 0) 98.42%),
    radial-gradient(120% 140% at 0% 0%, rgba(225, 195, 255, 1) 0%, rgba(154, 194, 239, 0.5) 50%, rgba(83, 193, 222, 0) 100%),
    linear-gradient(90deg, var(--black) 0%, var(--black) 100%);
}
.cover__img--coins { inset: 30.37% 3.11% -25.48% 25.56%; }

.cover--logos {
  background-image:
    radial-gradient(120% 140% at 0% 0%, rgba(219, 111, 215, 0.8) 0%, rgba(175, 168, 235, 0.4) 50%, rgba(132, 225, 255, 0) 100%),
    linear-gradient(249.42deg, rgb(255, 90, 94) 18.1%, rgba(26, 58, 225, 0) 61.8%),
    linear-gradient(90deg, var(--black) 0%, var(--black) 100%);
}
.cover__img--logos { inset: -27.85% -34.56% -28% 17.67%; }

.cover--harrys { background: var(--white); }
.cover__img--harrys {
  inset: -60.61% -83.41% -11.82% -10.68%;
  transform: rotate(180deg);
}
.cover__img--harrys::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff0b9 0%, #f4b0ff 100%);
  mix-blend-mode: multiply;
}
.cover__ellipse--harrys { left: -63.6%; top: 56.4%; width: 203.2%; }

/* ---------- hairline row list: shared by Stack and Experience ---------- */

.rows { display: flex; flex-direction: column; }
.row {
  display: flex;
  gap: 40px;
  padding: 28px 0;
  border-top: var(--rule);
}
.rows > .row:last-child { border-bottom: var(--rule); }

/* Stack */
.services {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(72px, 10vh, 120px) var(--gutter) 0;
  display: flex;
  gap: 30px;
}
.services__hand {
  font-family: var(--font-display);
  font-size: 59px;
  line-height: 1.05;
  flex: none;
}
.services__body { flex: 1; display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.row__title {
  margin: 0;
  flex: 0 0 34%;
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.2;
}
.row__items {
  margin: 0;
  flex: 1;
  align-self: center;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.75;
}

/* Experience */
.experience {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(72px, 10vh, 120px) var(--gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.experience__head { display: flex; flex-direction: column; gap: 16px; }

.row--exp { align-items: flex-start; }
.row__date {
  margin: 0;
  flex: 0 0 190px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding-top: 6px;
}
.row__body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row__role {
  margin: 0;
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
}
.row__place {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.5;
}
.row__desc {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.75;
  max-width: 68ch;
}

/* ---------- about ---------- */

/* reads as a continuation of the intro headline above it, so the gap stays tight */
.about {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(40px, 6vh, 64px) var(--gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.about__body { display: flex; align-items: center; gap: clamp(40px, 8vw, 123px); }
.avatar {
  flex: none;
  width: 399px;
  height: 399px;
  max-width: 40vw;
  max-height: 40vw;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(240.57deg, var(--purple) 3.69%, #f2a28a 91.34%);
}
.avatar__photo { width: 100%; height: 100%; object-fit: cover; }

.about__text { display: flex; flex-direction: column; gap: 32px; max-width: 608px; }
.about__text > p { margin: 0; font-weight: 500; font-size: 24px; line-height: 1.4; }

.facts { margin: 0; display: flex; flex-direction: column; }
.fact {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid rgba(19, 19, 19, 0.15);
}
.fact dt {
  flex: 0 0 120px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.5;
}
.fact dd { margin: 0; flex: 1; font-size: 16px; line-height: 1.5; }

/* ---------- contact ---------- */

.inquiry {
  padding: clamp(96px, 14vh, 180px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.inquiry__lede {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.5;
  opacity: 0.7;
  max-width: 44ch;
}

/* ---------- footer ---------- */

.footer {
  padding: 0 var(--gutter) 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.footer__links a {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.footer__links a:hover { opacity: 0.6; }
.footer__mail { margin: 8px 0 0; font-size: 16px; }
.footer__mail a { border-bottom: 1px solid rgba(19, 19, 19, 0.3); }
.footer__mail a:hover { border-color: var(--black); }
.footer__copy { margin: 0; font-size: 14px; opacity: 0.5; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .nav__links { display: none; }
  .row { flex-direction: column; gap: 12px; }
  .row__title { flex: none; }
  .row__items { align-self: stretch; }
  .row__date { flex: none; padding-top: 0; }
}

@media (max-width: 760px) {
  .projects { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .projects__eyebrow { margin-bottom: -32px; }
  .services { flex-direction: column; gap: 16px; }
  .about__body { flex-direction: column; align-items: flex-start; }
  .avatar { max-width: 72vw; max-height: 72vw; }
  .about__text > p { font-size: 20px; }
  .fact { flex-direction: column; gap: 4px; }
  .fact dt { flex: none; }
  .nav__logo { font-size: 18px; }
  .nav__inner { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .banner__cue { animation: none; }
  .btn, .lang__btn, .nav { transition: none; }
}
