:root{
  --bg:#0a0b0d;
  --bg-alt:#0e1014;
  --surface:rgba(255,255,255,.028);
  --surface-2:rgba(255,255,255,.055);
  --surface-hover:rgba(255,255,255,.06);
  --line:rgba(255,255,255,.07);
  --hairline:rgba(255,255,255,.05);
  --accent:#2dd4bf;
  --accent-dim:#14b8a6;
  --text:#e8eaed;
  --text-soft:#98a2ad;
  --radius:14px;
  --radius-sm:9px;
}

*{ -webkit-tap-highlight-color:transparent; }

html{ scroll-behavior:smooth; scroll-padding-top:7.5rem; }

body{
  background:var(--bg);
  color:var(--text);
  font-family:'Lexend',system-ui,-apple-system,sans-serif;
  font-weight:300;
  letter-spacing:.01em;
  overflow-x:hidden;
}

h1,h2,h3{ font-weight:500; letter-spacing:-.012em; }
a{ text-decoration:none; }
::selection{ background:rgba(45,212,191,.28); }

/* scroll progress */
.progress-bar-wrap{
  position:fixed; top:0; left:0; right:0; height:2px; z-index:1100;
  pointer-events:none;
}
.progress-bar-wrap span{
  display:block; height:100%; width:0;
  background:linear-gradient(90deg,var(--accent-dim),var(--accent));
}

/* floating fixed nav */
.site-nav{
  position:fixed;
  top:.9rem;
  left:50%;
  transform:translateX(-50%);
  width:min(1160px, calc(100% - 1.5rem));
  z-index:1050;
  background:rgba(14,16,20,.62);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  border-radius:99px;
  padding:.45rem .55rem .45rem 1.35rem;
  transition:background-color .3s ease, box-shadow .3s ease, border-radius .3s ease;
}
.site-nav.is-scrolled{
  background:rgba(12,14,17,.9);
  box-shadow:0 14px 40px rgba(0,0,0,.5);
}
.site-nav.menu-open{
  border-radius:20px;
  background:rgba(12,14,17,.97);
  box-shadow:0 18px 46px rgba(0,0,0,.58);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.brand{
  font-size:1.05rem;
  font-weight:600;
  color:var(--text);
  letter-spacing:-.015em;
  flex-shrink:0;
}
.brand .dot{ color:var(--accent); }

.nav-list{
  display:flex;
  align-items:center;
  gap:.1rem;
  list-style:none;
  margin:0;
  padding:0;
}
.nav-list a{
  display:block;
  font-size:.9rem;
  font-weight:300;
  color:var(--text-soft);
  padding:.4rem .85rem;
  border-radius:99px;
  transition:color .2s ease, background-color .2s ease;
}
.nav-list a:hover{ color:var(--text); background:var(--surface-2); }
.nav-list a.is-active{ color:var(--accent); background:rgba(45,212,191,.11); }

.nav-toggle{
  display:none;
  background:transparent;
  border:0;
  width:42px; height:42px;
  border-radius:99px;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex-shrink:0;
}
.nav-toggle:hover{ background:var(--surface-2); }
.nav-toggle span{
  display:block;
  width:20px; height:1.5px;
  background:var(--text);
  border-radius:2px;
  position:relative;
  transition:background-color .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after{
  content:"";
  position:absolute; left:0;
  width:20px; height:1.5px;
  background:var(--text);
  border-radius:2px;
  transition:transform .25s ease;
}
.nav-toggle span::before{ top:-6px; }
.nav-toggle span::after{ top:6px; }
.nav-toggle[aria-expanded="true"] span{ background:transparent; }
.nav-toggle[aria-expanded="true"] span::before{ transform:translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ transform:translateY(-6px) rotate(-45deg); }

/* hero */
.hero{
  position:relative;
  padding:9rem 0 5.5rem;
  overflow:hidden;
}
.hero-glow{
  position:absolute;
  top:-38%; right:-14%;
  width:min(820px,95vw); height:min(820px,95vw);
  background:radial-gradient(circle,rgba(45,212,191,.1) 0%,rgba(45,212,191,0) 68%);
  pointer-events:none;
}
.hero .container{ position:relative; z-index:1; }

.eyebrow{
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.72rem;
  font-weight:500;
  color:var(--accent);
  margin-bottom:.55rem;
}

.hero h1{
  font-size:clamp(2.4rem,6vw,4rem);
  font-weight:600;
  line-height:1.05;
  margin-bottom:.7rem;
}
.hero-role{
  font-size:clamp(1.05rem,2vw,1.28rem);
  color:var(--accent);
  font-weight:400;
  margin-bottom:1.4rem;
}
.hero-text{
  color:var(--text-soft);
  font-size:1rem;
  line-height:1.85;
  max-width:44rem;
  margin-bottom:2rem;
}
.hero-text strong{ color:var(--text); font-weight:500; }

.btn-accent{
  background:var(--accent);
  color:#04211f;
  font-weight:500;
  font-size:.95rem;
  padding:.72rem 1.7rem;
  border:0;
  border-radius:99px;
  transition:background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-accent:hover{
  background:var(--accent-dim);
  color:#04211f;
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(45,212,191,.26);
}
.btn-ghost{
  background:var(--surface-2);
  color:var(--text);
  font-weight:400;
  font-size:.95rem;
  padding:.72rem 1.7rem;
  border:0;
  border-radius:99px;
  transition:background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn-ghost:hover{
  background:rgba(255,255,255,.1);
  color:var(--accent);
  transform:translateY(-2px);
}

/* sections */
.section{ padding:5.5rem 0; }
.section-alt{ background:var(--bg-alt); }
.section-head{ margin-bottom:3rem; max-width:44rem; }
.section-head h2{
  font-size:clamp(1.7rem,3.4vw,2.4rem);
  font-weight:500;
  margin-bottom:.55rem;
}
.section-sub{ color:var(--text-soft); font-size:.95rem; margin:0; }

#about h2{ font-size:clamp(1.5rem,2.8vw,2rem); line-height:1.25; }
#about p{
  color:var(--text-soft);
  line-height:1.9;
  font-size:.98rem;
  margin-bottom:1.15rem;
}

/* service tiles */
.card-tile{
  height:100%;
  background:var(--surface);
  border:1px solid transparent;
  border-radius:var(--radius);
  padding:1.75rem 1.5rem;
  transition:transform .28s ease, border-color .28s ease, box-shadow .28s ease, background-color .28s ease;
}
.card-tile:hover{
  transform:translateY(-6px);
  background:var(--surface-hover);
  border-color:var(--line);
  box-shadow:0 20px 44px rgba(0,0,0,.42);
}
.card-tile h3{ font-size:1.05rem; font-weight:500; margin-bottom:.7rem; }
.card-tile p{ color:var(--text-soft); font-size:.9rem; line-height:1.75; margin:0; }

/* skills */
.skill-group{
  height:100%;
  background:var(--surface);
  border:1px solid transparent;
  border-radius:var(--radius);
  padding:1.6rem;
  transition:background-color .28s ease, border-color .28s ease;
}
.skill-group:hover{
  background:var(--surface-hover);
  border-color:var(--line);
}
.skill-group h3{ font-size:.95rem; font-weight:500; margin-bottom:1.05rem; }
.skill-group-secondary{ background:transparent; }
.skill-group-secondary:hover{ background:var(--surface); }
.skill-note{ color:var(--text-soft); font-size:.875rem; line-height:1.75; margin-bottom:1rem; }

.chips{ display:flex; flex-wrap:wrap; gap:.45rem; }
.chip{
  font-size:.83rem;
  color:var(--text);
  background:var(--surface-2);
  border-radius:var(--radius-sm);
  padding:.4rem .7rem;
  transition:background-color .2s ease, color .2s ease;
}
.chip:hover{ background:rgba(255,255,255,.1); color:var(--accent); }
.chip-muted{ color:var(--text-soft); }
.chip-tag{
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--text-soft);
  margin-left:.4rem;
}

/* filters */
.filter-bar{ display:flex; flex-wrap:wrap; gap:.45rem; margin-bottom:2.5rem; }
.filter-btn{
  background:var(--surface-2);
  border:0;
  color:var(--text-soft);
  font-family:inherit;
  font-size:.85rem;
  font-weight:300;
  padding:.5rem 1.15rem;
  border-radius:99px;
  cursor:pointer;
  transition:background-color .2s ease, color .2s ease;
}
.filter-btn:hover{ color:var(--text); background:rgba(255,255,255,.09); }
.filter-btn.is-active{ background:var(--accent); color:#04211f; font-weight:500; }

/* work cards */
.work-item.is-hidden{ display:none; }
.work-item.is-shown{ animation:itemIn .38s cubic-bezier(.22,.61,.36,1) both; }
@keyframes itemIn{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:none; }
}
.work-card{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:190px;
  background:var(--surface);
  border:1px solid transparent;
  border-radius:var(--radius);
  padding:1.5rem;
  color:var(--text);
  position:relative;
  overflow:hidden;
  transition:transform .28s ease, border-color .28s ease, box-shadow .28s ease, background-color .28s ease;
}
.work-card::before{
  content:"";
  position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg,var(--accent),transparent);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .35s ease;
}
.work-card:hover{
  transform:translateY(-6px);
  background:var(--surface-hover);
  border-color:var(--line);
  box-shadow:0 20px 44px rgba(0,0,0,.42);
  color:var(--text);
}
.work-card:hover::before{ transform:scaleX(1); }
.work-name{ font-size:1.05rem; font-weight:500; margin-bottom:.35rem; display:block; }
.work-tags{ font-size:.75rem; color:var(--accent); letter-spacing:.03em; margin-bottom:.9rem; display:block; }
.work-desc{ font-size:.875rem; color:var(--text-soft); line-height:1.75; }
.work-more{ margin-top:2.5rem; color:var(--text-soft); font-size:.9rem; }
.work-more a{ color:var(--accent); border-bottom:1px solid rgba(45,212,191,.35); }
.work-more a:hover{ border-bottom-color:var(--accent); }

/* usp band */
.usp{ padding:3rem 0; background:var(--bg-alt); }
.usp-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem 1.5rem;
}
.usp-item{ text-align:center; }
.usp-num{
  font-size:clamp(2rem,4.4vw,2.8rem);
  font-weight:600;
  line-height:1;
  letter-spacing:-.02em;
}
.usp-num .plus{ color:var(--accent); }
.usp-label{ font-size:.82rem; color:var(--text-soft); margin-top:.55rem; }

/* client logo marquee */
.marquee{
  position:relative;
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);
}
.marquee-track{
  display:flex;
  align-items:center;
  gap:4.5rem;
  width:max-content;
  animation:marquee 46s linear infinite;
}
.marquee:hover .marquee-track{ animation-play-state:paused; }
.marquee-item{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  height:38px;
}
.marquee-item img{
  max-height:100%;
  max-width:170px;
  width:auto;
  object-fit:contain;
  opacity:.5;
  transition:opacity .25s ease;
}
.marquee-item:hover img{ opacity:1; }
.marquee-text{
  font-size:1.5rem;
  font-weight:500;
  font-style:italic;
  letter-spacing:.01em;
  color:var(--text);
  opacity:.5;
  white-space:nowrap;
  transition:opacity .25s ease;
}
.marquee-item:hover .marquee-text{ opacity:1; }
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* project cards */
.pc{
  display:block;
  position:relative;
  overflow:hidden;
  border-radius:var(--radius);
  aspect-ratio:16 / 10;
  color:var(--text);
  isolation:isolate;
  background:#0f1114;
}
.pc-shot{
  position:absolute;
  inset:0;
  display:block;
  transform:scale(1.015);
  transition:transform .6s cubic-bezier(.22,.61,.36,1), filter .45s ease;
}
.pc-shot img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
}
.pc-veil{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(6,8,10,.30) 0%,rgba(6,8,10,.72) 58%,rgba(6,8,10,.94) 100%);
  transition:background .4s ease;
}
.pc-body{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:1.6rem 1.35rem;
  transition:transform .45s cubic-bezier(.22,.61,.36,1);
}
.pc-name{
  font-size:1.08rem;
  font-weight:500;
  line-height:1.25;
  letter-spacing:-.01em;
  color:#fff;
}
.pc-meta{
  max-height:0;
  opacity:0;
  overflow:hidden;
  transition:max-height .45s cubic-bezier(.22,.61,.36,1), opacity .3s ease, margin-top .45s ease;
}
.pc:hover .pc-meta{
  max-height:7rem;
  opacity:1;
  margin-top:.7rem;
}
.pc:hover .pc-body{ transform:translateY(-10px); }
.pc:hover .pc-shot{ transform:scale(1.06); filter:brightness(.86); }
.pc:hover .pc-veil{
  background:linear-gradient(180deg,rgba(6,8,10,.45) 0%,rgba(6,8,10,.85) 55%,rgba(6,8,10,.97) 100%);
}
.pc-line{
  display:block;
  font-size:.76rem;
  line-height:1.6;
  color:rgba(232,234,237,.9);
}
.pc-line b{ color:var(--accent); font-weight:500; }
.pc:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

/* contact */
#contact h2{ margin-bottom:1.75rem; }
.contact-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.7rem;
}
.contact-list li{
  background:var(--surface);
  border:1px solid transparent;
  border-radius:var(--radius);
  padding:1.05rem 1.15rem;
  transition:background-color .25s ease, border-color .25s ease;
}
.contact-list li:hover{ background:var(--surface-hover); border-color:var(--line); }
.contact-list .label{
  display:block;
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.11em;
  color:var(--text-soft);
  margin-bottom:.4rem;
}
.contact-list a{
  color:var(--text);
  font-weight:400;
  font-size:.92rem;
  word-break:break-word;
  transition:color .2s ease;
}
.contact-list a:hover{ color:var(--accent); }
.text-muted-soft{ color:var(--text-soft); font-size:.95rem; line-height:1.85; }

/* portrait */
.portrait{
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 28px 64px rgba(0,0,0,.55);
  max-width:400px;
  margin-inline:auto;
}
.portrait img{
  display:block;
  width:100%;
  height:auto;
  filter:grayscale(1) contrast(1.06) brightness(.94);
  transition:filter .5s ease, transform .6s ease;
}
.portrait::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(45,212,191,.1) 0%,rgba(10,11,13,.5) 100%);
  mix-blend-mode:multiply;
  pointer-events:none;
}
.portrait:hover img{ filter:grayscale(.75) contrast(1.1) brightness(1); transform:scale(1.02); }
.portrait-contact{ max-width:340px; }

/* footer */
.site-footer{ padding:2rem 0; background:var(--bg-alt); }
.site-footer span{ color:var(--text-soft); font-size:.85rem; }

/* reveal animation */
.reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change:opacity, transform;
}
.reveal.is-visible{ opacity:1; transform:none; }

/* responsive */
@media (max-width:991.98px){
  .usp-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.75rem 1rem; }
  .hero{ padding:7.5rem 0 3.5rem; }
  .section{ padding:4rem 0; }
  .portrait{ max-width:300px; }
  .portrait-contact{ max-width:270px; }
  .marquee-track{ gap:3rem; }
  .marquee-item img{ max-width:130px; }
}
@media (max-width:767.98px){
  .nav-toggle{ display:flex; }
  .site-nav{ padding:.45rem .5rem .45rem 1.15rem; }
  .nav-links-wrap{ margin-top:.6rem; padding:.6rem 0 .4rem; border-top:1px solid var(--hairline); }
  .nav-list{ flex-direction:column; align-items:stretch; gap:.1rem; }
  .nav-list a{ padding:.6rem .9rem; border-radius:12px; }
  .contact-list{ grid-template-columns:1fr; }
}
@media (min-width:768px){
  .nav-links-wrap{ display:block !important; }
}
@media (max-width:575.98px){
  .work-card{ min-height:0; }
  .usp{ padding:2.25rem 0; }
  .usp-label{ font-size:.76rem; }
  .marquee-track{ gap:2.25rem; }
  .marquee-item{ height:30px; }
  .marquee-item img{ max-width:110px; }
  .pc-line{ font-size:.73rem; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .marquee-track{
    animation:none;
    flex-wrap:wrap;
    justify-content:center;
    width:100%;
    gap:2.25rem;
  }
  .portrait img, .card-tile, .work-card, .chip, .btn-accent, .btn-ghost, .pc, .pc-shot, .skill-group{ transition:none; }
  .pc-meta{ max-height:none; opacity:1; margin-top:.7rem; }
}
