/* ===================================================================
   Yuliya Lizunova — Product Designer Portfolio
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root{
  --cream:      #FFFFFF;
  --cream-alt:  #FAFAFA;
  --paper:      #FFFFFF;
  --ink:        #1C1C1C;
  --ink-soft:   #5F5F5F;
  --ink-faint:  #8A8A8A;
  --blue:       #6E96B8;
  --blue-deep:  #3D6C8F;
  --blue-pale:  #DCE7EF;
  --blue-pale-2:#E4ECF2;
  --sage:       #A9B79A;
  --sage-pale:  #E7ECE0;
  --line:       #E3E3E3;

  --serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 900px;
  --radius: 18px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--cream);
  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; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family: var(--serif); font-weight: 600; margin: 0; color: var(--ink); letter-spacing: -.015em; }
p{ margin:0; }

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

section{ padding: 72px 0; }
@media (max-width: 720px){
  section{ padding: 48px 0; }
  .wrap{ padding: 0 22px; }
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 10px;
}
.eyebrow::before{
  content:'';
  width:5px; height:5px;
  border-radius:50%;
  background: var(--blue);
  display:inline-block;
}

/* ---------------- Header ---------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap{
  max-width: 960px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 64px;
}
.logo{
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.logo span{ color: var(--blue-deep); }
.nav{
  display:flex;
  align-items:center;
  gap: 32px;
}
.nav a{
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.nav a:hover{ color: var(--ink); }
.nav-actions{ display:flex; align-items:center; gap:16px; }
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor:pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover{ background: var(--blue-deep); }
.btn-ghost{
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover{ border-color: var(--blue); color: var(--blue-deep); }
.btn-disabled{
  background: transparent;
  border-color: var(--line);
  color: var(--ink-faint);
  cursor: not-allowed;
}
.menu-toggle{ display:none; }

@media (max-width: 860px){
  .nav{ display:none; }
  .nav.nav-open{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap: 18px;
    position: absolute;
    top: 64px;
    left:0; right:0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 24px 22px 28px;
  }
  .menu-toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    width: 38px; height:38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background:none;
    cursor:pointer;
  }
  .nav-actions .btn-disabled{ display:none; }
}
@media (max-width: 480px){
  .nav-actions .btn{ padding: 8px 14px; font-size: 12.5px; }
}

/* ---------------- Hero (text-first, Garri-style) ---------------- */
.hero{
  padding: 64px 0 40px;
}
.hero .kicker{
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.hero .kicker b{ color: var(--ink); font-weight: 600; }
.hero h1{
  font-size: clamp(22px, 2.6vw, 27px);
  font-weight: 500;
  line-height: 1.5;
  max-width: 46ch;
  letter-spacing: -.005em;
}
.hero h1 .accent{ color: var(--blue-deep); }
.hero-links{
  display:flex;
  gap: 22px;
  margin-top: 22px;
}
.hero-links a{
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.hero-links a:hover{ color: var(--blue-deep); border-color: var(--blue); }

.stats-row{
  display:flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.stat b{
  display:block;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.stat span{
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------------- Flowing text sections (About / Personal) ---------------- */
.text-section{ border-top: 1px solid var(--line); }
.text-section .wrap{
  display:grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}
.text-section .label{
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  padding-top: 4px;
}
.text-section .body p{
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
  max-width: 62ch;
}
.text-section .body p:last-child{ margin-bottom:0; }
.text-section .body a{
  color: var(--ink);
  border-bottom: 1px solid var(--blue);
}
.text-section .body a:hover{ color: var(--blue-deep); }
.text-section .body b{ font-weight: 600; color: var(--ink); }

@media (max-width: 720px){
  .text-section .wrap{ grid-template-columns: 1fr; gap: 14px; }
}

.about-strip-row{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 44px;
}
.about-strip-item{
  position: relative;
  flex: 1;
  aspect-ratio: 2 / 3;
  background: var(--cream-alt);
  z-index: 1;
}
.about-strip-item:nth-child(odd){
  transform: translateY(32px);
}
.about-strip-item img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.about-strip-item:hover{
  z-index: 5;
}
.about-strip-item:hover img{
  transform: scale(1.35);
  box-shadow: 0 20px 40px -12px rgba(32,28,25,.35);
}
@media (max-width: 720px){
  .about-strip-row{
    flex-wrap: wrap;
  }
  .about-strip-item{
    flex: 1 1 calc(33.333% - 7px);
    min-width: calc(33.333% - 7px);
  }
}

/* ---------------- Work / Case studies — plain list (Garri-style) ---------------- */
.work{ border-top: 1px solid var(--line); }
.work-head{ margin-bottom: 8px; }
.work-head p{ color: var(--ink-soft); font-size: 15px; max-width: 52ch; }

.case-list{ margin-top: 20px; }
.case-row{
  display:flex;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.case-row:last-child{ border-bottom: 1px solid var(--line); }
.case-row-soon{
  cursor: default;
  opacity: .55;
}
.case-row-soon:hover h3{ color: var(--ink); }
.case-row-soon .case-thumb-fallback{
  letter-spacing: .06em;
}
.case-row-content{ flex: 1; min-width: 0; }

.case-thumb{
  position: relative;
  flex-shrink: 0;
  width: 280px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #F4F4F4;
}
.case-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.case-row:hover .case-thumb img{ transform: scale(1.04); }
.case-thumb-fallback{
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: .55;
}
.case-thumb-view{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.8);
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.case-row:hover .case-thumb-view{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.case-thumb-view svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 12px rgba(32,28,25,.22));
}
.case-thumb-view-text{
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255,255,255,.85);
  padding: 4px 8px;
  border-radius: 999px;
}

@media (max-width: 640px){
  .case-row{ gap: 16px; }
  .case-thumb{ width: 120px; }
}

.case-row-top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 20px;
}
.case-row h3{
  font-size: 19px;
  font-weight: 600;
  transition: color .15s ease;
}
.case-row:hover h3{ color: var(--blue-deep); }
.case-index{
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 600;
  flex-shrink: 0;
}
.case-row p{
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: 10px;
  max-width: 58ch;
}
.case-meta{
  display:flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.case-meta span{
  font-size: 12.5px;
  color: var(--ink-faint);
}
.case-meta span:not(:last-child)::after{
  content: '·';
  margin-left: 10px;
  color: var(--line);
}
.case-row .arrow{
  font-size: 15px;
  color: var(--ink-faint);
  transition: transform .18s ease, color .15s ease;
}
.case-row:hover .arrow{ transform: translate(3px,-3px); color: var(--blue-deep); }


/* ---------------- Contact ---------------- */
.contact{ border-top: 1px solid var(--line); }
.contact .wrap{ display:block; }
.contact h2{
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 500;
  max-width: 20ch;
  line-height:1.25;
}
.contact-links{
  margin-top: 26px;
  display:flex;
  gap: 26px;
  flex-wrap:wrap;
}
.contact-links a, .contact-links span{
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.contact-links a:hover{ color: var(--blue-deep); border-color: var(--blue); }

/* ---------------- Footer ---------------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.site-footer .wrap{
  max-width: 960px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size: 12.5px;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 10px;
}

/* ===================================================================
   Case study detail page
   =================================================================== */
.cs-hero{
  padding: 48px 0 40px;
}
.cs-back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.cs-back:hover{ color: var(--blue-deep); }
.cs-hero h1{
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  max-width: 34ch;
  line-height: 1.2;
}
.cs-hero .hero-sub{
  margin-top:16px;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 56ch;
  line-height: 1.7;
}

.cs-meta-row{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.cs-meta-row div span{
  display:block;
  font-size: 12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color: var(--ink-faint);
  margin-bottom: 6px;
  font-weight:700;
}
.cs-meta-row div b{
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
@media (max-width: 720px){
  .cs-meta-row{ grid-template-columns: 1fr 1fr; }
}

.cs-cover{
  aspect-ratio: 16/8;
  border-radius: 14px;
  margin: 36px 0 0;
  position: relative;
  overflow:hidden;
  border: 1px solid var(--line);
}
.cs-cover .cover-glyph{ font-size: 90px; }

.cs-section{
  padding: 52px 0;
  border-top: 1px solid var(--line);
}
.cs-section h2{
  font-size: clamp(20px, 2.6vw, 25px);
  font-weight: 600;
  margin-bottom: 18px;
}
.cs-section p{
  color: var(--ink-soft);
  font-size: 16px;
  line-height:1.75;
  margin-bottom: 16px;
}
.cs-section ul{
  margin-top: 14px;
}
.cs-section ul.cs-cols2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  row-gap: 0;
}
@media (max-width:640px){
  .cs-section ul.cs-cols2{ grid-template-columns: 1fr; }
}
.cs-section li{
  color: var(--ink-soft);
  font-size: 15.5px;
  padding-left: 22px;
  position: relative;
  margin-bottom: 12px;
}
.cs-section li::before{
  content:'';
  position:absolute;
  left:0; top:9px;
  width:6px; height:6px;
  border-radius:50%;
  background: var(--blue);
}
.cs-callout{
  border-left: 2px solid var(--blue);
  padding: 4px 0 4px 20px;
  margin: 8px 0 26px;
  font-size: 15px;
  color: var(--ink-soft);
  font-style: italic;
}
.cs-shot{
  aspect-ratio: 16/9;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 24px 0;
  position:relative;
  overflow:hidden;
}
.cs-shot .cover-glyph{ font-size: 48px; }

.cs-next{
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.cs-next h3{ font-size: clamp(20px,2.8vw,26px); font-weight:600; margin: 10px 0 20px; }

/* ---- Case study rich-content components ---- */
.cs-section h3{
  font-size: 17px;
  font-weight: 700;
  margin: 30px 0 10px;
  color: var(--ink);
}
.cs-section h3:first-child{ margin-top: 0; }
.cs-section h3.cs-lede{
  font-size: 19px;
  font-weight: 600;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 16px;
}

.cs-subgrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 22px 0 28px;
}
.cs-subgrid > div{
  border-left: 2px solid var(--line);
  padding-left: 18px;
}
.cs-subgrid h4{
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--blue-deep);
  margin-bottom: 8px;
  font-weight: 700;
}
.cs-subgrid p{ margin-bottom: 0; }
@media (max-width:720px){ .cs-subgrid{ grid-template-columns: 1fr; gap:20px; } }

.cs-opportunity{
  margin: 12px 0 8px;
  padding: 13px 16px;
  background: var(--blue-pale-2);
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink);
}
.cs-opportunity b{ color: var(--blue-deep); text-transform: uppercase; font-size: 12px; letter-spacing: .04em; display:block; margin-bottom: 4px; }

.cs-table-wrap{ overflow-x:auto; margin: 20px 0 28px; }
.cs-table{ width:100%; border-collapse: collapse; font-size: 14px; }
.cs-table th, .cs-table td{ text-align:left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cs-table th{ font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; color: var(--ink-faint); font-weight:700; }
.cs-table td{ color: var(--ink-soft); }
.cs-table td:first-child{ color: var(--ink); font-weight: 600; }
.cs-table-metrics th:not(:first-child),
.cs-table-metrics td:not(:first-child){ text-align: right; }

.cs-flow{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap: 6px;
  margin: 14px 0 24px;
  font-size: 14px;
}
.cs-flow span{
  padding: 7px 13px;
  background: var(--cream-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight:600;
}
.cs-flow .sep{ color: var(--ink-faint); font-weight:400; padding: 0 2px; border: none; background: none; }
.cs-flow-label{
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-faint);
  margin: 18px 0 8px;
}
.cs-flow-label:first-child{ margin-top: 0; }

.cs-img-pair{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0 30px;
}
.cs-img-pair figure, .cs-img-full figure{ margin:0; }
.cs-img-pair img, .cs-img-full img{
  width:100%;
  display:block;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.cs-img-pair figcaption, .cs-img-full figcaption{
  margin-top: 9px;
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 600;
  text-align:center;
}
.cs-img-full{ margin: 24px 0 30px; }
@media (max-width:720px){ .cs-img-pair{ grid-template-columns:1fr; } }

/* ---------------- Custom cursor (a little flower) ---------------- */
.has-custom-cursor, .has-custom-cursor *{ cursor: none !important; }
.cursor-flower{
  position: fixed;
  top: 0; left: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  opacity: 0;
  transition: opacity .25s ease;
  user-select: none;
}
.cursor-flower svg{
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
}
.has-custom-cursor .cursor-flower{ opacity: 1; }

/* cover placeholder art — neutral, swap for real images later */
.cover-1, .cover-2, .cover-3, .cover-4{ background: #F4F4F4; }
.cover-glyph{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: .55;
}

/* ---------------- Password gate ---------------- */
.password-gate{
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.password-gate.is-unlocked{ display: none; }
.password-gate-box{
  max-width: 340px;
  width: 100%;
  text-align: center;
}
.password-gate-lock{
  font-size: 32px;
  margin-bottom: 18px;
}
.password-gate-box h1{
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}
.password-gate-box p{
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 22px;
}
#passwordForm{
  display: flex;
  gap: 10px;
}
#passwordInput{
  flex: 1;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-family: var(--sans);
  outline: none;
}
#passwordInput:focus{ border-color: var(--blue); }
.password-gate-error{
  display: none;
  color: #B3413E;
  margin: 14px 0 0;
}
.password-gate-error.is-visible{ display: block; }
.password-gate-back{
  display: inline-block;
  margin-top: 24px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-faint);
}
.password-gate-back:hover{ color: var(--ink); }
