/*
Theme Name: Farrukh Sharif
Description: Portfolio of Farrukh Sharif — Creative Director, Tashkent
Author: Farrukh Sharif
Version: 1.0
*/

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:  #111111;
  --white:  #ffffff;
  --gray:   #888888;
  --light:  #ececec;
  --body:   #2a2a2a;
  --serif:  'EB Garamond', 'Times New Roman', serif;
  --sans:   'DM Sans', sans-serif;
  --px:     3.5rem;
}

html { font-size: 16px; }
body {
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { background: none; border: none; font: inherit; color: inherit; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }

/* ── NAV ───────────────────────────────────── */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem var(--px);
  background: var(--white);
  border-bottom: 1px solid var(--light);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 2px;
  text-decoration: none;
  color: var(--black);
}
.nav-name-main {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}
.nav-name-role {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}
.site-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}
.site-nav a {
  font-size: 12px;
  opacity: 0.55;
  transition: opacity 0.2s;
  color: var(--black);
}
.site-nav a:hover,
.site-nav a.active-link { opacity: 1; }

/* ── WORK GRID ─────────────────────────────── */
.work-section { padding: 4rem var(--px) 6rem; }

.fs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.fs-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  color: var(--black);
}
.fs-card:hover { opacity: 0.5; }

.fs-card-cover {
  aspect-ratio: 1 / 1;
  background: var(--light);
  overflow: hidden;
}
.fs-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter 0.4s;
}
.fs-card:hover .fs-card-cover img { filter: grayscale(0); }

.fs-card-text { display: flex; flex-direction: column; gap: 3px; }
.fs-card-title { font-size: 14px; font-weight: 400; line-height: 1.45; }
.fs-card-meta  { font-size: 12px; font-weight: 300; color: var(--gray); line-height: 1.45; }
.fs-card-awards { color: var(--black); margin-top: 2px; }

/* Award tier colours (grid summary) */
.tier-gold   { color: #b58a2b; }
.tier-silver { color: #8a8e95; }
.tier-bronze { color: #a86b3c; }

/* ── PROJECT PAGE ──────────────────────────── */
.project-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray);
  padding: 3rem var(--px) 0;
  transition: opacity 0.2s;
}
.project-back:hover { opacity: 0.5; color: var(--black); }

.project-hero { padding: 1.5rem var(--px) 0; max-width: calc(860px + var(--px) * 2); }
.project-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}
.project-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 1.25rem;
}
.project-awards {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.78;
  max-width: 720px;
  margin-bottom: 2.5rem;
}
.project-awards b    { font-weight: 400; color: var(--black); }
.project-awards .sep { color: var(--light); margin: 0 0.4em; }

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  margin: 0 0 3rem;
}
.video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}
.video-placeholder {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--light);
  margin: 0 0 3rem;
}
.video-placeholder::after {
  content: 'No video added';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 12px;
}

.project-body { max-width: 640px; padding: 0 var(--px) 4rem; }
.project-body p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.78;
  color: var(--body);
  margin-bottom: 1.4rem;
}
.project-body strong { font-weight: 500; color: var(--black); }
.project-body em     { font-style: italic; }
.project-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--black);
  margin: 2.5rem 0 0.6rem;
}

/* Next project */
.next-project {
  border-top: 1px solid var(--light);
  margin: 0 var(--px);
  padding: 2rem 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  text-decoration: none;
  color: var(--black);
  transition: opacity 0.2s;
}
.next-project:hover { opacity: 0.5; }
.next-project-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}
.next-project-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

/* ── ABOUT ─────────────────────────────────── */
.about-inner {
  padding: 5rem var(--px) 4rem;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1200px;
}
.about-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--light);
  overflow: hidden;
}
.about-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.about-text { max-width: 560px; padding-top: 0.5rem; }
.about-eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
}
.about-headline {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.18;
  margin-bottom: 2rem;
}
.about-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.78;
  color: var(--body);
  margin-bottom: 1.4rem;
}

/* ── CONTACT ───────────────────────────────── */
.contact-inner { padding: 5rem var(--px) 4rem; max-width: 700px; }
.contact-eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.5rem;
}
.contact-list { display: flex; flex-direction: column; }
.contact-item {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--light);
  text-decoration: none;
  color: var(--black);
  transition: opacity 0.2s;
}
.contact-item:last-child  { border-bottom: 1px solid var(--light); }
.contact-item:hover       { opacity: 0.5; }
.contact-type {
  font-size: 12px;
  color: var(--gray);
  min-width: 110px;
}
.contact-value {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

/* ── FOOTER ────────────────────────────────── */
.site-footer {
  padding: 1.5rem var(--px);
  border-top: 1px solid var(--light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
}
.footer-copy { font-size: 11px; font-weight: 300; color: var(--gray); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 11px; opacity: 0.55; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 1024px) {
  .fs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 4rem; }
  .about-portrait { max-width: 360px; }
}
@media (max-width: 720px) {
  :root { --px: 1.5rem; }
  .fs-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { gap: 1.2rem; }
  .next-project { margin-left: var(--px); margin-right: var(--px); }
}
@media (max-width: 480px) {
  .fs-grid { grid-template-columns: 1fr; gap: 32px; }
}
