/* ==========================================================================
   Оцимик Екатерина — сайт-визитка
   Editorial black/white style
   ========================================================================== */

:root {
  --bg: #f6f5f1;
  --bg-alt: #eeece5;
  --ink: #0c0c0a;
  --ink-soft: #55534c;
  --ink-faint: #8c897f;
  --line: rgba(12, 12, 10, 0.16);
  --line-strong: #0c0c0a;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 36px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 800;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

section {
  position: relative;
}

.link-underline {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  font-size: 14px;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(246, 245, 241, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line-strong);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.logo-mark {
  width: 26px;
  height: auto;
  color: var(--ink);
  flex-shrink: 0;
}

.logo-text span {
  font-weight: 500;
  text-transform: none;
  color: var(--ink-soft);
}

.dot-cluster {
  width: 100%;
  height: 100%;
  color: var(--ink);
}

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

.nav a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav .btn {
  padding: 10px 20px;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.nav .btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.burger {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 18px; }

.burger.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

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

.hero {
  padding-top: 76px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 64px 0 40px;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-eyebrow-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-role-display {
  font-size: clamp(48px, 8.4vw, 118px);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.word-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: word-reveal 750ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes word-reveal {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .word-inner {
    animation-duration: 1ms;
    animation-delay: 0ms !important;
    transform: none;
  }
}

.hero-role {
  text-align: right;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 260px;
  padding-bottom: 10px;
}

.hero-photo-full {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.hero-photo-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.05);
}

.hero-dots {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  color: var(--bg);
  opacity: 0.85;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 14px;
}

.hero-meta a {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--ink);
  font-weight: 700;
}

.hero-lede-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  padding: 40px 0 70px;
  border-top: 1px solid var(--line);
}

.hero-lede-row .num {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 700;
}

.hero-lede-row p {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 640px;
}

/* ---------- Section heads ---------- */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  text-transform: uppercase;
}

.section-head .section-sub {
  max-width: 360px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  text-align: left;
}

.section-tag {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 700;
}

.section-pad {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

/* ---------- About ---------- */

.about .wrap {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 56px;
  align-items: start;
}

.about-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.about-body h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  text-transform: uppercase;
  margin-bottom: 30px;
}

.about-body p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.85;
  max-width: 620px;
}

.about-body p + p {
  margin-top: 20px;
}

.about-stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.about-stat strong {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}

.about-stat span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  max-width: 160px;
}

.about-body .link-underline {
  display: inline-block;
  margin-top: 30px;
}

/* ---------- Services (numbered specialization) ---------- */

.services-list {
  border-top: 1px solid var(--line-strong);
}

.service-row {
  display: grid;
  grid-template-columns: 90px 140px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.service-row:hover {
  background: var(--bg-alt);
}

.service-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-faint);
}

.service-thumb {
  width: 140px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-info h3 {
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.service-info p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 480px;
}

.service-row .link-underline {
  white-space: nowrap;
}

/* ---------- Skills ---------- */

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

.skill-pill {
  border: 1px solid var(--line-strong);
  padding: 13px 24px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Brands ---------- */

.brands-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.brand-pill {
  background: var(--bg);
  padding: 22px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
}

/* ---------- Portfolio (drill-down: categories -> projects -> photos) ---------- */

.pf-browser {
  position: relative;
}

.pf-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.pf-crumb {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--ink-faint);
  cursor: pointer;
}

.pf-crumb.active,
.pf-crumb:last-of-type {
  color: var(--ink);
}

.pf-crumb:hover {
  color: var(--ink);
}

.pf-crumb-sep,
.pf-crumb-sep2 {
  color: var(--ink-faint);
}

.pf-crumb-project {
  color: var(--ink);
}

.pf-level {
  display: none;
}

.pf-level.active {
  display: grid;
}

.pf-categories,
.pf-projects {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pf-card {
  background: var(--bg);
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
}

.pf-card-frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line-strong);
}

.pf-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pf-card:hover .pf-card-media {
  transform: scale(1.05);
}

.pf-card-body {
  padding: 18px 20px 22px;
}

.pf-card-body h3,
.pf-card-body h4 {
  font-size: 17px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pf-card-body span {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pf-photos {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 8, 0.94);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox img,
.lightbox video {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  display: none;
}

.lightbox img.is-active,
.lightbox video.is-active {
  display: block;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(246, 245, 241, 0.4);
  color: #f6f5f1;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(246, 245, 241, 0.14);
}

.lightbox-close { top: 26px; right: 26px; }
.lightbox-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 26px; top: 50%; transform: translateY(-50%); }

.lightbox-caption {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  color: #e9e6dd;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Process ---------- */

.process {
  background: var(--ink);
  color: var(--bg);
}

.process .eyebrow,
.process .section-tag { color: rgba(246, 245, 241, 0.55); }

.process .section-head h2 { color: var(--bg); }

.process .section-sub { color: rgba(246, 245, 241, 0.6); }

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(246, 245, 241, 0.22);
}

.process-item {
  padding: 40px 32px 0 0;
  border-right: 1px solid rgba(246, 245, 241, 0.22);
}

.process-item:last-child { border-right: none; }

.process-item span {
  font-size: 13px;
  color: rgba(246, 245, 241, 0.5);
  font-weight: 700;
}

.process-item h4 {
  color: var(--bg);
  font-size: 18px;
  text-transform: uppercase;
  margin: 26px 0 18px;
  letter-spacing: 0.02em;
}

.process-item p {
  color: rgba(246, 245, 241, 0.62);
  font-size: 14.5px;
  line-height: 1.9;
  padding-bottom: 40px;
}

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.faq-q .plus {
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-q .plus {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a p {
  padding: 0 0 24px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  max-width: 640px;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--ink);
  color: var(--bg);
}

.contact .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: end;
}

.contact .eyebrow { color: rgba(246, 245, 241, 0.55); }

.contact h2 {
  color: var(--bg);
  font-size: clamp(34px, 5vw, 64px);
  text-transform: uppercase;
  line-height: 1.02;
}

.contact-lede {
  margin-top: 22px;
  color: rgba(246, 245, 241, 0.62);
  font-size: 16px;
  max-width: 440px;
  line-height: 1.7;
}

.contact-links {
  margin-top: 40px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid rgba(246, 245, 241, 0.22);
  transition: opacity 0.2s ease;
}

.contact-link:hover { opacity: 0.6; }

.contact-link .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(246, 245, 241, 0.5);
  display: block;
  margin-bottom: 6px;
}

.contact-link .value {
  font-size: 20px;
  font-weight: 700;
  color: var(--bg);
}

.contact-link .arrow {
  font-size: 20px;
  color: var(--bg);
}

.contact-card {
  border: 1px solid rgba(246, 245, 241, 0.28);
  padding: 36px;
  text-align: left;
}

.contact-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  margin-bottom: 22px;
}

.contact-card h3 {
  color: var(--bg);
  font-size: 20px;
  text-transform: uppercase;
}

.contact-card p {
  margin-top: 10px;
  color: rgba(246, 245, 241, 0.62);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 30px 0;
  background: var(--ink);
  color: rgba(246, 245, 241, 0.5);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-logo {
  display: flex;
}

.footer-logo .logo-mark {
  width: 22px;
  height: auto;
  color: rgba(246, 245, 241, 0.6);
}

.site-footer p {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-item:nth-child(2) { border-right: none; }
  .process-item { border-bottom: 1px solid rgba(246,245,241,0.22); padding-bottom: 26px; }
  .pf-categories,
  .pf-projects,
  .pf-photos { grid-template-columns: repeat(2, 1fr); }
  .brands-row { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 60px 110px 1fr auto; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 36px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--line-strong);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .burger { display: block; }
  .about .wrap,
  .contact .wrap { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
  .hero-lede-row { grid-template-columns: 1fr; gap: 16px; }
  .service-row { grid-template-columns: 1fr; gap: 14px; }
  .service-thumb { width: 160px; }
  .contact-card { margin-top: 30px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .section-pad { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .pf-categories,
  .pf-projects,
  .pf-photos { grid-template-columns: 1fr; }
  .brands-row { grid-template-columns: 1fr; }
  .hero-role { text-align: left; }
  .lightbox { padding: 16px; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
}
