/* ==========================================================================
   Geirot design - portfolio site (raw / brutal-luxury edition)
   ========================================================================== */

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

:root{
  --bg: #121214;
  --paper: #1B1B1F;
  --ink: #F5F4F0;
  --ink-soft: #C7C5BE;
  --ink-faint: #8F8D87;
  --accent: #E8447F;
  --accent-dark: #FF74A8;
  --accent-soft: rgba(232,68,127,.4);
  --duo-a: #4B4E78;
  --duo-b: #B7B9E6;
  --border: rgba(245,244,240,.14);
  --border-strong: rgba(245,244,240,.28);
  --container: 1320px;
  --font-display: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16,.84,.44,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  /* these two are small, deliberate sales-oriented flourishes - kept on even when the OS prefers reduced motion */
  .cover-img{ transition-duration: .5s !important; }
  .btn-solid--lg.flash{ animation-duration: 1.3s !important; animation-iteration-count: 1 !important; }
}

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

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

/* ---------- shimmer hover text ---------- */
.shimmer{
  background-image: linear-gradient(100deg, var(--ink) 42%, var(--accent) 50%, var(--ink) 58%);
  background-size: 260% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: background-position .7s var(--ease);
}
a.shimmer:hover, .shimmer:hover, .shimmer.is-active{
  background-position: 0 0;
}

/* ---------- solid button (sharp, no radius) ---------- */
.btn-solid{
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent);
  color: #0B0B0C;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .01em;
  padding: 15px 26px;
  border: 1.5px solid var(--accent);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn-solid:hover{ background: transparent; color: var(--ink); }
.btn-solid--lg{ font-size: 1.05rem; padding: 18px 34px; }

/* ---------- intro splash ---------- */
#intro-splash{
  position: fixed; inset: 0;
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  overflow: hidden;
}
#intro-splash .intro-panel{
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(0);
}
#intro-splash .intro-mark{
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  font-size: clamp(2.4rem, 9vw, 6rem);
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(24px) scale(.94);
}
#intro-splash.play .intro-mark{
  animation: introMark 1.1s var(--ease) forwards .15s;
}
#intro-splash.leave{
  animation: introFade .6s var(--ease) forwards;
  pointer-events: none;
}
#intro-splash.leave .intro-panel{
  animation: introPanel .7s var(--ease) forwards;
}
@keyframes introMark{
  0%{ opacity: 0; transform: translateY(24px) scale(.94); }
  60%{ opacity: 1; }
  100%{ opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes introPanel{
  to{ transform: translateY(-102%); }
}
@keyframes introFade{
  to{ visibility: hidden; opacity: 0; }
}
body.intro-lock{ overflow: hidden; height: 100%; }

/* ---------- header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(20px, 5vw, 56px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand{
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.brand-logo{
  width: 56px; height: 56px;
  border-radius: 50%;
  transition: transform .4s var(--ease);
  will-change: transform;
}
.brand:hover .brand-logo{ animation: vinylSpin 2.4s linear infinite; }
@keyframes vinylSpin{ from{ transform: rotate(0deg);} to{ transform: rotate(360deg);} }
.brand-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  letter-spacing: .01em;
  display: inline-flex; align-items: baseline; gap: 6px;
}
@media (max-width: 420px){
  .brand-name{ display: none; }
}
.brand-name em{ font-style: normal; color: var(--accent-dark); }

.main-nav{
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px);
  margin: 0 auto;
}
.main-nav a{
  font-weight: 600;
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.nav-index{
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.header-actions{ display: flex; align-items: center; gap: 16px; }
#lang-toggle{
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  display: flex; gap: 5px;
}
#lang-toggle .sep{ opacity: .3; }
#lang-toggle span{ opacity: .4; transition: opacity .25s, color .25s; }
#lang-toggle span.is-active{ opacity: 1; color: var(--accent-dark); }

#nav-burger{
  display: none;
  width: 30px; height: 30px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
#nav-burger span{ width: 20px; height: 2px; background: var(--ink); display: block; transition: transform .25s, opacity .25s; }
body.nav-open #nav-burger span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
body.nav-open #nav-burger span:nth-child(2){ opacity: 0; }
body.nav-open #nav-burger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero (split poster panel) ---------- */
.hero{
  position: relative;
  min-height: min(100vh, 56vw);
  display: flex;
  gap: 32px;
  background: var(--bg);
  overflow: hidden;
}
.hero-copy{
  position: relative;
  z-index: 2;
  flex: 1 1 42%;
  min-width: 0;
  background: var(--bg);
  display: flex;
  align-items: flex-end;
}
.hero-copy-inner{
  width: 100%;
  padding: 90px clamp(20px, 5vw, 56px) 44px clamp(20px, 5vw, 56px);
}
.hero-visual{
  position: relative;
  flex: 1 1 58%;
  overflow: hidden;
}
.hero-visual img{
  width: 100%; height: 100%; object-fit: cover;
  object-position: 6% 50%;
}
.hero-hook{
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: .98;
  letter-spacing: -.02em;
  display: flex; flex-direction: column;
  padding-bottom: 1.5cm;
}
.hero-hook-accent{ color: var(--accent-dark); }
.hero-hook .shimmer{ animation: heroShimmer 2.6s var(--ease) 1.1s 1; }
@keyframes heroShimmer{
  0%{ background-position: 100% 0; }
  55%{ background-position: 0 0; }
  100%{ background-position: 0 0; }
}
.hero-meta{
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  border-top: 1px solid var(--border-strong);
  margin-top: 28px;
  padding-top: 16px;
}
.hero-meta-col{
  display: flex; flex-direction: column; gap: 3px;
  font-family: var(--font-mono);
  font-size: clamp(.66rem, 1.12vw, .76rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
  font-weight: 700;
}
.hero-meta-line{ white-space: nowrap; }
.hero-meta-name{ color: var(--ink); margin-left: .4em; }
.hero .btn-solid{ margin-top: 20px; }

.scroll-cue{
  position: absolute;
  left: clamp(20px, 5vw, 56px);
  top: 88px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-soft);
}
.scroll-cue .dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(6px);} }

/* ---------- reveal on scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- sections ---------- */
.block-section{ padding: 70px 0; border-top: 1px solid var(--border); }
.section-label{
  position: relative;
  display: flex; align-items: flex-start; gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: .02em;
  margin-bottom: 40px;
}
.section-label .idx{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
}

/* about */
.about-grid{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
.about-photo{
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  width: 160px;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.about-photo.is-visible{ opacity: 1; transform: scale(1); }
.about-photo img{
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 8%;
  filter: grayscale(1) contrast(1.02) brightness(1.22);
}
.about-photo::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(155deg, var(--duo-a), var(--duo-b));
  mix-blend-mode: color;
  opacity: .55;
  pointer-events: none;
}
.photo-curtain{
  position: absolute; inset: 0;
  background: var(--accent);
  z-index: 2;
  transform: translateX(0);
  transition: transform .85s var(--ease) .1s;
}
.about-photo.is-visible .photo-curtain{ transform: translateX(101%); }
.about-text p{
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--ink-soft);
  margin-bottom: 14px;
  max-width: 640px;
}
.about-text p:last-of-type{ margin-bottom: 16px; }
.about-text strong{ color: var(--ink); font-weight: 700; }
.about-badge{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--accent-dark);
  border: 1px solid var(--accent-soft);
  padding: 7px 14px;
}

/* skills */
.skills-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
}
.skills-col h3{
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.chip-list{ display: flex; flex-wrap: wrap; gap: 10px; }
.chip{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .86rem;
  padding: 9px 16px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.chip:hover{ background: var(--ink); color: var(--bg); }
.chip--outline{
  border: 1.5px dashed var(--border-strong);
  color: var(--ink-soft);
}
.chip--outline:hover{ border-color: var(--accent); border-style: solid; color: var(--accent-dark); background: transparent; }

/* ---------- portfolio ---------- */
.portfolio-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}
.project-card{
  background: var(--bg);
  display: flex; flex-direction: column;
}
.project-cover{
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: none; padding: 0;
}
.cover-img{
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  opacity: 0;
  transition: opacity .5s var(--ease), transform .6s var(--ease), filter .6s var(--ease);
}
.cover-img.is-active{ opacity: 1; }
.project-card:hover .cover-img.is-active{ transform: scale(1.04); filter: grayscale(0) contrast(1); }
.project-body{ padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 10px; }
.project-tag{
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--accent-dark);
}
.project-tag .study-badge{
  margin-left: 10px;
  font-family: var(--font-mono);
  color: var(--ink-faint);
  font-weight: 400;
  border: 1px solid var(--border-strong);
  padding: 2px 9px;
  text-transform: none;
  letter-spacing: 0;
}
.project-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
}
.project-hook{
  color: var(--ink-soft);
  font-size: .96rem;
}
.project-full{
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .55s var(--ease), opacity .4s var(--ease);
}
.project-full > div{ overflow: hidden; }
.project-card.is-open .project-full{ grid-template-rows: 1fr; opacity: 1; margin-top: 2px; }
.project-full-inner{ padding-top: 4px; }
.project-desc{
  color: var(--ink-soft);
  font-size: .96rem;
  margin-bottom: 14px;
}
.project-gallery{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-gallery img{
  height: 130px;
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
  filter: grayscale(1);
  transition: filter .3s var(--ease), opacity .3s, transform .3s var(--ease);
  cursor: pointer;
}
.project-gallery img:hover{ filter: grayscale(0); opacity: .92; transform: scale(1.02); }
@media (max-width: 560px){
  .project-gallery img{ height: 96px; }
}
.read-more{
  align-self: flex-start;
  margin-top: 4px;
  font-weight: 700;
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--accent-dark);
  display: inline-flex; align-items: center; gap: 8px;
}
.read-more .arrow{ transition: transform .4s var(--ease); }
.project-card.is-open .read-more .arrow{ transform: rotate(90deg); }

/* ---------- contact ---------- */
.block-section--contact{ padding-bottom: 100px; }
.contact-block h2{
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1.02;
  margin-bottom: 30px;
  max-width: 780px;
}
.btn-solid--lg.flash{ animation: ctaFlash 1.3s ease-out 1; }
@keyframes ctaFlash{
  0%{ box-shadow: 0 0 0 0 rgba(232,68,127,.8); transform: scale(1); }
  45%{ transform: scale(1.04); }
  65%{ box-shadow: 0 0 0 28px rgba(232,68,127,0); }
  100%{ box-shadow: 0 0 0 0 rgba(232,68,127,0); transform: scale(1); }
}
.contact-email{
  display: block;
  margin-top: 20px;
  font-size: .92rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  width: max-content;
}
.contact-email:hover{ border-color: var(--accent); color: var(--ink); }

/* ---------- footer ---------- */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 26px clamp(20px, 5vw, 56px) 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px;
}
.footer-logo{ width: 48px; height: 48px; border-radius: 50%; }
.footer-contacts{ display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; font-size: .88rem; }
.footer-copy{ font-family: var(--font-mono); color: var(--ink-faint); font-size: .74rem; width: 100%; text-align: center; margin-top: 4px; }

/* ---------- floating CTA ---------- */
.floating-cta{
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 400;
  background: var(--accent);
  color: #0B0B0C;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 14px 22px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), background .3s, color .3s;
  pointer-events: none;
}
body.past-hero .floating-cta{ opacity: 1; transform: translateY(0); pointer-events: auto; animation: ctaPulse 3.6s ease-in-out infinite; }
.floating-cta:hover{ background: var(--ink); color: var(--bg); animation-play-state: paused; }
@keyframes ctaPulse{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(232,68,127,.55); }
  50%{ box-shadow: 0 0 0 10px rgba(232,68,127,0); }
}

/* ---------- scroll progress ---------- */
#scroll-progress{
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--accent);
  z-index: 9998;
  transition: width .1s linear;
}

/* ---------- lightbox ---------- */
.lightbox{
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,10,11,.94);
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 5vw;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.lightbox.is-open{ opacity: 1; pointer-events: auto; }
.lightbox img{ max-width: 100%; max-height: 90vh; }
.lightbox-close{
  position: absolute; top: 20px; right: clamp(20px, 5vw, 48px);
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px){
  .portfolio-grid{ grid-template-columns: 1fr; }
  .skills-grid{ grid-template-columns: 1fr; }

  .main-nav{
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px clamp(20px, 5vw, 56px) 26px;
    gap: 18px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    z-index: 400;
  }
  body.nav-open .main-nav{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  #nav-burger{ display: flex; }
  .scroll-cue{ top: auto; bottom: 18px; left: auto; right: clamp(20px, 5vw, 56px); }
  .hero{ flex-direction: column; min-height: auto; }
  .hero-visual{ order: -1; flex: 0 0 42vh; }
  .hero-visual img{ object-position: 50% 50%; }
  .hero-hook{ padding-bottom: 0; }
  .hero-meta-col{ font-size: clamp(.64rem, 3.4vw, .76rem); }
  .hero-copy-inner{ padding: 40px clamp(20px, 5vw, 56px) 48px; }
}

@media (max-width: 560px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-photo{ width: 110px; margin-bottom: 6px; }
  .hero-meta{ flex-direction: column; }
  .hero-meta-name{ text-align: left; }
  .floating-cta{ font-size: .74rem; padding: 12px 16px; }
}
