/* ==========================================================================
   LEKS — Cover Art & Creative Direction
   Monochrome editorial portfolio
   ========================================================================== */

@font-face{
  font-family: 'Suisse Intl';
  src: url('fonts/SuisseIntl-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #060606;
  --bg-alt: #101010;
  --fg: #F4F2EC;
  --fg-dim: #8E8C86;
  --line: #2B2A27;
  --line-soft: #1B1A17;
  --radius: 3px;
  --ease: cubic-bezier(.16,.84,.44,1);
  --container: 1240px;
  --font-sans: 'Suisse Intl', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

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

html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* faint print-grain texture, purely decorative */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 0.5px, transparent 0.5px),
    radial-gradient(circle at 70% 60%, #fff 0.5px, transparent 0.5px),
    radial-gradient(circle at 40% 80%, #fff 0.5px, transparent 0.5px);
  background-size: 3px 3px, 5px 5px, 4px 4px;
}

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

::selection{ background: var(--fg); color: var(--bg); }

:focus-visible{
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

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

h1, h2, h3{ margin: 0; font-weight: 400; }

.eyebrow{
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--fg-dim);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 32px;
  mix-blend-mode: difference;
}

.logo{
  font-family: var(--font-sans);
  font-size: 21px;
  letter-spacing: .02em;
}

.nav-links{
  display: flex;
  gap: 36px;
}

.nav-links a{
  font-size: 13px;
  letter-spacing: .03em;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after{
  content:"";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: width .35s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after{ width: 100%; }

.menu-toggle{
  display: none;
  background: none;
  border: 1px solid var(--fg);
  color: var(--fg);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 760px){
  .nav-links{
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateY(-100%);
    transition: transform .5s var(--ease);
    mix-blend-mode: normal;
  }
  .nav-links.open{ transform: translateY(0); }
  .nav-links a{ font-size: 27px; font-family: var(--font-sans); letter-spacing: .01em; }
  .menu-toggle{ display: block; position: relative; z-index: 101; }
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.hero{
  position: relative;
  padding: 150px 32px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-photo{
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-photo::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(6,6,6,0) 28%, rgba(6,6,6,0) 62%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(6,6,6,0) 25%, rgba(6,6,6,0) 75%, var(--bg) 100%);
}

.hero-title,
.hero-sub,
.hero .btn-primary{
  position: relative;
  z-index: 1;
}

.hero-title{
  font-family: var(--font-sans);
  font-size: clamp(3.54rem, 14vw, 8.94rem);
  line-height: .92;
  letter-spacing: -.02em;
  margin: 0 0 28px;
}

.hero-sub{
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.6;
}

.btn-primary{
  display: inline-block;
  padding: 16px 32px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .02em;
  transition: background .35s var(--ease), color .35s var(--ease);
}

.btn-primary:hover{ background: var(--fg); color: var(--bg); }

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  white-space: nowrap;
}

.marquee-track{
  display: inline-flex;
  gap: 40px;
  width: max-content;
  animation: scroll-left 26s linear infinite;
}

.marquee-track span{
  flex-shrink: 0;
}

.marquee-track span{
  font-family: var(--font-sans);
  font-size: 19px;
  letter-spacing: .02em;
  color: var(--fg-dim);
}

.marquee-track span::after{
  content: "/";
  margin-left: 40px;
  color: var(--line);
}

@keyframes scroll-left{
  from{ transform: translateX(0); }
  to{ transform: translateX(-25%); }
}

@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}

/* ==========================================================================
   Preview / Work grids
   ========================================================================== */

.section{
  padding: 96px 0;
}

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

.section-head h2{
  font-family: var(--font-sans);
  font-size: clamp(1.74rem, 4vw, 2.74rem);
}

.section-head a{
  font-size: 13px;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
}

.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-item{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1/1;
  background: var(--bg-alt);
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: inherit;
  -webkit-tap-highlight-color: transparent;
}

.grid-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.grid-item:hover img{
  transform: scale(1.06);
}

.grid-item::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(6,6,6,0) 0%, rgba(6,6,6,.5) 100%);
  pointer-events: none;
}

.grid-item .tag{
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  font-size: 11px;
  letter-spacing: .03em;
  padding: 6px 12px;
  background: rgba(6,6,6,.55);
  border: 1px solid rgba(244,242,236,.25);
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .grid{ grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero{ padding-top: 120px; }
}

/* ==========================================================================
   Work page tabs
   ========================================================================== */

.page-head{
  padding: 150px 0 20px;
}

.page-head h1{
  font-family: var(--font-sans);
  font-size: clamp(2.54rem, 7vw, 4.94rem);
}

.tabs{
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin: 36px 0 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.tab-btn{
  background: none;
  border: none;
  color: var(--fg-dim);
  font-size: 14px;
  cursor: pointer;
  padding: 6px 0;
  position: relative;
}

.tab-btn.active{ color: var(--fg); }

.tab-btn.active::after{
  content:"";
  position: absolute;
  left: 0; bottom: -19px;
  width: 100%;
  height: 2px;
  background: var(--fg);
}

.work-panel{ display: none; }
.work-panel.active{ display: block; }

/* ==========================================================================
   About page
   ========================================================================== */

.about-intro{
  padding: 150px 0 20px;
}

.about-intro h1{
  font-family: var(--font-sans);
  font-size: clamp(2.54rem, 7vw, 4.94rem);
  margin-bottom: 32px;
}

.about-intro p{
  max-width: 640px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-dim);
  margin: 0 0 20px;
}

.about-intro p strong{ color: var(--fg); font-weight: 500; }

.spec-list{
  margin-top: 56px;
  border-top: 1px solid var(--line);
}

.spec-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.spec-row .label{
  font-size: 13px;
  color: var(--fg-dim);
  flex: 0 0 auto;
}

.spec-row .value{
  font-size: clamp(0.94rem, 2.4vw, 1.34rem);
  text-align: right;
}

.timeline{
  margin-top: 96px;
}

.timeline-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

.timeline-row span:last-child{ color: var(--fg-dim); font-size: 13px; }

@media (max-width: 640px){
  .spec-row{ flex-direction: column; gap: 6px; }
  .spec-row .value{ text-align: left; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-wrap{
  padding: 150px 0 100px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
}

.contact-wrap h1{
  font-family: var(--font-sans);
  font-size: clamp(2.54rem, 6vw, 4.34rem);
  line-height: 1.02;
  margin-bottom: 20px;
}

.contact-wrap > .contact-copy p{
  color: var(--fg-dim);
  max-width: 420px;
  font-size: 15px;
  line-height: 1.6;
}

.contact-social{
  margin-top: 40px;
  display: flex;
  gap: 18px;
}

.contact-social a{
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 10px 20px;
  border-radius: 999px;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}

.contact-social a:hover{ border-color: var(--fg); }

.field{
  margin-bottom: 22px;
}

.field label{
  display: block;
  font-size: 12px;
  color: var(--fg-dim);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea{
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 10px 0;
  transition: border-color .3s var(--ease);
}

.field select{
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-dim) 50%), linear-gradient(135deg, var(--fg-dim) 50%, transparent 50%);
  background-position: calc(100% - 12px) 18px, calc(100% - 6px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field select option{ background: var(--bg); color: var(--fg); }

.field textarea{ resize: vertical; min-height: 90px; }

.field input:focus,
.field select:focus,
.field textarea:focus{ border-color: var(--fg); outline: none; }

.row-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.submit-btn{
  margin-top: 12px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  padding: 16px 34px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: opacity .3s var(--ease);
}

.submit-btn:hover{ opacity: .8; }

.form-success{
  display: none;
  padding: 16px 0;
  color: var(--fg-dim);
  font-size: 14px;
}

.form-success.show{ display: block; }

@media (max-width: 820px){
  .contact-wrap{ grid-template-columns: 1fr; gap: 40px; }
  .row-2{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{
  border-top: 1px solid var(--line);
  padding: 60px 32px 32px;
}

.footer-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-name{
  font-family: var(--font-sans);
  font-size: clamp(2.34rem, 8vw, 4.94rem);
}

.footer-cta{
  border: 1px solid var(--fg);
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 13px;
  transition: background .3s var(--ease), color .3s var(--ease);
}

.footer-cta:hover{ background: var(--fg); color: var(--bg); }

.section-head h2,
.page-head h1,
.about-intro h1,
.contact-wrap h1,
.footer-name{
  letter-spacing: -.01em;
}

.footer-bottom{
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--fg-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6,6,6,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease);
}

.lightbox.open{
  opacity: 1;
  visibility: visible;
}

.lightbox-img{
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
  transform: scale(.97);
  transition: transform .3s var(--ease);
}

.lightbox.open .lightbox-img{ transform: scale(1); }

.lightbox-close{
  position: absolute;
  top: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(16,16,16,.6);
  color: var(--fg);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .3s var(--ease);
}

.lightbox-close:hover{ border-color: var(--fg); }

.lightbox-stage{
  position: relative;
  display: inline-flex;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-nav{
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(16,16,16,.6);
  color: var(--fg);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}

.lightbox-nav:hover{ border-color: var(--fg); background: rgba(16,16,16,.85); }

.lightbox-prev{ left: 0; transform: translate(-140%, -50%); }
.lightbox-next{ right: 0; transform: translate(140%, -50%); }

@media (max-width: 640px){
  .lightbox{ padding: 32px 16px; }
  .lightbox-close{ top: 14px; right: 14px; }
  .lightbox-nav{ width: 34px; height: 34px; font-size: 16px; }
}
