:root{
  --bg:#0b0d0c;
  --ink:#f2f3f1;
  --grid:rgba(242,243,241,0.07);
  --grid-strong:rgba(242,243,241,0.16);
  --green:#3E9B6E;
  --green-deep:#7FD9AA;
  --green-tint:rgba(62,155,110,0.14);
  --grey:#9a9d9a;
  --cell:26px;
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}

body{
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  overflow-x:hidden;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size:var(--cell) var(--cell);
}

@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important;}
}

a{color:inherit;text-decoration:none;}
.serif{font-family:'Fraunces',serif;}
.mono{font-family:'IBM Plex Mono',monospace;}
::selection{background:var(--green);color:#0b0d0c;}

a:focus-visible, button:focus-visible{
  outline:2px solid var(--green);
  outline-offset:3px;
}

/* ---------- binder rail ---------- */
.rail{
  position:fixed;
  left:0;top:0;
  width:6px;height:100%;
  background:var(--green);
  z-index:35;
}

/* ---------- header ---------- */
header{
  position:sticky;
  top:0;
  z-index:30;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:22px clamp(28px,5vw,64px) 22px clamp(38px,6vw,74px);
  background:rgba(11,13,12,0.85);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--grid-strong);
}
.logo{font-size:15px;font-weight:600;letter-spacing:0.01em;}
.logo em{
  font-style:normal;
  color:var(--green);
}
nav ul{display:flex;gap:clamp(18px,3vw,40px);list-style:none;}
nav a{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.09em;
  color:var(--grey);
  position:relative;
  padding-bottom:3px;
}
nav a::after{
  content:'';
  position:absolute;left:0;bottom:0;
  width:0;height:2px;
  background:var(--green);
  transition:width 0.25s ease;
}
nav a:hover{color:var(--ink);}
nav a:hover::after{width:100%;}

@media (max-width:720px){
  nav ul{gap:14px;}
  nav a{font-size:10px;}
}

main{padding-left:clamp(12px,2vw,20px);}

/* ---------- section shell w/ binder tab ---------- */
section{
  position:relative;
  padding:clamp(56px,9vh,100px) clamp(28px,5vw,64px) clamp(56px,9vh,100px) clamp(38px,6vw,74px);
}

.tab{
  position:absolute;
  left:0;top:clamp(56px,9vh,100px);
  background:var(--green);
  color:#fff;
  font-size:11px;
  letter-spacing:0.08em;
  padding:6px 10px 6px 14px;
  border-radius:0 3px 3px 0;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom:clamp(32px,6vh,64px);
  padding-bottom:18px;
  border-bottom:1px solid var(--grid-strong);
  padding-left:6px;
}
.section-head h2{
  font-size:clamp(28px,4vw,46px);
  font-weight:500;
  letter-spacing:-0.01em;
}
.section-head .tag{
  font-size:11px;
  color:var(--grey);
  text-align:right;
}

/* ---------- hero ---------- */
.hero{
  min-height:82vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-top:clamp(70px,14vh,140px);
}
.hero .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  letter-spacing:0.06em;
  color:var(--green-deep);
  background:var(--green-tint);
  border:1px solid rgba(62,155,110,0.35);
  padding:6px 12px;
  border-radius:999px;
  margin-bottom:28px;
  width:fit-content;
}
.hero .eyebrow::before{
  content:'';
  width:6px;height:6px;
  background:var(--green);
  border-radius:50%;
}
.hero h1{
  font-size:clamp(38px,7vw,86px);
  font-weight:500;
  line-height:1.08;
  max-width:17ch;
  letter-spacing:-0.01em;
}
.hero h1 .accent{
  font-style:italic;
  color:var(--green-deep);
}
.hero-sub{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-top:44px;
  gap:24px;
  flex-wrap:wrap;
  border-top:1px solid var(--grid-strong);
  padding-top:22px;
}
.hero-role{
  font-size:clamp(15px,1.8vw,19px);
  max-width:46ch;
  color:var(--grey);
}
.hero-role strong{color:var(--ink);font-weight:600;}
.hero-index{
  text-align:right;
  font-size:12px;
  color:var(--grey);
  line-height:1.7;
}
.hero-index b{color:var(--green-deep);}

/* ---------- proyectos ---------- */
.case{
  display:grid;
  grid-template-columns:80px 1fr auto;
  gap:24px;
  align-items:start;
  padding:28px 0;
  border-bottom:1px solid var(--grid-strong);
}
.case-num{
  font-size:13px;
  color:var(--green-deep);
  padding-top:4px;
}
.case-name{
  font-size:clamp(21px,2.6vw,28px);
  font-weight:500;
}
.case-desc{
  font-size:14.5px;
  color:var(--grey);
  margin-top:8px;
  max-width:56ch;
  line-height:1.55;
}
.case-tags{
  display:flex;
  gap:8px;
  margin-top:14px;
  flex-wrap:wrap;
}
.case-tags span{
  font-size:11px;
  padding:4px 10px;
  background:var(--green-tint);
  color:var(--green-deep);
  border-radius:3px;
}
.case-meta{
  text-align:right;
  font-size:12px;
  color:var(--grey);
  white-space:nowrap;
  padding-top:4px;
}
.case-meta .result{
  display:block;
  margin-top:6px;
  font-family:'IBM Plex Mono',monospace;
  font-size:14px;
  font-weight:500;
  color:var(--green-deep);
}

@media (max-width:720px){
  .case{grid-template-columns:40px 1fr;}
  .case-meta{display:none;}
}

/* ---------- perfil académico ---------- */
.about-grid{
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:64px;
}
.pull-quote{
  font-size:clamp(20px,2.6vw,30px);
  font-weight:500;
  line-height:1.4;
  max-width:26ch;
  border-left:3px solid var(--green);
  padding-left:22px;
  margin-bottom:28px;
}
.about-text p{
  font-size:15.5px;
  line-height:1.65;
  color:var(--grey);
  margin-bottom:18px;
  max-width:54ch;
}
.about-text strong{color:var(--ink);font-weight:600;}

.stat-list{border-top:1px solid var(--grid-strong);}
.stat-row{
  display:flex;
  justify-content:space-between;
  padding:15px 0;
  border-bottom:1px solid var(--grid-strong);
  font-size:13.5px;
}
.stat-row .label{color:var(--grey);}
.stat-row .value{font-weight:600;font-family:'IBM Plex Mono',monospace;color:var(--green-deep);}

@media (max-width:820px){
  .about-grid{grid-template-columns:1fr;}
}

/* ---------- franja de tecnologías ---------- */
.clients{
  border-top:1px solid var(--grid-strong);
  border-bottom:1px solid var(--grid-strong);
  padding:30px clamp(38px,6vw,74px);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:20px;
}
.clients .label{
  font-size:11px;
  letter-spacing:0.1em;
  color:var(--grey);
  text-transform:uppercase;
}
.clients ul{
  display:flex;
  gap:clamp(20px,4vw,48px);
  list-style:none;
  flex-wrap:wrap;
}
.clients li{
  font-family:'Fraunces',serif;
  font-size:16px;
  color:var(--grey);
}

/* ---------- contacto ---------- */
.contact-main h3{
  font-size:clamp(32px,5.5vw,64px);
  font-weight:500;
  line-height:1.15;
  max-width:18ch;
}
.contact-main h3 .accent{font-style:italic;color:var(--green-deep);}
.contact-main a.email{
  display:inline-block;
  margin-top:26px;
  font-size:clamp(17px,2vw,22px);
  font-family:'IBM Plex Mono',monospace;
  color:var(--green-deep);
  border-bottom:1px solid var(--green);
  padding-bottom:4px;
}
.contact-main a.email:hover{color:var(--green);}

.contact-meta{
  display:flex;
  gap:56px;
  margin-top:56px;
  flex-wrap:wrap;
}
.contact-meta div{font-size:13px;}
.contact-meta .label{color:var(--grey);margin-bottom:8px;text-transform:uppercase;font-size:11px;letter-spacing:0.08em;}
.contact-meta ul{list-style:none;}
.contact-meta li{margin-bottom:6px;}
.contact-meta a:hover{color:var(--green-deep);}

footer{
  display:flex;
  justify-content:space-between;
  padding:22px clamp(38px,6vw,74px) 34px;
  font-size:11px;
  color:var(--grey);
  flex-wrap:wrap;
  gap:8px;
  border-top:1px solid var(--grid-strong);
}
footer .green-dot{color:var(--green-deep);}
