
:root{
  --navy:#071d55;--blue:#0867f2;--cyan:#10d7f2;--violet:#6a42f4;
  --ink:#0b1f4e;--muted:#627190;--bg:#f7faff;--card:#fff;--line:#e3eaf6;
  --green:#0b8f63;--shadow:0 18px 45px rgba(19,56,120,.08);--radius:24px;--max:1180px
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff;line-height:1.6}
img{max-width:100%;display:block} a{color:inherit}
.container{width:min(var(--max),calc(100% - 40px));margin:auto}
.skip-link{position:absolute;left:-999px;top:8px;background:#fff;padding:10px 14px;border-radius:8px;z-index:100}
.skip-link:focus{left:8px}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.9);backdrop-filter:blur(18px);border-bottom:1px solid rgba(226,234,246,.85)}
.header-inner{height:78px;display:flex;align-items:center;gap:28px}
.brand{display:flex;align-items:center;text-decoration:none}
.brand img{width:190px;height:auto}
.main-nav{margin-left:auto;display:flex;align-items:center;gap:24px}
.main-nav a{text-decoration:none;font-weight:750;font-size:.92rem;color:#263b6a}
.main-nav a.active,.main-nav a:hover{color:var(--blue)}
.menu-toggle{display:none;background:none;border:0;padding:8px}.menu-toggle span{display:block;width:24px;height:2px;background:var(--ink);margin:5px}
.hero{padding:88px 0 54px;background:linear-gradient(180deg,#fff 0,#f8fbff 100%);overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:64px;align-items:center}
.eyebrow,.section-kicker{font-size:.76rem;letter-spacing:.1em;font-weight:900;text-transform:uppercase;color:var(--blue)}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(3rem,5.3vw,5.1rem);line-height:1.01;letter-spacing:-.055em;margin:16px 0 24px}
h1 em,h2 em{font-style:normal;background:linear-gradient(90deg,#008df4,#2161f2 55%,#7040f2);-webkit-background-clip:text;background-clip:text;color:transparent}
.lead{font-size:1.12rem;color:var(--muted);max-width:680px}
.hero-actions{display:flex;gap:13px;flex-wrap:wrap;margin:30px 0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 19px;border-radius:13px;text-decoration:none;font-weight:900;border:1px solid transparent}
.btn-primary{color:#fff;background:linear-gradient(135deg,var(--blue),#2855f5 65%,var(--violet));box-shadow:0 12px 30px rgba(28,94,238,.2)}
.btn-secondary{background:#fff;border-color:#bed2f4;color:var(--navy)}
.hero-mark{min-height:420px;display:flex;align-items:center;justify-content:center;position:relative}
.hero-mark:before{content:"";position:absolute;width:380px;height:380px;border-radius:50%;background:radial-gradient(circle,rgba(9,170,255,.15),transparent 65%)}
.hero-mark img{width:min(100%,410px);position:relative;filter:drop-shadow(0 20px 38px rgba(17,87,190,.1))}
.ecosystem-strip{padding:26px 0;border-bottom:1px solid var(--line);background:#fff}
.metrics{display:flex;justify-content:center;gap:12px 24px;flex-wrap:wrap;color:#506184;font-size:.9rem;font-weight:700}
.metrics strong{color:var(--ink)}
.section{padding:84px 0}
.section.alt{background:var(--bg)}
.section-heading{max-width:720px;margin:0 auto 36px;text-align:center}
.section-heading h1,.section-heading h2{font-size:clamp(2.2rem,4vw,3.5rem);line-height:1.08;letter-spacing:-.045em;margin:8px 0 12px}
.section-heading p{color:var(--muted)}
.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.project-card,.community-card,.content-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:25px;box-shadow:0 14px 34px rgba(19,56,120,.05);display:flex;flex-direction:column}
.project-card{min-height:310px}
.project-card h3{font-size:1.23rem;margin:18px 0 9px}.project-card p{color:var(--muted);font-size:.94rem;flex:1}
.project-top{display:flex;justify-content:flex-end}
.status{font-size:.71rem;font-weight:900;padding:6px 9px;border-radius:999px;background:#eef3fb;color:#63708c}
.status-production{background:#e9fbf5;color:#087b58}.status-development{background:#edf4ff;color:#2363c3}.status-lab{background:#f1edff;color:#6240c9}
.tags{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 18px}.tags span{font-size:.7rem;font-weight:800;padding:5px 8px;border-radius:999px;background:#eef4ff;color:#3464b8}
.card-link{font-weight:900;color:var(--blue);text-decoration:none;border-top:1px solid #edf1f7;padding-top:15px;display:flex;justify-content:space-between}
.card-link.disabled{color:#7c88a3}
.section-actions{text-align:center;margin-top:34px}
.filter-bar{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:0 0 34px}
.filter-btn{border:1px solid #dbe6f6;background:#fff;color:#44577d;border-radius:999px;padding:9px 13px;font-weight:800;cursor:pointer}
.filter-btn.active,.filter-btn:hover{background:#edf4ff;border-color:#b9d2fb;color:#145cb9}
.community-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.community-card h3{font-size:1.2rem;margin:8px 0}.community-card p{color:var(--muted);flex:1}
.community-badge{display:inline-flex;align-self:flex-start;font-size:.7rem;font-weight:900;color:#5865f2;background:#f0f1ff;padding:6px 9px;border-radius:999px}
.page-hero{padding:68px 0 36px;background:linear-gradient(180deg,#fff,#f8fbff)}
.page-hero .section-heading{margin-bottom:0}
.breadcrumbs{font-size:.83rem;color:#7582a0;margin-bottom:18px}.breadcrumbs a{text-decoration:none;color:#426ab8}
.two-col{display:grid;grid-template-columns:1.05fr .95fr;gap:54px;align-items:start}
.content-card h2{font-size:1.35rem;margin-bottom:10px}.content-card p{color:var(--muted)}
.lab-list{display:grid;gap:15px}.lab-item{padding:18px 0;border-bottom:1px solid var(--line)}.lab-item:last-child{border:0}.lab-item strong{display:block;margin-bottom:5px}
.profile-card{display:flex;align-items:center;gap:18px}.profile-mark{width:72px;height:72px;display:grid;place-items:center;border-radius:18px;background:#eef4ff}.profile-mark img{width:56px}
.contact-options{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.site-footer{border-top:1px solid var(--line);background:#fff}
.footer-grid{min-height:105px;display:grid;grid-template-columns:auto 1fr auto;gap:30px;align-items:center;color:#74819e;font-size:.88rem}
.footer-brand img{width:138px}.footer-grid p{margin:0;text-align:center}.footer-grid nav{display:flex;gap:18px}.footer-grid nav a{text-decoration:none}
.error-page{min-height:64vh;display:grid;place-items:center;text-align:center}.error-code{font-size:5rem;font-weight:950;color:#d9e6fb;margin:0}
@media(max-width:980px){
 .main-nav{position:absolute;top:78px;left:20px;right:20px;display:none;flex-direction:column;align-items:stretch;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:var(--shadow);margin:0}.main-nav.open{display:flex}.menu-toggle{display:block;margin-left:auto}
 .hero-grid,.two-col{grid-template-columns:1fr}.hero-mark{min-height:320px}.project-grid{grid-template-columns:1fr 1fr}.community-grid{grid-template-columns:1fr}.contact-options{grid-template-columns:1fr}
}
@media(max-width:680px){
 .container{width:min(var(--max),calc(100% - 28px))}.header-inner{height:70px}.main-nav{top:70px}.brand img{width:168px}
 .hero{padding:54px 0 38px}.hero-grid{gap:20px}.hero-mark{min-height:260px}.hero-mark img{width:min(100%,300px)}
 .section{padding:64px 0}.project-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr;text-align:center;padding:28px 0}.footer-grid p{text-align:center}.footer-grid nav{justify-content:center;flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.project-profile-hero{padding:64px 0 52px;background:linear-gradient(180deg,#fff 0%,#f7faff 100%);border-bottom:1px solid var(--line)}
.profile-hero-grid{display:grid;grid-template-columns:1fr 310px;gap:54px;align-items:center}
.profile-hero-grid h1{font-size:clamp(2.7rem,5vw,4.8rem);line-height:1.02;letter-spacing:-.05em;margin:16px 0 20px}
.profile-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.profile-tags{margin:0}
.project-snapshot{min-height:300px;padding:28px;border-radius:28px;background:radial-gradient(circle at 35% 24%,#edfaff,#eef4ff 58%,#f8f6ff);border:1px solid #dfe8f5;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;box-shadow:0 18px 45px rgba(19,56,120,.07)}
.project-snapshot img{width:138px;height:auto;margin:18px 0 20px}.snapshot-label{font-size:.68rem;font-weight:900;letter-spacing:.13em;color:var(--blue)}
.profile-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:58px;align-items:start}
.profile-section{padding:0 0 38px;margin-bottom:38px;border-bottom:1px solid var(--line)}.profile-section:last-child{border-bottom:0;margin-bottom:0}
.profile-section h2{font-size:1.85rem;letter-spacing:-.03em;margin:7px 0 12px}.profile-section p{color:var(--muted);font-size:1.02rem}
.tech-stack{display:flex;flex-wrap:wrap;gap:9px}.tech-stack span{padding:9px 12px;border-radius:12px;background:#eef4ff;border:1px solid #dbe7fb;color:#285aab;font-size:.83rem;font-weight:850}
.profile-side{display:grid;gap:14px;position:sticky;top:102px}.profile-info-card{padding:18px 20px;border-radius:17px;border:1px solid var(--line);background:#fff;box-shadow:0 10px 26px rgba(19,56,120,.04)}
.profile-info-card span{display:block;color:#8290aa;font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em;margin-bottom:5px}.profile-info-card a{display:block;color:var(--blue);font-size:.85rem;text-decoration:none;word-break:break-word;margin-top:5px}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.related-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;display:flex;flex-direction:column;min-height:250px}.related-card h3{margin:18px 0 8px;font-size:1.16rem}.related-card p{color:var(--muted);font-size:.91rem;flex:1}
@media(max-width:980px){.profile-hero-grid,.profile-content-grid{grid-template-columns:1fr}.profile-side{position:static;grid-template-columns:repeat(3,1fr)}.related-grid{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.project-profile-hero{padding:46px 0 38px}.profile-side,.related-grid{grid-template-columns:1fr}.project-snapshot{min-height:220px;padding:22px}.project-snapshot img{width:110px}}


/* ==========================================================
   YosipLab v2.2 — Discovery & Quality
   ========================================================== */
:focus-visible{
  outline:3px solid rgba(8,103,242,.45);
  outline-offset:3px;
  border-radius:8px;
}
[hidden]{display:none !important}

.discovery-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:-14px 0 32px;
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fbfdff;
}
.filter-group{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.filter-label{
  margin-right:4px;
  font-size:.76rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.07em;
  color:#7987a2;
}
.status-filter{
  border:1px solid #dbe6f6;
  background:#fff;
  color:#44577d;
  border-radius:999px;
  padding:8px 11px;
  font-weight:800;
  cursor:pointer;
}
.status-filter.active,
.status-filter:hover{
  background:#edf4ff;
  border-color:#b9d2fb;
  color:#145cb9;
}
.results-count{
  flex:0 0 auto;
  margin:0;
  font-size:.82rem;
  font-weight:800;
  color:#73809a;
}
.project-card,
.related-card,
.community-card,
.content-card{
  content-visibility:auto;
  contain-intrinsic-size:320px;
}
.card-link,
.btn,
.filter-btn,
.status-filter,
.main-nav a{
  transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.card-link:hover{
  text-decoration:underline;
  text-underline-offset:4px;
}
@media(max-width:760px){
  .discovery-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }
  .results-count{width:100%}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    scroll-behavior:auto !important;
    transition:none !important;
    animation:none !important;
  }
}


/* ==========================================================
   YosipLab v2.2.1 — Discovery Filters Hotfix
   Cache-safe filenames + improved filter controls
   ========================================================== */

.discovery-toolbar{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 34px !important;
  padding:16px 18px !important;
  border:1px solid #dce6f5 !important;
  border-radius:18px !important;
  background:#f8fbff !important;
  box-shadow:0 8px 24px rgba(19,56,120,.04);
}

.filter-group{
  display:flex !important;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.filter-label{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  margin-right:6px;
  font-size:.76rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.075em;
  color:#6f7e9b;
}

.status-filter{
  appearance:none;
  -webkit-appearance:none;
  border:1px solid #cfdcf0 !important;
  background:#ffffff !important;
  color:#334c78 !important;
  min-height:38px;
  padding:8px 14px !important;
  border-radius:999px !important;
  font:inherit;
  font-size:.82rem !important;
  line-height:1;
  font-weight:850 !important;
  cursor:pointer;
  box-shadow:none;
}

.status-filter:hover{
  border-color:#9fc0f4 !important;
  background:#f1f6ff !important;
  color:#145dbd !important;
}

.status-filter.active,
.status-filter[aria-pressed="true"]{
  border-color:#87b3fa !important;
  background:#e7f0ff !important;
  color:#0d5dcc !important;
  box-shadow:inset 0 0 0 1px rgba(46,112,220,.08);
}

.results-count{
  margin:0 !important;
  min-width:145px;
  text-align:right;
  font-size:.82rem;
  font-weight:850;
  color:#697996;
}

.filter-bar{
  margin-bottom:18px !important;
}

.project-card[hidden]{
  display:none !important;
}

@media(max-width:760px){
  .discovery-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }
  .results-count{
    min-width:0;
    width:100%;
    text-align:left;
  }
}


/* ==========================================================
   YosipLab v2.2.2 — Professional Profile
   ========================================================== */
.professional-profile{
  margin-top:28px;
  padding:26px !important;
}
.professional-profile-head{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:18px;
}
.professional-profile-head .profile-mark{
  flex:0 0 auto;
}
.professional-profile-head h2{
  margin:2px 0 3px;
  font-size:1.45rem;
  letter-spacing:-.025em;
}
.profile-role{
  margin:0 !important;
  color:#60708f !important;
  font-size:.92rem !important;
  line-height:1.5;
}
.professional-profile > p{
  margin-bottom:18px;
}
.profile-expertise{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:22px;
}
.profile-expertise span{
  padding:7px 10px;
  border-radius:999px;
  background:#eef4ff;
  border:1px solid #dbe7fb;
  color:#315fae;
  font-size:.76rem;
  font-weight:850;
}
.profile-linkedin{
  align-self:flex-start;
}

@media(max-width:680px){
  .professional-profile-head{
    align-items:flex-start;
  }
  .professional-profile{
    padding:22px !important;
  }
  .profile-linkedin{
    width:100%;
  }
}


/* ==========================================================
   YosipLab v2.3.1 — Production Polish & Closure
   Hero image balance + mobile distortion fix
   ========================================================== */

/* Desktop hero: more compact and better balanced in first viewport */
.hero{
  padding-top:72px;
  padding-bottom:46px;
}
.hero-grid{
  grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);
  gap:48px;
}
.hero-mark{
  min-height:360px;
  max-height:520px;
  overflow:hidden;
}
.hero-brand-desktop{
  display:block;
  width:min(100%, 355px) !important;
  max-width:355px;
  height:auto !important;
  max-height:410px;
  object-fit:contain !important;
  object-position:center;
  filter:drop-shadow(0 18px 32px rgba(17,87,190,.08));
}
.hero-brand-mobile{
  display:none !important;
}

/* Medium screens */
@media(max-width:980px){
  .hero-grid{
    grid-template-columns:1fr;
    gap:22px;
  }
  .hero-mark{
    min-height:260px;
    max-height:none;
    padding-top:4px;
  }
  .hero-brand-desktop{
    width:min(100%, 300px) !important;
    max-width:300px;
    max-height:320px;
  }
}

/* Mobile: use the dedicated square UI symbol instead of the large full logo */
@media(max-width:680px){
  .hero{
    padding-top:44px;
    padding-bottom:34px;
  }
  .hero-grid{
    gap:16px;
  }
  .hero-mark{
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    padding:8px 0 0;
    overflow:visible;
  }
  .hero-brand-desktop{
    display:none !important;
  }
  .hero-brand-mobile{
    display:block !important;
    width:min(58vw, 210px) !important;
    max-width:210px !important;
    height:auto !important;
    aspect-ratio:1 / 1;
    object-fit:contain !important;
    object-position:center;
    margin:0 auto;
    filter:drop-shadow(0 14px 26px rgba(17,87,190,.08));
  }
}

/* Small mobile */
@media(max-width:420px){
  .hero-brand-mobile{
    width:min(54vw, 180px) !important;
    max-width:180px !important;
  }
}

/* Ensure no raster brand asset is ever stretched */
.hero-mark img,
.about-mark img,
.project-snapshot img,
.profile-mark img{
  object-fit:contain;
}


/* ==========================================================
   YosipLab v2.3.2 — About Mobile Brand Fix
   Dedicated desktop/mobile artwork for Acerca de
   ========================================================== */

.about-visual{
  min-height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:22px;
  border-radius:30px;
  background:radial-gradient(circle at 35% 24%,#edfaff 0%,#eef4ff 58%,#f8f6ff 100%);
  border:1px solid #e2e9f5;
  box-shadow:0 18px 42px rgba(19,56,120,.055);
}

.about-brand-desktop{
  display:block;
  width:min(100%, 390px) !important;
  max-width:390px !important;
  height:auto !important;
  max-height:390px !important;
  object-fit:contain !important;
  object-position:center;
  filter:drop-shadow(0 16px 30px rgba(17,87,190,.07));
}

.about-brand-mobile{
  display:none !important;
}

/* Tablet */
@media(max-width:980px){
  .about-visual{
    min-height:340px;
    padding:20px;
  }
  .about-brand-desktop{
    width:min(100%, 320px) !important;
    max-width:320px !important;
    max-height:320px !important;
  }
}

/* Mobile: swap the full logo for the dedicated square symbol.
   This prevents stretching/cropping on narrow screens. */
@media(max-width:680px){
  .about-visual{
    min-height:0 !important;
    height:auto !important;
    padding:22px 16px !important;
    overflow:visible;
    border-radius:24px;
  }
  .about-brand-desktop{
    display:none !important;
  }
  .about-brand-mobile{
    display:block !important;
    width:min(55vw, 190px) !important;
    max-width:190px !important;
    height:auto !important;
    aspect-ratio:1 / 1;
    object-fit:contain !important;
    object-position:center;
    margin:0 auto;
    filter:drop-shadow(0 12px 24px rgba(17,87,190,.07));
  }
}

@media(max-width:420px){
  .about-brand-mobile{
    width:min(52vw, 165px) !important;
    max-width:165px !important;
  }
}
