/*
Theme Name: Farrukh Sharif — Modern
Theme URI: https://farrukh-sharif.com
Author: Synthesis
Author URI: https://synthesis.uz
Description: Portfolio theme for Farrukh Sharif — creative director, Tashkent. Light, typography-led and grid-based: Inter for display, IBM Plex Mono for labels, hairline dividers, grayscale covers that resolve to colour on hover. Ships a Project post type (client, year, awards, YouTube), an SEO intro block on the work grid, and Jury / Awards / Press credential lists on the About page.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: farrukh-sharif
Tags: portfolio, minimal, typography, one-column, custom-colors
*/

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

:root {
  --black:  #0a0a0a;
  --white:  #ffffff;
  --gray:   #8c8c8c;
  --line:   #e6e6e6;
  --line-soft: rgba(10,10,10,0.09);
  --body:   #444444;
  --sans:   'Inter', sans-serif;
  --mono:   'IBM Plex Mono', monospace;
}

html { font-size: 16px; }
body {
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: default;
}
button { background: none; border: none; font: inherit; color: inherit; cursor: pointer; padding: 0; text-align: left; }
a { color: inherit; text-decoration: none; }

/* ─────────── NAV ─────────── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 3.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-name-main {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-name-role {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s ease;
  position: relative;
  cursor: pointer;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--black);
  transition: width 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--black); }
.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }

/* ─────────── PAGE SHELL ─────────── */
.page { min-height: calc(100vh - 70px); display: flex; flex-direction: column; }
main { flex: 1; }

/* ─────────── WORK LIST ─────────── */
.work-section { padding: 3rem 3.5rem 6rem; position: relative; }

.home-intro { max-width: 720px; padding: 2.5rem 0 3.5rem; }
.home-intro h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 1.1rem;
  text-wrap: pretty;
}
.home-intro p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--body);
  text-wrap: pretty;
}

.section-filter {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-filter::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.fs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 2rem;
  align-items: start;
}
.fs-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  width: 100%;
}
.fs-card-cover {
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
  overflow: hidden;
  display: block;
  position: relative;
}
.fs-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter 0.45s ease, transform 0.5s ease;
}
.fs-card:hover .fs-card-cover img { filter: grayscale(0); transform: scale(1.03); }
.grayscale-off .fs-card-cover img, .grayscale-off .about-portrait img { filter: none; }
.fs-card-text { display: flex; flex-direction: column; gap: 5px; }
.fs-card-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--black);
}
.fs-card-meta {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--gray);
  text-wrap: pretty;
}
.fs-card-awards {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 2px;
}
.fs-card-awards .dot, .project-awards .dot { color: var(--gray); margin: 0 0.4em; }

/* ─────────── PROJECT PAGE ─────────── */
.project-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 2.6rem 3.5rem 0;
  transition: color 0.2s ease;
}
.project-back:hover { color: var(--black); }

.project-hero { padding: 1.6rem 3.5rem 0; max-width: 980px; }
.project-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: 1.4rem;
}
.project-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.project-meta span { text-transform: uppercase; letter-spacing: 0.03em; }
.project-awards {
  font-size: 13px;
  color: var(--gray);
  line-height: 2;
  max-width: 760px;
  margin-bottom: 2.8rem;
  font-family: var(--mono);
}
.project-awards b { font-weight: 500; color: var(--black); }
.project-awards .sep { color: var(--line); margin: 0 0.5em; }
.tier-gold   { color: #a8802a; }
.tier-silver { color: #7e848c; }
.tier-bronze { color: #a3633a; }

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  margin: 0 0 3.5rem;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-placeholder {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #f2f2f2;
  margin: 0 0 3.5rem;
}
.video-placeholder::after {
  content: 'Video — embed placeholder';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-body { max-width: 1240px; padding: 0 3.5rem 5rem; }
.project-body p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: 1.5rem;
  text-wrap: pretty;
}
.project-body p strong { font-weight: 600; color: var(--black); }
.project-body p em { font-style: italic; }
.project-body h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 2.8rem 0 0.7rem;
}

.next-project {
  border-top: 1px solid var(--line);
  margin: 0 3.5rem;
  padding: 2.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  cursor: pointer;
  transition: opacity 0.2s ease;
  width: calc(100% - 7rem);
}
.next-project:hover { opacity: 0.5; }
.next-project-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
}
.next-project-title { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }

/* ─────────── ABOUT ─────────── */
.about-inner {
  padding: 4.5rem 3.5rem 4rem;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 5rem;
  align-items: start;
  max-width: 1240px;
}
.about-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f2f2f2;
  position: relative;
  overflow: hidden;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); }
.about-portrait .portrait-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gray);
}
.about-text { max-width: 580px; padding-top: 0.5rem; }
.about-eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 1.2rem;
}
.about-headline {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 2.2rem;
}
.about-body {
  font-size: 16px; font-weight: 300; line-height: 1.8; color: var(--body); margin-bottom: 1.5rem;
}
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3.5rem; }
  .about-portrait { max-width: 360px; }
}

/* ─────────── CREDENTIALS (jury / awards / press) ─────────── */
.credentials {
  padding: 0 3.5rem 5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem 4rem;
  max-width: 1240px;
  align-items: start;
}
.credentials-full { grid-column: 1 / -1; }
.cred-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--black);
  margin-bottom: 0;
}
.cred-list { display: flex; flex-direction: column; }
.cred-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.cred-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--black);
  text-wrap: pretty;
}
.cred-detail {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--gray);
  text-wrap: pretty;
}
.cred-press { display: flex; flex-direction: column; }
.cred-press .cred-row { transition: opacity 0.2s ease; }
.cred-press a.cred-row:hover { opacity: 0.5; }
.cred-press .cred-name { display: flex; align-items: baseline; gap: 8px; }
.cred-press .cred-arrow { font-family: var(--mono); font-size: 12px; color: var(--gray); }
.cred-empty { font-family: var(--mono); font-size: 12px; color: var(--gray); }
@media (max-width: 860px) {
  .credentials { grid-template-columns: 1fr; gap: 2.75rem; padding-bottom: 3.5rem; }
}

/* ─────────── CONTACT ─────────── */
.contact-inner { padding: 4.5rem 3.5rem 4rem; max-width: 760px; }
.contact-eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gray); margin-bottom: 1.8rem;
}
.contact-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.contact-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
  transition: opacity 0.2s ease;
}
.contact-item:hover { opacity: 0.5; }
.contact-type {
  font-family: var(--mono); font-size: 12px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.04em;
}
.contact-value { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.contact-arrow { font-family: var(--mono); font-size: 13px; color: var(--gray); }

/* ─────────── FOOTER ─────────── */
footer.site-footer {
  padding: 1.5rem 3.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
}
.footer-copy { font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0.03em; color: var(--gray); }
.footer-links { display: flex; gap: 1.6rem; }
.footer-links a {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--gray); transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--black); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.page { animation: fadeIn 0.32s ease both; }

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 720px) {
  .nav { padding: 1.1rem 1.5rem; }
  .work-section, .project-back, .project-hero, .project-body,
  .about-inner, .contact-inner, .credentials, footer.site-footer { padding-left: 1.5rem; padding-right: 1.5rem; }
  .next-project { margin-left: 1.5rem; margin-right: 1.5rem; width: calc(100% - 3rem); }
  .nav-links { gap: 1.3rem; }
}
@media (max-width: 1100px) { .fs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) { .fs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1.5rem; } }
@media (max-width: 460px) { .fs-grid { grid-template-columns: 1fr; gap: 0.75rem; } }

/* ─────────── WP CORE ─────────── */
img { max-width: 100%; height: auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%); clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; position: absolute !important; word-wrap: normal !important; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-family: var(--mono); font-size: 11px; color: var(--gray); margin-top: 0.5rem; }
.project-body ul, .project-body ol { padding-left: 1.4rem; margin-bottom: 1.5rem; color: var(--body); font-size: 16px; font-weight: 300; }
.project-body li { margin-bottom: 0.4rem; line-height: 1.75; }
.project-body h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.015em; color: var(--black); margin: 3rem 0 0.8rem; }
.project-body a, .about-text a { border-bottom: 1px solid var(--line); transition: border-color 0.2s ease; }
.project-body a:hover, .about-text a:hover { border-color: var(--black); }
.project-body blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 1px solid var(--line); }
.project-body blockquote p { color: var(--black); font-size: 18px; }
.about-text p { font-size: 16px; font-weight: 300; line-height: 1.8; color: var(--body); margin-bottom: 1.5rem; }
.about-text strong { font-weight: 600; color: var(--black); }
